Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: gamefreak on January 25, 2008, 09:01:14 PM

Title: Ponyprog and atmega168
Post by: gamefreak on January 25, 2008, 09:01:14 PM
Using ponyprog, do i use the atmega 8 setting for the programming, there doesnt appear to be a 168.
Title: Re: Ponyprog and atmega168
Post by: ed1380 on January 25, 2008, 09:09:13 PM
atmega 8 and 168 are the same except for onboard memory
Title: Re: Ponyprog and atmega168
Post by: gamefreak on January 25, 2008, 09:54:47 PM
kk, thanks
Title: Re: Ponyprog and atmega168
Post by: Admin on January 26, 2008, 09:35:44 AM
Hmmmm I'm not really sure how similar they are other than the pins being the same. Let us know if it works with the ATmega8 setting . . . I'm wondering if it lets you use all of the 168 memory with the 8 setting . . .
Title: Re: Ponyprog and atmega168
Post by: JonHylands on January 26, 2008, 09:55:33 AM
Externally they are similar, but internally the ATmega48/88/168 represent the "new" generation of AVRs, with hardware interrupts on almost every I/O pin, and a bunch of other stuff I can't remember.

- Jon
Title: Re: Ponyprog and atmega168
Post by: gamefreak on January 27, 2008, 08:51:36 AM
I cant get it to work, i always get the device missing error, and im sure that the board is built right.
Title: Re: Ponyprog and atmega168
Post by: Admin on January 27, 2008, 09:42:57 AM
Appears that PonyProg didnt support the 168.

Anyway, they came out with a new version that does:
http://downloads.sourceforge.net/ponyprog/PonyProg_V207c.zip

Let us know if it still doesnt work after using the new version.
Title: Re: Ponyprog and atmega168
Post by: gamefreak on January 27, 2008, 11:19:22 AM
still having issues with it, but pnyprog will actually go for about 5 minutes, then say the error, where as in the other version it said it right away.

Here are some pics of my board, I made a few changes/mistakes from admins original design, my servos are hooked to the regulated power so that my cheap on sale batteries will work, my LED is hooked on to the power supply instead of the microcontroller so that it acts as an on/indicator and frees up an output pin, and things have been moved around for more space.

Pics:
http://i9.photobucket.com/albums/a90/monkey4sale/100B0690.jpg
http://i9.photobucket.com/albums/a90/monkey4sale/100B0680.jpg
http://i9.photobucket.com/albums/a90/monkey4sale/100B0670.jpg
http://i9.photobucket.com/albums/a90/monkey4sale/100B0660.jpg
http://i9.photobucket.com/albums/a90/monkey4sale/100_0712.jpg
http://i9.photobucket.com/albums/a90/monkey4sale/100_0710.jpg
http://i9.photobucket.com/albums/a90/monkey4sale/100_0709.jpg
http://i9.photobucket.com/albums/a90/monkey4sale/100_0708.jpg
http://i9.photobucket.com/albums/a90/monkey4sale/100_0707.jpg
http://i9.photobucket.com/albums/a90/monkey4sale/100_0706.jpg
http://i9.photobucket.com/albums/a90/monkey4sale/100_0705.jpg
http://i9.photobucket.com/albums/a90/monkey4sale/100_0704.jpg
http://i9.photobucket.com/albums/a90/monkey4sale/100_0702.jpg
http://i9.photobucket.com/albums/a90/monkey4sale/100_0701.jpg
http://i9.photobucket.com/albums/a90/monkey4sale/100_0700.jpg
http://i9.photobucket.com/albums/a90/monkey4sale/100_0652.jpg
Title: Re: Ponyprog and atmega168
Post by: Admin on January 27, 2008, 01:31:31 PM
I'm sure you already tried this . . . but I'll say it anyway . . . get out your multimeter and check every single connection. Make sure wires aren't connecting when they shouldn't be connected.

Quote
my servos are hooked to the regulated power so that my cheap on sale batteries will work
I see your servos are plugged in. Try programming without the servos plugged in . . . I'm thinkin they are causing power issues. And your voltage reg isn't heating up, right?

(I'm running out of ideas)
Title: Re: Ponyprog and atmega168
Post by: gamefreak on January 27, 2008, 02:03:51 PM
the voltage reg is fine, i'll try without the servos and do a multimeter check if it doesnt work.


Alright, im replacing the battery and removing the servos, today i'll try to write again( curse you 2 hour writing process)
Title: Re: Ponyprog and atmega168
Post by: gamefreak on January 28, 2008, 09:57:52 PM
Alright removal of the servos and the new ponyprog worked, I think my battery was failry low and I didnt realize it. thanks everyone
Title: Re: Ponyprog and atmega168
Post by: TrickyNekro on January 29, 2008, 11:01:27 AM
Anyhows... Check your soldering... You use too much solder where it's not needed...
Also check for wires that are made for this job... I don't know how it is called but it involves no naking the wire first...
The wire nakes almost-automatically when applying heat on it by the solderin' gun!!! and it's pretty fin too!!!
Title: Re: Ponyprog and atmega168
Post by: JonHylands on January 29, 2008, 11:09:47 AM
Definitely too much solder. Below is a picture of a point-to-point board I did last year. You should never use non-insulated wired to join pins, unless those pins are immediately adjacent to one another.

- Jon