Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: ksquared on March 05, 2010, 02:54:25 PM

Title: {fixed} Microcontroller seems dead
Post by: ksquared on March 05, 2010, 02:54:25 PM
I have a microcontroller programmed for the $50 bot.  (Or thats what AVR studio says.)  However, the LED does not come on and it does not display any other response... truth be told, I have it on a breadboard without any of the peripherals.  How does one 'initilize' it?  (Atmega168.. they didn't sell any eights when I bought it.)

Thanks!
Title: Re: Microcontroller seems dead
Post by: billhowl on March 05, 2010, 06:53:26 PM
You need to program it before the LED can come on, read this
http://www.societyofrobots.com/step_by_step_atmega168_swapout.shtml (http://www.societyofrobots.com/step_by_step_atmega168_swapout.shtml)
Title: It Compiles, Lestways...
Post by: ksquared on March 05, 2010, 08:47:16 PM
Thanks, I did all that, it STILL seems not to work.  I mean AVRstudio still seems to program it, however, after that it is always dead.  For mechanical convenience (this is a breadboard) my unplugged programmer is still under the hood (y'know, connected.)

After Programming, I simply disconnected the circuit's power, took the USB out of the programmer and re powered the micro controller.  

I mean, could I have hooked something up wrong and get that far?  All my wiring seems right.  

Gracias.  
Title: Re: Microcontroller seems dead
Post by: billhowl on March 05, 2010, 10:18:41 PM
May you post some photos of your setup?
Title: Re: Microcontroller seems dead
Post by: ksquared on March 07, 2010, 08:09:38 PM
Actually... could it be my programming procedure?  From AVRStudio, I usually just upload the .hex file to FLASH.  Should I worry about ELF or EEPROM?  Using a voltmeter I determined that there is no voltage between pin 7 and pin 6.  Even if I unpower the controller after programming...

Does it hurt that the unpowered programmer is still plugged in?

And if it would still help, I might be able to figure out a way take a picture of the thing.  

Though thanks alot!


Solution: LED_on() != LED_off()