Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: Jdog on December 02, 2008, 03:01:46 PM

Title: Help with Atmega168 and Ponyprog
Post by: Jdog on December 02, 2008, 03:01:46 PM
Hi, I upgraded my microcontroller to the Atmega168. I downloaded the new ponyprog which is compatible with the Atmega168. When I go to upload my code for the 50$ robot everything starts to work but at the very end of writing it it says write failed.
Title: Re: Help with Atmega168 and Ponyprog
Post by: airman00 on December 02, 2008, 03:03:45 PM
Disconnect servos and servos from microcontroller while programming , make sure microcontroller is firmly plugged in , make sure battery is charged
Title: Re: Help with Atmega168 and Ponyprog
Post by: Jdog on December 02, 2008, 03:44:08 PM
I have done all of that, and ponyprog does recognizes it.
Title: Re: Help with Atmega168 and Ponyprog
Post by: Jdog on December 02, 2008, 03:52:29 PM
When using avr studio i chose atmega168. Should I have chosen Atmega 168P?
Title: Re: Help with Atmega168 and Ponyprog
Post by: pomprocker on December 02, 2008, 06:49:54 PM
ATmega168P is a different device. you're fine with what you have. Make sure you choose ATmega168 in PonyProg also, and do the probe and test and all that according to the tutorial about ponyprog on here.
Title: Re: Help with Atmega168 and Ponyprog
Post by: Jdog on December 02, 2008, 07:45:51 PM
Do I need a different program for the new microcontroller?
Title: Re: Help with Atmega168 and Ponyprog
Post by: Admin on December 04, 2008, 10:01:32 PM
The program for an ATmega8 will not work on an ATmega168. You must compile it for the microcontroller you plan to use.
Title: Re: Help with Atmega168 and Ponyprog
Post by: pomprocker on December 08, 2008, 02:14:21 PM
you also have to make updates in global.h as well as your makefile, but this is all talked about in the atmega168 upgrade tutorial.