2

Author Topic: Error -24 Possible causes? $50 Robot  (Read 795 times)

0 Members and 1 Guest are viewing this topic.

Offline VegaObscuraTopic starter

  • Robot Overlord
  • ****
  • Posts: 153
  • Helpful? 6
Error -24 Possible causes? $50 Robot
« on: October 08, 2010, 06:11:03 PM »
I finished building the $50 robot board to the best of my abilities, and can't seem to get past error -24. 

I'm using the 9V battery and 4.8V AA holder.  I opted for an ATMEGA88 instead of ATMEGA8 mostly because I was already getting all my other parts from digikey and digikey was out of the ATMEGA8 and I didn't want to pay double shipping by ordering from 2 different places.  Two of the parts I received looked a little different from what the pictures showed.  The parts were the 220uF capacitor, and the 0.1uF capacitor.  The part they sent in the bag labeled 220uF capacitor was in fact not a capacitor at all.  I contacted them about it and they agreed to send me another 220uF capacitor free of charge, but I didn't want to wait so I strolled down to my local radioshack and bought one.  As for the 0.1uF capacitor, it looked very similar to what was shown in the tutorial.  It has the same color, but is a bit smaller and spherical instead of a disc shape.  I just assumed this is what capacitors look like sometimes and didn't give it a second thought.  But now that I really think about it, I think it might have been an incorrect part as well.

Also, I think my LED might be shot.  It was working fine when I got it, but I suspect I might have fried it either with my multimeter (unlikely) or when I was soldering.  Fortunately I ordered 2 of these, because I know LEDs are cheap and always useful.  I probably should have ordered more like 10.  Would a bad LED cause an error -24?  Would it be safe to check the LED by connected jumper wires from the 5V pin of the voltage regulator and ground to the pins on the resistor and the LED?  I know not to connect 5V straight to the LED without the resistor; I've made a few of these go pop before.

I checked every connection multiple times with a multimeter, and everything seems to have continuity where it should, and no continuity where it shouldn't.  When I connect the battery and check voltages, everything seems to have the voltages they should, and everything that shouldn't has 0V.  I checked every pin on the atmega for continuity with what it's supposed to be connected to in the diagram, everything checks out fine.  I checked continuity and voltages on the programmer pins and they're all what they are supposed to be as well.

I'm using the dongle serial programmer with PonyProg2000 2.07c.  I have made sure that I set the COM port correctly and set PonyProg to use the ATMEGA88.  I know I will eventually have to adjust the source code for the different clockspeed of the atmega88, but I know that wouldn't cause an error -24.  I can provide any pictures that might help upon request.

Offline VegaObscuraTopic starter

  • Robot Overlord
  • ****
  • Posts: 153
  • Helpful? 6
Re: Error -24 Possible causes? $50 Robot
« Reply #1 on: October 10, 2010, 10:37:11 AM »
I think I might have found the problem.  The AVR STK Serial Programmer provides a long list of AVR chips it can program, but the ATMEGA88 isn't on that list.  I've already checked all other possible problems that I've  been able to think of, and this is all that's left.  I've already ordered an atmega8 from sparkfun, so I guess we will find out when it gets here.

Offline VegaObscuraTopic starter

  • Robot Overlord
  • ****
  • Posts: 153
  • Helpful? 6
Re: Error -24 Possible causes? $50 Robot
« Reply #2 on: October 14, 2010, 11:52:14 AM »
I got my atmega8 today.  I didn't change any circuitry at all, I just removed the old atmega88 and put in the new atmega8.  I plugged it into the programmer and it programmed fine.

Offline amando96

  • Robot Overlord
  • ****
  • Posts: 187
  • Helpful? 1
Re: Error -24 Possible causes? $50 Robot
« Reply #3 on: October 14, 2010, 02:03:13 PM »
So is it working properly now? I have no Idea what error 24 is.
Rorcle, 60% complete
AATV, 5% complete

Offline VegaObscuraTopic starter

  • Robot Overlord
  • ****
  • Posts: 153
  • Helpful? 6
Re: Error -24 Possible causes? $50 Robot
« Reply #4 on: October 14, 2010, 08:41:41 PM »
It now programs the thing and says that it was successful.  I haven't modified the servos yet so I don't know if it "works" or not.  But I am able to move on to the next step now.  Error 24 is "device not found" and is apparently the most common error you can have when uploading a hex file to your bot.

 


Get Your Ad Here

data_list