Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: harrythepotter2007 on August 27, 2008, 08:55:41 AM
-
I have started to build the 50$ robot. I have build the board. I cand find any problems with it (maybe it is something else). I also build two programmers, one for serial and one for parallel port. Could theese schematics be faulty? (don't worry about the ground from the programmer connector, I have fixed it). the problem is: I can't program the processor. Does anyone have any sugestions before I rebuild the board (I still hope I don't have to)?
Everything I have done can be found here:
http://www.trilulilu.ro/harrythepotter/imagini
-
Why can't you program the board?
more details please...
-
I use PonyProg2000. I have buit two programmers using schematics i have found on the internet that should work with PonyProg2000.
When I use the programmer for the serial port it gives me an error: "Device missing or unknown device (-24)". I have connected all the parts of the robot (sensors, servos, led, power). I have tried all the posible combinations I can get at serial port configuration. With the programmer for the paralel port If I test it with the AVR ISP I/O option it sais: "test OK" but when I Run the command "Write all" it sais the same error message. I have tried ro read from the processor and it sais it can read succesfuly.
What do I do wrong?
-
plug it in? power it on?
-
It is powerd. anything else?
-
You probably ask yourself why I didn't just buy the programmers. I didn't buy any programmer because I couldn't find one anywhere.
-
this is the one I use for my $50 robot
http://www.sparkfun.com/commerce/product_info.php?products_id=14 (http://www.sparkfun.com/commerce/product_info.php?products_id=14)
-
This is not helping. I'm not willing to wait another 10 days for the shipment of a cable. ???
I have been waiting for the birthday of my robot for more than a month and I think it will start and end with a smash of my hammer. :-[ :'(
-
make sure avrstudio and ponyprog are both set to atmega8 or atmega168 depending which one you have
-
i find for problems with circuits the 3 most common problems you will see are 1. power, 2. short circuits and 3. a dumb typo somewhere.
1. test the voltage between the microcontroller's VCC and GND pins with a multimeter to make sure there is no problem with the microcontroller's power.
2. if power looks ok check each of the connections between your programmer pins and the microcontroller pin it is connected to. test the resistance with a multimeter between each pin and any of it's neighbours it might be mistakenly touching.
you should get no resistance between points in the circuit that are connected and very high resistance between unconnected pins.
3. leave it alone for a day. try to come back with a fresh set of eyes and see where you might have connected the wrong thing to what... sometimes we all do something wrong and can't see it.
as long as you can satisfy your self that the microcontroller is powered correctly and that the programmer pins are connected to the correct microcontroller pins then i think you are safe to say the problem you are experiencing is not with the circuit but rather with your PC side software setup.
for a home made programmer i use this: http://www.instructables.com/id/Ghetto-Programming:-Getting-started-with-AVR-micro/ (http://www.instructables.com/id/Ghetto-Programming:-Getting-started-with-AVR-micro/)
dunk.
-
make sure avrstudio and ponyprog are both set to atmega8 or atmega168 depending which one you have
They are both set to ATmega8 (the one I have)
for a home made programmer i use this: http://www.instructables.com/id/Ghetto-Programming:-Getting-started-with-AVR-micro/ (http://www.instructables.com/id/Ghetto-Programming:-Getting-started-with-AVR-micro/)
What value did you use for the resistors?
-
and if nothing else works I have found that a hammer makes things feel much better for a short period of time. Then you got to start over. What a bummer. I too am stuck on mine.
-
Welcome to the club waymental!
-
Welcome to the club of -24 (http://www.societyofrobots.com/robotforum/index.php?action=search2;params=YWR2YW5jZWR8J3wwfCJ8YnJkfCd8MiwzLDQsNSw2fCJ8c2hvd19jb21wbGV0ZXwnfHwifHN1YmplY3Rfb25seXwnfHwifHNvcnR8J3xyZWxldmFuY2V8Inxzb3J0X2RpcnwnfGRlc2N8InxzZWFyY2h8J3xEZXZpY2UgbWlzc2luZyBvciB1bmtub3duIGRldmljZQ==)
-
Welcome to the club of -24 (http://www.societyofrobots.com/robotforum/index.php?action=search2;params=YWR2YW5jZWR8J3wwfCJ8YnJkfCd8MiwzLDQsNSw2fCJ8c2hvd19jb21wbGV0ZXwnfHwifHN1YmplY3Rfb25seXwnfHwifHNvcnR8J3xyZWxldmFuY2V8Inxzb3J0X2RpcnwnfGRlc2N8InxzZWFyY2h8J3xEZXZpY2UgbWlzc2luZyBvciB1bmtub3duIGRldmljZQ==)
This is not helping.
-
Welcome to the club of -24
This is not helping.
I was implying that if you click on that link, you will find solutions to try out.
Have you used a multimeter to check the circuit yet?
Are you sure you are using the correct com port?
-
I have clicked the link and I saw lots of people having their own problems and none solved mine.
I used a multimeter to test the circuit since I finished soldering and repeated the procedure about ten times already.
I have two com ports but with the serial programmer the tests are not positive so I built another programmer on LPT and the tests are OK but pony prog doesn't program anything. it reads ok with any programmer.
The programmers I use are both made by me using the schematics I found on the pony prog site. I have also tested these circuits with the multimeter but I couldn't find any problems.
This link goes to everything I have build: http://www.trilulilu.ro/harrythepotter/imagini
-
lol, when I had this problem, I put the thing on a breadboard and it worked.
-
lol, when I had this problem, I put the thing on a breadboard and it worked.
So you're sugesting to put the processor on a breadboard to program it?
-
What type of programmer have you set pony-prog to work with?
-
So you're sugesting to put the processor on a breadboard to program it?
yep
-
What type of programmer have you set pony-prog to work with?
Well, when I tried to program it with the serial programmer pony prog was set for com1, and when I tried to program with the parallel programmer pony prog was set to LPT1. I tried various combinations from the pony prog settings. None of them worked.
-
Hello harrypotter2007,
I just finished testing this programmer and works pretty fine : http://electronics-diy.com/avr_programmer.php (http://electronics-diy.com/avr_programmer.php)
I used BC547 instead of 549
-
Hello harrypotter2007,
I just finished testing this programmer and works pretty fine : http://electronics-diy.com/avr_programmer.php (http://electronics-diy.com/avr_programmer.php)
I used BC547 instead of 549
Thanks! i'll build that as soon as I finish my exams. I will post the results.