Let's Make Robots!

Programming a robot

I have recently got the LMR starter kit which is very good, however when i go to program the robot via the Picaxe software it says it is complete when programing it however the robot does not move. Everytime i type i simple code and program it the robot is unresponsive. i have checked all the connections with a multimeter and they are all fine. I am wondering whether it is the board or just me being thick. i would really appreciate it if someone were to help me. Loving the website!!!

many thanks

James

AttachmentSize
IMG_8019.JPG1.37 MB
IMG_8018.JPG1.46 MB
IMG_8020.JPG1.44 MB
IMG_8025.JPG1.44 MB
IMG_8026.JPG1.3 MB
print_screen.png255.43 KB
IMG_8034.JPG1.21 MB
IMG_8035.JPG1.3 MB
IMG_8036.JPG1.34 MB
WIRE OPTIONS1.3 MB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

i have wired it correctly and i am getting no voltage though at all when connected to the ground and the yellow wire, i am still not getting a reading on the program and no purple IR light on the carmera, i have a new sensor on the way :) thank you all for your help!!!!

the motors are being slow again -.- 

well i have tried the digital camera and there is no sign of any purple or white light. If i am honest i am totally unsure whether i have wired it correctly as i am a total 'n00b' i have a red wire which im guessing is V and a black wire and a yellow wire ( look at pics), i am also unsure as to which these wires should be connecting to onto the board, let alone which to connect to the multimeter. Thank you all for your help though!! 

oh and i think the motor issue has resloved its self, when i use the codes they run at normal speeds, which is always good!!

 

JAX's picture

Indeed, red is V+, black is for ground, yellow is the sensor's signal. Connect the wires to the project board as shown in the picture I posted in the other comment. Red on the outside, yellow in the middle, black to the inside. Your yellow wire should be connected in the same position as the white wire if you're referring to the pic.

Get the wires connected correctly and then you can test the voltage output on the yellow wire (red probe to the yellow wire, black probe to ground, voltage setting on the meter for at least 5V, more is ok). The voltage reading will change as the distance from the sensor changes (if the sensor is still working). You can touch the point of the probe on the little bit of metal exposed on the connector to the project board to get a voltage reading...

 

This picture is for a servo connector but I'm just illustrating the spot you're looking for. Your wires will not be black-red-white/yellow but black-yellow-red. You can also test the solder point for the yellow wire on the back of the sensor but I found this an easier test point to keep contact with. It's up to you.

All that said, if you get the V+ and GND connected correctly and there is no IR glow from the sensor when seen through a camera then it's been roasted.

Chris the Carpenter's picture

I am not going to lie to you, it is possible that you have fried your Sharp sensor. Here's the test:

Wire it up properly. Double check your +,- and signal wires. Add some power to the Picaxe board and look into the Sharp sensor using a digital camera. IR light (which is how the sharp works) will be visible in the camera's viewfinder. It should be pretty bright, a light purple or almost white light. If you are getting a glow, congrats --you may still have a working sensor.

The next step is to connect the sensor to 5V+ and Gnd on the picaxe board, but leave yourself access to the signal wire. Set your multimeter to around a 5v scale (my meter has a 20v or less setting, I would use something similar). Connect the red lead from your meter to the signal wire of the sensor, and the black wire from the meter to gnd on the board or even directly to the - of the battery.

At this point, you should see the output voltage of the sensor change as you move your hand closer and further away. If you are getting no voltage or non-changing voltage coming from your sensor, then yes, it is fried.

 

Let's tackle this sensor first, we will do motors next.

Lemme know what you find.

I have tried all combinations at the board side of the wires as the new photo will show you, and non of them work, have you any other suggestions? im a bit lost as you can see :/ 

Also when i plug in the sharp infra red sensor it makes a funny smell, i dont know if it has burnt out or broken or what :/

JAX's picture

Compare your wiring to this picture:

Reading the wires on the project board from what I call "right to left" you have V+ - Signal - GND. In IMG_8019.JPG it shows them hooked up Signal - V+ - GND. You needed to do some wire rearranging kind of like Frits shows in the pic. Maybe you did as part of the cable is never in the picture. That cable was a setup for failure, not really newbie friendly IMO. Sorry, mate.

The print srceen is the value that i get when programming the sensor, it may be less than 221 but it stays at the same value. 

I have attached some photos for you to look at. Please say if you need any more specific or different photos. Updated situation: i am now using output 1 for the servo ( as you can hopefully see on the photos) i can get the motors working at normal speed if their codes are sort of enclosed in other codes on the program. I am still not reciving anything from the Sharp infra red sensor. On the program the value b0 does change but it makes no difference if i put my hand infront of the sensor or anything. Thank you very much for helping me with this! :)