| Author |
Message |
|
|
Posted: Jan 12, 2012 - 05:07 PM |
|


Joined: Nov 22, 2002
Posts: 12031
Location: Tangent, OR, USA
|
|
Folks -
This is not a new problem. Is there any way that we can get people who have access to these "electronic shops" (which apparently sell AVRs) to the place where they can reliably program them using materials available in these shops.
It appears, more and more, that simple economics ( I can't afford it ) is NOT the issue. Some times, like the case here, purchases outside the country cannot be made (practically) because of currency issues. Sometimes, though less often, its import restrictions or extreme import dutys. In a few cases, there are restrictions on exports TO the country.
Is there any way that these folks can put together something from electronic shop parts that will reliably program modern AVRs?
Jim |
_________________ Jim Wagner
Oregon Research Electronics, Consulting Div.
Tangent, OR, USA
"The only thing standing between us and victory is defeat" P.G.Wodhouse in Wooster & Jeeves series
|
| |
|
|
|
|
|
Posted: Jan 12, 2012 - 05:29 PM |
|

Joined: Dec 31, 2011
Posts: 87
|
|
OK David
I will check in the solder once again and test all the nodes with the multimeter.
And what a bout the ponyprog2000, it seems to be out to date as the version that I downloaded doesn't support Atmega32 chip, even Atemga8 doesn't figure out in the list.
I also dowloaded the winavr and tried to generate the hex and flash it. The inconvinient thing is that I have to precise the type of the programmer in the make file and you know it is a home maid programmer(it doesn't have a reference like usbtiny or stk500).
Could you point me to some efficient programs that flash the hex into the chip eeprom
Thank you again david, I really appreciate your help
Best reguards |
|
|
| |
|
|
|
|
|
Posted: Jan 12, 2012 - 05:35 PM |
|


Joined: Mar 20, 2001
Posts: 1517
Location: Switzerland
|
|
I've used the following programmer, together with the ponyprog program for my first steps with AVRs. It is slow, not very reliable, but works.
Today I would use one of the bitbang configurations of avrdude. I'm sure the above circuit can be configured to work with avrdude, but have not tried it myself.
You can use the serial and/or parallel ports or a ftdi chip (some USB devices from the junk yard have ftdi chips). Check out Avrdude + parallel port |
_________________ Markus
|
| |
|
|
|
|
|
Posted: Jan 12, 2012 - 06:24 PM |
|

Joined: Feb 12, 2005
Posts: 16258
Location: Wormshill, England
|
|
First off. Please do not use Markus's schematic. There are plenty of respectable 'ponyser' designs. e.g. the OP's original link in his first post.
You construct the 'dongle' carefully. Then connect to your target AVR. Use:
Code:
avrdude -c ponyser -P com1 -p ATmega32
PonyProg should know about most older AVRs like the mega32. You can use the PonyProg software if you like. It is horrible. It is designed to make you click the wrong buttons. I do not advise it.
You can also use LPT 'dongles' with avrdude or PonyProg. Post a link to the schematic, and I will tell you which 'programmer' to call it in
Code:
avrdude -c programmer -P lpt1 -p ATmega32
@Jim,
I agree with you. Those LPT or 'ponyser' designs can be made by anyone. The only sophisticated components are the zener diodes. You can get all other components from an old transistor radio or TV. The real problem is modern PCs with only USB ports.
Strangely enough, these 'far away' countries often have electronics shops. Albeit with a limited range of components. There has never been an electronics retailer in Wormshill. So you buy anything through mail-order.
David. |
|
|
| |
|
|
|
|
|
Posted: Jan 12, 2012 - 06:46 PM |
|

Joined: Dec 31, 2011
Posts: 87
|
|
|
david.prentice wrote:
First off. Please do not use Markus's schematic. There are plenty of respectable 'ponyser' designs. e.g. the OP's original link in his first post.
You construct the 'dongle' carefully. Then connect to your target AVR. Use:
Code:
avrdude -c ponyser -P com1 -p ATmega32
PonyProg should know about most older AVRs like the mega32. You can use the PonyProg software if you like. It is horrible. It is designed to make you click the wrong buttons. I do not advise it.
You can also use LPT 'dongles' with avrdude or PonyProg. Post a link to the schematic, and I will tell you which 'programmer' to call it in
Code:
avrdude -c programmer -P lpt1 -p ATmega32
@Jim,
I agree with you. Those LPT or 'ponyser' designs can be made by anyone. The only sophisticated components are the zener diodes. You can get all other components from an old transistor radio or TV. The real problem is modern PCs with only USB ports.
Strangely enough, these 'far away' countries often have electronics shops. Albeit with a limited range of components. There has never been an electronics retailer in Wormshill. So you buy anything through mail-order.
David.
Very well david
I will try these commands with avrdude since it is installed in the machine. Meanwhile, I will check other circuit schemas since you don't advise the markus schema which is the same that I've built. I will try out the schema with the parallel schema and I will keep you in touch of any progress
Best regards |
|
|
| |
|
|
|
|
|
Posted: Jan 12, 2012 - 07:35 PM |
|

Joined: Feb 12, 2005
Posts: 16258
Location: Wormshill, England
|
|
Markus's schematic is the same as yours but without the zener diodes. Both should work. Markus relies on the chip substrate diodes. The 4k7 resistors should limit any current.
The 'ponyser' scheme is far more reliable than any LPT scheme.
David. |
|
|
| |
|
|
|
|
|
Posted: Jan 13, 2012 - 06:26 AM |
|

Joined: May 02, 2007
Posts: 3007
Location: Nieuwegein, Netherlands
|
|
So you can buy a expensive software package like proteus, but you cannot buy a cheap thing like a AVR ISP programmer.....
If it is a school project as suggested, you could ask your teacher ( who should have a programmer) to put a bootloader in your chip. Then the only thing you need is a terminal program to get your code loaded.
Or buy a chip that has a bootloader already programmed.
strange thing though if we go to tunesia we have to pay for things for sure, if you have a non convertible currency how will that be handled then? |
_________________ 1)Datasheet and application notes checked?
2)tutorial forum
3)Newbie start here
|
| |
|
|
|
|
|
Posted: Jan 13, 2012 - 11:55 AM |
|


Joined: Dec 22, 2006
Posts: 300
Location: Odense, Denmark
|
|
Since you have a parallel port (LPT) look at page 20 here:
http://www.stengaard.net/anders-s/HOPE/ ... /guide.pdf
I've built this one and it works just fine! Of course I now have a computer without a parallel port so I can not use it any more, but I can vouch for the design! |
_________________ - Brian
|
| |
|
|
|
|
|
Posted: Jan 14, 2012 - 11:30 AM |
|

Joined: Dec 31, 2011
Posts: 87
|
|
| Thank you geromino for the link. I think as david says before, the problem resides in my solder experience as I'm newbie in electronics. I thing I will create a pcb circuit to avoid any possibility of error in soldering |
|
|
| |
|
|
|
|
|
Posted: Jan 14, 2012 - 11:44 AM |
|

Joined: Dec 31, 2011
Posts: 87
|
|
|
|
|
|
|
Posted: Jan 14, 2012 - 12:00 PM |
|

Joined: Nov 02, 2009
Posts: 3239
Location: Zelenograd, Russia
|
|
| Do you really believe anybody would ever bother to download it from a pesky server like that? |
_________________ Warning: Grumpy Old Chuff. Reading this post may severely damage your mental health.
|
| |
|
|
|
|
|
Posted: Jan 14, 2012 - 12:02 PM |
|

Joined: Dec 31, 2011
Posts: 87
|
|
I think David you have right. Yesterday, I rebuilt the circuit again and tested it agains avrdude
Code:
avrdude -c ponyser -p m32 -P COM1 -b 9600
or
Code:
avrdude -c ponyser -p ATmega32 -P COM1 -b 9600
And it gives me rc=-1 impossible to connect to device, check your connections. I'll create a PCB circuit using etching solution and buy a new D9 connector and try again |
|
|
| |
|
|
|
|
|
Posted: Jan 14, 2012 - 12:52 PM |
|

Joined: Feb 12, 2005
Posts: 16258
Location: Wormshill, England
|
|
Point to point wiring on perforated board is fine.
Likewise stripboard (veroboard) works fine too. You need to cut any holes in the copper strips, but it does make the components electrically and mechanically secure.
uses pcb
another one
neat pcb
Somewhere there is a tutorial that gives a stripboard layout. All the same, you can invent the layout yourself. Draw and check it on paper. Then build it carefully.
Personally, the thought of making a pcb fills me with horror. Such a simple circuit can be wired by hand.
David. |
|
|
| |
|
|
|
|
|