Question for Nick Gammon

Hi Nick,

I made a 328P-PU Arduino compatible minimal board based on your super tutorial

I uploaded: - "board detector" sketch - bootloader programming sketch (8 MHz without a crystal) Everything went well and I finally loaded up the basic Blink example

... digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) delay(2000); // wait for 2 seconds digitalWrite(led, LOW); // turn the LED off by making the voltage LOW delay(2000); // wait for 2 seconds ...

The LED turn ON for 4 seconds and OFF for 4 seconds What am I doing wrong ?? Is it related to the 8 MHz clock ??

Thanks for your assistance

Is you chip running of an external crystal? or off the internal clock? It sounds like you compiled the program using a configuration that is expecting a 16Mhz clock, but it is actually running a 8Mhz clock.

The chip is running 8Mhz from the internal clock

Based on your comments, I changed board for the LilyPad Arduino w/ ATmega328 (8MHz) and all is well :)

Thanks for your help