ok so I purchased at build your own robot kit from Jaxx's shop. Put it together installed the software and programmed the robot and nothing. I did have some smells intially when first charged it up but think i corrected that. I can make the motors move with direct power but can not from the board. the servo will go to centre position when moved off but will not do anything else. Any suggestions would be great
It sort of smelt like cocoa chips you would put in your garden. i am not exactly sure what i did but it did go away. I did breifly use four AA batteries. Yes the Picaxe software does connect.If I press the reset button and move the servo to the side to test it, it will move back to th centre.
The software siad it installed correctly. How do i check the wiring to see if I fried anything? I resodered just to make sure. As far as I can see it looks like it’s done correctly.
Since the whole things seems to not work together I’d break down the program into bits. Try and get the motors to work with the L293D/28X1, see if the IR sensor will return any readings, and test the servo separately. You can isolate the bits of code from the main program and make minor tweaks to test each part out.
If you have a multimeter/voltmeter I would also check that power is getting to all the necessary pins as well. I will assume there is no short as there would probably be a lot more bad smells and probably angry noises to accompany them.
Here are some things for you to test out…
SERVO:
servofun:
servo 0, 75
wait 2
servo 0, 225
wait 2
servo 0, 150
wait 2
goto servofun
The servo should cycle between center, far right, and far left.
SHARP IR:
main:
readadc 0, b0
debug
goto main
Leave the programming cable attached after downloading the program. A debug screen will appear and there should be something other than zero in the “b0” variable field if the sensor is operating.
MOTORS:
low 4
high 5
high 6
low 7
This should make both motors spin, direction is not important.
Can you confirm the servo cable is connected with the yellow wire closest to the chips and the black wire closest to the edge of the board? Also can you verify that the L293D chip is installed in the correct direction? No offense is meant by these questions, I’m only covering the bases.
If you can take nice, sharp, closeup pics of your board it can sometimes help diagnostics. However if we can’t see the wiring connections than they’re no good. Myself, I’m interested in the corner of the board with the motor headers and IR sensor header.
The Sharp IR is returning distance readings. The reading shouldn’t stay around 100 unless you kept the sensor stationary. Your description of the readings are on par though; the sensors are never 100% steady so I’m thinking it’s ok.
I’m eager to get your bot working. The first one should be encouraging, not frustrating. The picture posting process here is less than natural but pictures are incredibly useful for diagnosing problems from afar. You can even shoot a video and host it on YouTube and link to it here.
The pictures you uploaded are used on the front page for your project. You actually made two projects, one of which should be deleted in the name of good form. I don’t know what it is that will let you upload pics like normal. Again, send them to me and I’ll take care of it for you.
Nothing looks overtly wrong in the two pictures you posted. My current suggestion would be to check continuity between the header pins you soldered on to the board with their respective legs on the PICAXE. A few times bad solder connections have been to blame for non-operating SHRs. If the PICAXE is accepting the program and nothing is happening then A) it’s bad connections B) something got fried or C) the power supply is faulty.