Sharp programing on picaxe
June 1, 2011
Ok so I want a basic obstacle avoiding program with my sharp sensor. It is made on the start here robot. The programming language is picaxe basic. After hours of trying I still cant get it going correctly. So i hope u can help me. Thanks
The idea- It is supposed to read the distance and then decide whether it is far enough away to proceed forward or to go to sub program ahead (go backword, I know confusing haha sorry). So if you have any ideas please tell me. Better yet revise my program or make a new one and show me it. Thanks! First time with sharp.
readadc 1, b1
if b1 < 170 then : goto behind : else : goto ahead: endif (yes I know they are switched in the names sorry)
backward A ' motor wiring is that way to go forward