daniel.sutton
New Member
hi im doing a short course on electronics and i made a dick smith line tracking mouse.
http://www.dse.com.au/cgi-bin/dse.storefront/480311200885400a273fc0a87f9c0649/Product/View/K1235
instead of using the components provided i used my picaxe 8m.
http://picaxe08.orconhosting.net.nz/Photos/Projects/Mouse_08M_Bot.jpg
as seen by previous posts in archive 22 dirt cheap robot
http://www.picaxeforum.co.uk/search.php?searchid=91980
i typed up some code but it doesnt seam to work.
main: low 0
low 1
wait 5
start: if pin0=0 and pin1=1 and pin2=0 then fwd
low 0
low 1
goto start
fwd: high 0
high 1
if pin0=1 and pin1=0 and pin2=0 then right
if pin0=1 and pin1=1 and pin2=0 then right
if pin0=0 and pin1=0 and pin2=1 then left
if pin0=0 and pin1=1 and pin2=1 then left
goto fwd
left: low 0
high 1
pause 50
if pin0=0 and pin1=1 and pin2=1 then fwd
if pin0=1 and pin1=0 and pin2=0 then fwd
goto left
right: high 0
low 1
pause 50
if pin0=0 and pin1=1 and pin2=0 then left
if pin0=0 and pin1=0 and pin2=1 then left
goto right
Any ideas?
http://www.dse.com.au/cgi-bin/dse.storefront/480311200885400a273fc0a87f9c0649/Product/View/K1235
instead of using the components provided i used my picaxe 8m.
http://picaxe08.orconhosting.net.nz/Photos/Projects/Mouse_08M_Bot.jpg
as seen by previous posts in archive 22 dirt cheap robot
http://www.picaxeforum.co.uk/search.php?searchid=91980
i typed up some code but it doesnt seam to work.
main: low 0
low 1
wait 5
start: if pin0=0 and pin1=1 and pin2=0 then fwd
low 0
low 1
goto start
fwd: high 0
high 1
if pin0=1 and pin1=0 and pin2=0 then right
if pin0=1 and pin1=1 and pin2=0 then right
if pin0=0 and pin1=0 and pin2=1 then left
if pin0=0 and pin1=1 and pin2=1 then left
goto fwd
left: low 0
high 1
pause 50
if pin0=0 and pin1=1 and pin2=1 then fwd
if pin0=1 and pin1=0 and pin2=0 then fwd
goto left
right: high 0
low 1
pause 50
if pin0=0 and pin1=1 and pin2=0 then left
if pin0=0 and pin1=0 and pin2=1 then left
goto right
Any ideas?