Author Options:

Functions? Answered

I'm first taking all the classes before starting the built to fully understand all the functions of the robot. When the edge detection sensor or distance sensor is activated the bot with reverse and move right, correct?

Is there a difference is direction when one of the collision sensors is activated. Left sensor activated, reverse and turn right, right sensor activated, reverse and move left?

1 Replies

randofoBest Answer (author)2017-05-04

Currently, no. Both switches are currently wired to the same pin (Pin 2). I did this because I was worried about running out of pins on the Arduino on account of the DTMF shield using so many.

Right now it only backs up and turns right when it collides with something.

If you wanted to break out the switches to separate pins, you could add this functionality.

Select as Best AnswerUndo Best Answer