RESOLVED: Newbie: no LEDs working

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

Robert Wall's picture

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);
}

benz's picture

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.