Pages: [1]   Go Down
Author Topic: Question for Nick Gammon  (Read 410 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Sr. Member
****
Karma: 17
Posts: 382
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Nick,

I made a 328P-PU Arduino compatible minimal board based on your super tutorial
http://www.gammon.com.au/forum/?id=11637

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
« Last Edit: March 05, 2013, 12:05:08 pm by kas » Logged

South Texas
Offline Offline
Edison Member
*
Karma: 8
Posts: 1024
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Sr. Member
****
Karma: 17
Posts: 382
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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  smiley 

Thanks for your help
Logged

Pages: [1]   Go Up
Jump to: