Bluetooth Robot

A robot was built using an Arduino Mega 2560 microcontroller. The robot had both autonomous driving capabilities and could be driven with a smartphone using Bluetooth communication. The robot had six components working together in order to make it run properly: a Bluetooth receiver, infrared line sensors, ultrasonic sensors, wheel encoders, DC motors for each wheel, and a claw that was powered by a servo motor. The robot was designed to complete four challenges. The first challenge was a timed driving test where the robot had to be piloted by a user to the end of an L shaped track to retrieve a foam ball and return to deposit the ball in a receptacle adjacent to the start location. The second challenge was a cruise control challenge where the robot needed to maintain a constant speed while driving on a treadmill as the angle of the treadmill was varied. The third challenge was a line follower challenge where the robot had to follow a black line on white paper. In the final challenge the robot needed to navigate through a maze autonomously.

The robot used Bluetooth communication in conjunction with a smartphone running Android. An app was used called Bluetooth Serial Controller by NEXT PROTOTYPES which is a user programmable serial communication tool was used to communicate with the robot via Bluetooth. Input information received from the phone was then used to drive motors in an appropriate direction or cycle the servo connected to the gripper between two predetermined states.

Ultrasonic sensors were used to gauge the robot's distance from an object. The sensors would emit an ultrasonic soundwave and measure the amount of time it took for the soundwave to bounce back. If the soundwave did not bounce back within a certain amount of time the device interpreted the information as the absence of an object. Two sensors were used, one in the front of the robot and one on the left side of the robot. Depending on the input received from the sensors the robot was programmed to decide if it should turn right, left, or continue straight.

Infrared sensors were used to complete the line follower challenge. Two sensors were used in the middle of the robot on the front side about 1" apart. When the sensor was over a white section of the paper the light would be returned to the unit and produce a high digital signal. Whenever the sensor was over a black section of paper light would be absorbed by the dark image and the device would return a low digital signal. Whenever one of the two devices returned a low signal the robot was programmed to maneuver in the opposite direction to get back on the track.

Special thanks to Austin Hankins for contributing 50% of the work involved in this project.