Shop OBEX P1 Docs P2 Docs Learn Events
Boe bot navigation at a t-junction of maze — Parallax Forums

Boe bot navigation at a t-junction of maze

ChaoticChaotic Posts: 1
edited 2013-03-06 14:50 in General Discussion
Hi I am trying to make a boe bot with the bs2 module go around a maze using three sharp ir sensors. At a t-junction, I want it to turn right on the first run, left on the second and based on the two turns, it should take the path that does not have any dead ends.

For this I used a program counter which is initialised to 0 and gets incremented when a t-junction is encountered. So when the program counter is 0 (first run), its turns right, when its 1, its turns left and so on. But for some reason, it doesn't quite work. The boe-bot always goes right at the junction.

Comments

Sign In or Register to comment.