Society of Robots - Robot Forum

Software => Software => Topic started by: Trumpkin on December 18, 2007, 09:56:13 AM

Title: ponyprog problems
Post by: Trumpkin on December 18, 2007, 09:56:13 AM
I really need somemone to help me with this problem because I'm near giving up. Whenever I select Write all in Ponyprog it says device missing or unknown device ive tried both with and without the usb to serial adapter I've also tried checking my soldering and I have checked the voltages I also switched out my Atmega 8 chip out two times. I know the settings are correct in ponyprog I selected Atmega 8 and I selected Com port 1 (which is what i'm using). I am beginning to think that I have done everything  and I'm really frustrated.  >:(  >:(     
Title: Re: ponyprog problems
Post by: Trumpkin on December 18, 2007, 10:02:58 AM
Could it be that I shocked the voltage regulator?
Title: Re: ponyprog problems
Post by: Steel_monkey on December 18, 2007, 12:29:26 PM
Voltage regulator is unlikly to be burnt (untill plugged incorrectly). What programmer are You using? If it is selfmade nothing can be said without schematic. Main project schematic is also strongly welcome. Without that only common recommendations can be told: check voltage on VCC pin of the MCU, search for short cirquits (with DMM), check wiring of ISP cable.

 Also ponyprog docs contain following:
---------
Q: My PC doesn't have any LPT/COM port, can I use a USB2COM or USB2LPT adapter?

A: Some USB adapters don't work at all while other adapters are very slow. So I suggest to avoid USB adapter
   and buy COM/LPT PCMCIA or PCI adapters that emulates 100% native LPT and COM ports.
----------

Title: Re: ponyprog problems
Post by: Trumpkin on December 18, 2007, 12:49:51 PM
I'm using the $50 robot microcontroller and I unfortunatley bought the cheap programmer
Title: Re: ponyprog problems
Post by: Steel_monkey on December 18, 2007, 03:22:01 PM
     First of all, according to ATMEL appnotes RESET ( pin 1) must be pulled up to VCC (not a battery+ !!!!) with 5-10 KOhm resistor and grounded with 0,1 mkF ceramic capaticor. It is Atmel application notes AVR040 (http://www.eetasia.com/ARTICLES/2003APR/A/2003APR25_EMS_MPR_AN04.PDF?SOURCES=DOWNLOAD) and AVR042(http://www.eetindia.com/ARTICLES/2004DEC/A/2004DEC02_MPR_AN07.PDF?SOURCES=DOWNLOAD).
    Second, there is control LED in schematic. Doesn`t it flash once when you try to program?
    Third, unplug all connectors excluding power and ISP and try with pony again. If it fails, and You sure your wiring is right, there is nearly +5 Volts on VCC when power is on and all connections are OK (You also need to check all ISP wires with DMM, i.e. measure resistance), something is wrong with programmer.

If You have LPT or COM in your PC it is possible to assemble very simple programmer for any of them ( pony supports LPT STK200 programmer with administrator rights, COM programmer is in Russian, but if it is neccesary I can try to translate it to English).
Title: Re: ponyprog problems
Post by: Ro-Bot-X on December 19, 2007, 12:16:10 AM
Here is a page in german for simple AVR serial or parallel ports programmer. Use Altavista or Google to translate the page in english. The translation is not perfect, but lets you get the important stuff.
http://s-huehn.de/elektronik/avr-prog/avr-prog.htm (http://s-huehn.de/elektronik/avr-prog/avr-prog.htm)
Title: Re: ponyprog problems
Post by: Trumpkin on December 19, 2007, 09:21:56 AM
steel monkey, I think you have to program the led to blink
Title: Re: ponyprog problems
Post by: Steel_monkey on December 19, 2007, 01:06:46 PM
When RESET goes low ( during programming) LEDs tend to flash even if programming goes wrong (chip undetected for example). It is because logic levels on pins are changing during RESET. So, if it flashes, it shows programmer is working ( but it doesn`t mean that programmer is not working if LED doesn`t flash!). It can be easily observed, that is why I asked it.