Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

can't ride the pony(prog)

can't ride the pony(prog)

2005-01-08 by ethan@bufbotics.org

Hello,

I am tyring to get PonyProg2000 working to do ISP on an ATmega16 using an
Olimex AVR-PG1B serial dongle.

Any pony command I issue results in "Device missing or unknown device
(-24)".  I've tried erase, read, write, you name it.  I have selected the
proper ATmega16 target in the Device menu.

I am hoping that someone with more experience can point me towards the
next troubleshooting steps I should try.  The following is a description
of my situation....

I can confirm that my ATmega16 and the circuit its in is correct.  I am
able to successfully use both the ISP6PIN and ISP10PIN ports on my STK500
and AVRStudio to program the chip in my external circuit.

So this leads me to believe that my hardware setup is good but I have not
configured PonyProg2000 correctly.  I did do the calibration with no other
stuff running on my PC.  I have tried a variety of different settings on
the Interface Setup menu, with no change in behavior.

The only thing I would consider "wacky" about my setup is that I only have
USB ports, so I'm connecting the AVR-PG1B to my USB via a Belkin
USB->Serial adapter.  BUT, I use that adapter for everything (such as the
STK500 tests mentioned above, also I've done UART connections to AVR
through that guy, etc...), so I do not think the adapter is the problem.

The problem COULD also be my brand new Olimex dongle, but I dont know how
to confirm that other than by getting PonyProg to work (kind of like
chicken and egg).

Does anybody have any advice for additional troubleshooting steps?

Ethan
www.bufbotics.org

Re: [AVR-Chat] can't ride the pony(prog)

2005-01-08 by Dingo

Double check your hardware by using Avr-dude to attempt the download.
Show quoted textHide quoted text
----- Original Message -----
Sent: Saturday, January 08, 2005 12:27 PM
Subject: [AVR-Chat] can't ride the pony(prog)

Hello,

I am tyring to get PonyProg2000 working to do ISP on an ATmega16 using an
Olimex AVR-PG1B serial dongle.

Any pony command I issue results in "Device missing or unknown device
(-24)". I've tried erase, read, write, you name it. I have selected the
proper ATmega16 target in the Device menu.

I am hoping that someone with more experience can point me towards the
next troubleshooting steps I should try. The following is a description
of my situation....

I can confirm that my ATmega16 and the circuit its in is correct. I am
able to successfully use both the ISP6PIN and ISP10PIN ports on my STK500
and AVRStudio to program the chip in my external circuit.

So this leads me to believe that my hardware setup is good but I have not
configured PonyProg2000 correctly. I did do the calibration with no other
stuff running on my PC. I have tried a variety of different settings on
the Interface Setup menu, with no change in behavior.

The only thing I would consider "wacky" about my setup is that I only have
USB ports, so I'm connecting the AVR-PG1B to my USB via a Belkin
USB->Serial adapter. BUT, I use that adapter for everything (such as the
STK500 tests mentioned above, also I've done UART connections to AVR
through that guy, etc...), so I do not think the adapter is the problem.

The problem COULD also be my brand new Olimex dongle, but I dont know how
to confirm that other than by getting PonyProg to work (kind of like
chicken and egg).

Does anybody have any advice for additional troubleshooting steps?

Ethan
www.bufbotics.org




Re: [AVR-Chat] can't ride the pony(prog)

2005-01-08 by ethan@bufbotics.org

Dingo said:
> Double check your hardware by using Avr-dude to attempt the download.

Thanks for the idea, I'll try that out.

I have successfully used Avr-dude in the past to program the
microcontrollers via my STK500 (those were all chips on the STk itself,
tonight I'll try to use Avrdude to program a uC in an external circuit via
the STK).

Does anybody know if Avr-dude is compatible with the Olimex AVR-PG1B
hardware?

Ethan
www.bufbotics.org

Re: [AVR-Chat] can't ride the pony(prog)

2005-01-08 by ethan@bufbotics.org

Ok, following Dingo's advice, I'm trying to use AVR-dude to program an
ATmega16 using an Olimex AVR-PG1B programmer.  NOTE: this programmer plugs
into my serial port.

I just downloaded avrdude 4.3 (I couldn't find a winXP copy of 4.4) and
don't know which programmer hardware to use.  The AVR-PG1B is supposed to
be ponyprog compatible, so I tried "pony-stk200" but that aparently uses
the parallel port, not the serial port.

Has anybody used avr-dude software with olimex AVR-PG1B serial-port hardware?

Also note that I can use AVR-dude to program a chip using my STK500
hardware, so I know that at least my mega16 chip is good and that Avr-dude
works (just not sure with my AVR-PG1B).

Ethan
www.bufbotics.org

Re: [AVR-Chat] can't ride the pony(prog)

2005-01-09 by Dingo

There is a command line switch that displays all the supported programmers but I can't find it, maybe ask in the AVR-dude mailing list.
Also look in the avrdude.conf file this see if it is there or a similar device. Also check the Olimex docs to see if it is compatible with something else.
I see there was a GUI released for AVR-dude 2 days ago, the link is http://sourceforge.net/projects/avrdude-gui/
Note: I've never used so I don't know anything about it.
Otherwise download the WinAVR distro for Windows that has it all setup within it.
If that doesn't work goto www.avrfreaks.net and click on AVR GCC at the top.
Show quoted textHide quoted text
----- Original Message -----
Sent: Sunday, January 09, 2005 8:48 AM
Subject: Re: [AVR-Chat] can't ride the pony(prog)


Ok, following Dingo's advice, I'm trying to use AVR-dude to program an
ATmega16 using an Olimex AVR-PG1B programmer. NOTE: this programmer plugs
into my serial port.

I just downloaded avrdude 4.3 (I couldn't find a winXP copy of 4.4) and
don't know which programmer hardware to use. The AVR-PG1B is supposed to
be ponyprog compatible, so I tried "pony-stk200" but that aparently uses
the parallel port, not the serial port.

Has anybody used avr-dude software with olimex AVR-PG1B serial-port hardware?

Also note that I can use AVR-dude to program a chip using my STK500
hardware, so I know that at least my mega16 chip is good and that Avr-dude
works (just not sure with my AVR-PG1B).

Ethan
www.bufbotics.org




asking about encoder..external interrupts or counter???

2005-01-09 by Ridho Alpha

hello

i use AVR for motor control, I use ATMEGA16. i ask for encoder which is made just from optocoupler "U" model.the output is pulses. What do you think how i can read the counter???counting process.the best solution?? Using External Interrupt?? Using Counter??? please give a clue....

thank you

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

RE: [QUARANTINE][AVR-Chat] asking about encoder..external interrupts or counter???

2005-01-09 by Larry Barello

I do this often.  Check out www.barello.net/Papers (motion control),
www.barello.net/ARC (look at sample code & projects), and
www.barello.net/Robots.

The Schmitt trigger inputs on all AVR's conditions the raw opto output.
Depending upon speed of the count you can either poll or use interrupts.  If
the count rate (edge rate) is less than 5k/second or so, I would poll: set
up a 10khz timer interrupt that examines the inputs and increments a counter
with each transition (low->high, high->low).  Greater than 10k edges/sec I
would use one of the edge sensitive interrupts (INT0, 1, ACD, ICP) and then
switch edge sense within you handler (e.g. after a positive edge, switch to
negative, and so forth).

Then in your main loop, examine and clear the counter periodically to get
velocity.

Using the hardware counter would have very low software overhead and would
be best for count rates >100k/sec, but there is only one of those in the AVR
so I have never used it (I always handle two channels of two lines/encoder
so I need four interrupts).

Cheers!
Show quoted textHide quoted text
-----Original Message-----
From: Ridho Alpha [mailto:pendekar_ridho@yahoo.com]
Sent: Sunday, January 09, 2005 9:03 AM
To: AVR-Chat@yahoogroups.com
Subject: [QUARANTINE][AVR-Chat] asking about encoder..external interrupts or
counter???


hello
i use AVR for motor control, I use ATMEGA16. i ask for encoder which is made
just from optocoupler "U" model.the output is pulses. What do you think how
i can read the counter???counting process.the best solution?? Using External
Interrupt?? Using Counter??? please give a clue....

thank you
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Yahoo! Groups Sponsor
ADVERTISEMENT







Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/AVR-Chat/

To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Re: [QUARANTINE][AVR-Chat] asking about encoder..external interrupts or counter???

2005-01-09 by Mike Murphree

On Jan 9, 2005, at 11:56 AM, Larry Barello wrote:

>
> I do this often.  Check out www.barello.net/Papers (motion control),
> www.barello.net/ARC (look at sample code & projects), and
> www.barello.net/Robots.
>
> The Schmitt trigger inputs on all AVR's conditions the raw opto output.

Somehow, I've missed this feature in the datasheets.   How many AVR 
devices incorporate Schmitt triggers on the inputs?  Is this all pins 
or just some of them?

It would have saved me 3 hours with a wire-wrap gun last night if I'd 
known this before...  :-(

Mike

RE: [QUARANTINE][AVR-Chat] asking about encoder..external interrupts or counter???

2005-01-09 by Larry Barello

All I/O pins.  
Show quoted textHide quoted text
-----Original Message-----
From: Mike Murphree 
>
> The Schmitt trigger inputs on all AVR's conditions the raw opto output.

Somehow, I've missed this feature in the datasheets.   How many AVR 
devices incorporate Schmitt triggers on the inputs?  Is this all pins 
or just some of them?

It would have saved me 3 hours with a wire-wrap gun last night if I'd 
known this before...  :-(

Mike

Re: can't ride the pony(prog)

2005-01-10 by brewski922

When I started out with Olimex AVR prototype boards I too purchased 
the AVR-PG1B serfial port dongle. Tried to get Pony-Prog to work with 
it. Never actually got it to work before I fried it.

Then I built my own parallel port dongle. For me this has the benefit 
of freeing up my only serial port on my PC for use with RS-232 
communications.

Using the STK500 ISP10PIN connector connected to the 10 pin connector 
on the Olimex PCB, you should be able to do 10 pin ISP on those and 
other 10 pin ISP boards.

After I wrote the above I checked it out. I sent serial info to an 
STK500. From the STK500 ISP10PIN connector to an Olimex AVR-P40B-8515 
10 pin ISP connector.

I used both CodeVisionAVR C compiler and AVR Studio 3.56.

Mike


--- In AVR-Chat@yahoogroups.com, ethan@b... wrote:
> 
> Ok, following Dingo's advice, I'm trying to use AVR-dude to program 
an
> ATmega16 using an Olimex AVR-PG1B programmer.  NOTE: this 
programmer plugs
> into my serial port.
> 
> I just downloaded avrdude 4.3 (I couldn't find a winXP copy of 4.4) 
and
> don't know which programmer hardware to use.  The AVR-PG1B is 
supposed to
> be ponyprog compatible, so I tried "pony-stk200" but that aparently 
uses
> the parallel port, not the serial port.
> 
> Has anybody used avr-dude software with olimex AVR-PG1B serial-port 
hardware?
> 
> Also note that I can use AVR-dude to program a chip using my STK500
> hardware, so I know that at least my mega16 chip is good and that 
Avr-dude
Show quoted textHide quoted text
> works (just not sure with my AVR-PG1B).
> 
> Ethan
> www.bufbotics.org

Re: [AVR-Chat] asking about encoder..external interrupts or counter???

2005-01-10 by MuRaT KaRaDeNiZ

I use At90s8535 in a motor controller board I designed. Look at:
http://www.onlinefavbar.com/mukas/index.htm?electronics.htm
 
I use external interrupts to increment/decrement the software counters. If you are interested I can give you the quadrature encoder decoding code in assembly.
 
regards
 
Murat Karadeniz


Ridho Alpha <pendekar_ridho@yahoo.com> wrote:

hello

i use AVR for motor control, I use ATMEGA16. i ask for encoder which is made just from optocoupler "U" model.the output is pulses. What do you think how i can read the counter???counting process.the best solution?? Using External Interrupt?? Using Counter??? please give a clue....

 

thank you

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/AVR-Chat/
  
   To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


		
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - Helps protect you from nasty viruses.

RE: [AVR-Chat] asking about encoder..external interrupts or counter???

2005-01-12 by Randy & Zonya Ledyard

Murat
I would be interested in that code for the quadrature encoders decoding - assembly is fine
By the way, I was on your website, and tried to download the YahooGroup Agent program, but it won't download - can you check that?
Randy
Show quoted textHide quoted text
-----Original Message-----
From: MuRaT KaRaDeNiZ [mailto:karademu@yahoo.com]
Sent: Monday, January 10, 2005 2:51 PM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] asking about encoder..external interrupts or counter???

I use At90s8535 in a motor controller board I designed. Look at:
I use external interrupts to increment/decrement the software counters. If you are interested I can give you the quadrature encoder decoding code in assembly.
regards
Murat Karadeniz

RE: [AVR-Chat] asking about encoder..external interrupts or counter???

2005-01-13 by MuRaT KaRaDeNiZ

Hello Randy & Zonya,
 
Here is quadrature encoder decoding code in assembly. I use one external interrupt for a encoder and handle both the rising and falling edges of one encoder signal ( one of A or B ). This translates to 2x resolution. If you have a single motor and the other external interrupt is free for use, you can listen to both encoder signal for both edges which will give you 4x resolution.
 
Regarding to my software YahooGroup Agent on my site, lately i found a bug in it and suspended its download. I'll inform you when I fix it.

 

Regards

Murat Karadeniz

http://www.onlinefavbar.com/mukas/

 


Randy & Zonya Ledyard <rledyard@bigfoot.com> wrote:
Murat
 
I would be interested in that code for the quadrature encoders decoding - assembly is fine
 
By the way, I was on your website, and tried to download the YahooGroup Agent program, but it won't download - can you check that?
 
Randy
Show quoted textHide quoted text
-----Original Message-----
From: MuRaT KaRaDeNiZ [mailto:karademu@yahoo.com]
Sent: Monday, January 10, 2005 2:51 PM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] asking about encoder..external interrupts or counter???


I use At90s8535 in a motor controller board I designed. Look at:
http://www.onlinefavbar.com/mukas/index.htm?electronics.htm
 
I use external interrupts to increment/decrement the software counters. If you are interested I can give you the quadrature encoder decoding code in assembly.
 
regards
 
Murat Karadeniz




---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/AVR-Chat/
  
   To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



		
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - 250MB free storage. Do more. Manage less.

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.