I have just built my first Nanode RF, bought from Openenergy shop with FTDI cable. Voltages all checked out fine before I inserted ICs, and I have examined the construction several times carefully. No LEDs have ever lit up on this board. Arduino IDE (on Win7) seems to be communicating with the board ok because the 01.Basic > Blink sketch loads successfully ("Done uploading"). But still no LEDs are on (other than the blue one on FTDI adapter). I also measured the voltage directly on the LED pads, nothing there. What else can I check? Cheers, Ben
RESOLVED: Newbie: no LEDs working
Submitted by Guest on Wed, 31/10/2012 - 17:13»
Re: RESOLVED: Newbie: no LEDs working
Where did you get the blink sketch? I seem to remember something about wrong pin numbers for the LEDs. Green should be 5, red should be 6.
[Edit] I think I might have found your blink sketch - in the Arduino Help reference. Your problem is this was written for an Arduino board, not the Nanode, and the LED is connected differently. If you change "13" to be 5 or 6, you should get the green or red LED blinking.
[Another edit]
Try this:
#define REDLED 6
#define GREENLED 5
#define ON 0
#define OFF 1
void setup(void)
{
pinMode(REDLED, OUTPUT);
pinMode(GREENLED, OUTPUT);
}
void loop(void)
{
digitalWrite(REDLED,ON);
delay(500);
digitalWrite(REDLED,OFF);
digitalWrite(GREENLED,ON);
delay(500);
digitalWrite(GREENLED,OFF);
}
Re: RESOLVED: Newbie: no LEDs working
That did it. I can blink either LED now with 5 or 6. This was my 'Hello World' moment; with the reassurance I didn't damage ICs or something... thank you! Ben