Let's Make Robots!

my first robot

navigate around using sharp ir
AttachmentSize
DSC00573.JPG152.63 KB
DSC00574.JPG146.35 KB
DSC00575.JPG147.48 KB
DSC00576.JPG151.48 KB
DSC00577.JPG152.55 KB
DSC00578.JPG147.1 KB
DSC00579.JPG149.32 KB

my robot is using the picaxe18 power board from sparkfun.com. he turns both ways and decides which way is better to go and goes that way

 

here is my code:

 

 

 

symbol dangerlevel= 84

 

Main:

readadc 0,b0

if b0<dangerlevel then

low 4: high 5: low 6: high 7

goto main

else

label_1: readadc 0,b0

end if

high 4: low 5: high 6: low 7

if b0>75 then

goto label_1

else 

low 4: high 5: high 6: low 7

pause 500

readadc 0, b0

high 4:low 5: low 6: high 7

pause 1000

readadc 0,b1

low 4: high 5: high 6: low 7

pause 500

end if

if b0<b1 then

low 4: high 5: high 6: low 7

pause 500

goto main

else

high 4:low 5: low 6: high 7

pause 500

end if

goto main

 

Comment viewing options

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

I made such robot. And i use this code. But robot goes forward and back.

I correctly connected details?

2mdo4np.jpg 

 

looks correctly wired to me. You might want to debug the sensor and see its values. I cant assure you that my code will work for you but you should be able to write your own code that works the same as mine does. I do not use picaxeany longer , instead i use arduino, and so i can not help you too much with the code. But like i said, you should try and write your own, thats what i did and it was my first robot ever.
Where did you get the tracks? I'm looking for a good pair.
so, how to make an external board for motor control?
patrickmccabe, you used PICAXE-18 High Power Project Board. And if to use PICAXE-18 Standard Project Board that motors to connect to project board also?

Take a look at the datasheet for the standard project board.

Page 1 explains the difference.

"The standard board uses a darlington driver IC to provide 8 digital (on/off) outputs. Each output is rated at 800mA."

"The high power board uses 4 FETs to provide 4 high power digital outputs (rated at 1.5A each), and the option of a L293D motor driver IC to provide 2 reversible motor outputs, rated at 1A each."

If you have the standard board, you have less power per output. You also lack the option for a built-in motor driver chip. So you could build or buy an external board for motor control. Or you could go with servos modified for continuous rotation, which can be driven from a single output pin. You can drive these from the V2 supply up to 6V, though I imagine you are still limited to 800mA each. If you need more power, you could use the outputs to drive relays, which could switch higher power for you.

Good luck! 

yup. This being my first robot i built, i did not know how to wire up the l293d motor driver (now the circuit is glued in my head). So i used this board simply because it had the built in motor driver.
i mean if you move it with a remote control....
no it does not have a remote control