- Mon Jan 09, 2012 1:35 pm
#137968
Hello everyone,
This is my first post and I'm a bit of a novice with microcontrollers so please be gentle!
To get me started I bought an Arduino Duemilanove with Atmega 328P and have created some successful sketches of my own and this is all OK. I eventually want to start making up some of my own PCB's for hardware designs which use an Atmega microcontroller so bought a sparkfun Clockit kit to build up my understanding (and it looked like a pretty neat kit)
Having assembled the sparkfun clockit kit (which uses a pre-programmed Atmega 328P) I accidentally burned out the Atmega IC by connecting it in reverse polarity (oops). I happened to have a spare new new (bootloaded) 328P so I used my Arduino to upload the Clockit sketch to this new IC. The sketch verified and uploaded fine but the clockit kit doesn't work : the piezo buzzer comes on constantly almost as soon as the power is applied but the 7 segment display remains off.
I have checked (buzzed out) all the PCB connections one by one and am 100% sure the board is correctly assembled. I also confirmed that the 7 segment display works properly. Finally I double checked that the new 328P works by uploading a known working sketch to it in the Arduino and checking some of the inputs and outputs operate as expected. Now I am a bit stumped as to why I can't make the clockit kit work. The only thing I can think of is that the fuse settings of the new (bootloaded) 328P differ from the settings of the IC that is shipped with sparkfun kit. The required fuse settings for the clockit kit are in the comments within the sketch (avrdude -p m168 -P lpt1 -c stk200 -U lfuse:w:0xE6:m) - are these different to the defaults or am I barking up the wrong tree?
If you've got this far, thank you for reading this rather long first post.
This is my first post and I'm a bit of a novice with microcontrollers so please be gentle!
To get me started I bought an Arduino Duemilanove with Atmega 328P and have created some successful sketches of my own and this is all OK. I eventually want to start making up some of my own PCB's for hardware designs which use an Atmega microcontroller so bought a sparkfun Clockit kit to build up my understanding (and it looked like a pretty neat kit)
Having assembled the sparkfun clockit kit (which uses a pre-programmed Atmega 328P) I accidentally burned out the Atmega IC by connecting it in reverse polarity (oops). I happened to have a spare new new (bootloaded) 328P so I used my Arduino to upload the Clockit sketch to this new IC. The sketch verified and uploaded fine but the clockit kit doesn't work : the piezo buzzer comes on constantly almost as soon as the power is applied but the 7 segment display remains off.
I have checked (buzzed out) all the PCB connections one by one and am 100% sure the board is correctly assembled. I also confirmed that the 7 segment display works properly. Finally I double checked that the new 328P works by uploading a known working sketch to it in the Arduino and checking some of the inputs and outputs operate as expected. Now I am a bit stumped as to why I can't make the clockit kit work. The only thing I can think of is that the fuse settings of the new (bootloaded) 328P differ from the settings of the IC that is shipped with sparkfun kit. The required fuse settings for the clockit kit are in the comments within the sketch (avrdude -p m168 -P lpt1 -c stk200 -U lfuse:w:0xE6:m) - are these different to the defaults or am I barking up the wrong tree?
If you've got this far, thank you for reading this rather long first post.