Love & Hate Robot
For the assignment in form and motion, I built a robot which is called hate and love robot. Robot has been assembled on a chariot made of basswood, two wheels in rear and a sliding wheel in front. This robot is basically uses two IR sensor as input device and controls its two DC motors using input information. The input of left sensor controls right motor and the input of right sensor controls left motor. The following image is an illustration:
The robot has a push button on it that send an input to arduino. Using it user can change robot mode. The uploaded code controls arduino so that for odd pushes of push button robot goes on love mode, and for even pushes robot goes on hat mode.
In love mode when a IR sensors detects an object in close distance the related motor generate torque so robot moves toward the object. In hate when a IR sensors detects an object in close distance the related motor stop generating torque so robot moves away from the object for the other motor is generating torque. (Refer to the following book: http://books.google.com/books?id=7KkUAT_q_sQC&dq=braitenberg+vehicles)
Watch the story of this robot: