TwitterControl Arduino Blink Sketch | ThingSpeak Apps | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
TwitterControl Arduino Blink Sketch
No permission to create posts
July 24, 2012
10:22 am
Avatar
jpmurph
New Member
Members
Forum Posts: 4
Member Since:
July 11, 2012
sp_UserOfflineSmall Offline

I've have a working twitter control app which is now updating my thingspeak channel. I'm now working on an Arduino sketch which will listen to my thingspeak channel and... if the channel gets updated, then the LED on pin 13 will blink for a second. 

 

I used the CheerLights Arduino Ethernet Sketch as a starting place, but I'm having an issue with creating with my void loop()

 

I know it needs to be something like this, but really I have no idea. Could someone help point me in the right direction?

 

void loop() {

if (client.available()) {

//Look for updates to channel 

digitalWrite(led, HIGH);   
delay(1000);              
digitalWrite(led, LOW);    
delay(1000);              
 
 
 
July 30, 2012
1:22 pm
Avatar
Hans
Natick, MA

Admin
Forum Posts: 404
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

Hi jp...

Sorry for the delay.

I would check your constants and setup section.

You need to specify which pin the LED is on and make sure the pin set to an OUTPUT.

 

const int led =  13;

void setup() {
  
  pinMode(led, OUTPUT);
 
}
Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
43 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

gwenbk2, eloisedq3, AEtedesar, RichardWosus, Kellynapse, tejomaya

Administrators: Hans: 387, lee: 457