my first robot
| Attachment | Size |
|---|---|
| DSC00573.JPG | 152.63 KB |
| DSC00574.JPG | 146.35 KB |
| DSC00575.JPG | 147.48 KB |
| DSC00576.JPG | 151.48 KB |
| DSC00577.JPG | 152.55 KB |
| DSC00578.JPG | 147.1 KB |
| DSC00579.JPG | 149.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



@ Fri, 2010-02-26 15:59
I made such robot. And i use
I made such robot. And i use this code. But robot goes forward and back.
I correctly connected details?
@ Fri, 2010-02-26 20:59
looks correctly wired to me.
@ Sun, 2010-02-07 19:01
tracks
@ Fri, 2009-12-04 05:36
so, how to make an external
@ Sat, 2009-12-05 00:09
http://letsmakerobots.com/nod
@ Thu, 2009-12-03 15:15
patrickmccabe, you used
@ Thu, 2009-12-03 15:48
Take a look at the datasheet
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!
@ Thu, 2009-12-03 19:00
yup. This being my first
@ Tue, 2009-10-27 10:27
i mean if you move it with a
@ Tue, 2009-10-27 20:39
no it does not have a remote