Introduction: Line Follower

Users should be able to construct a small remote control car that can:

  1. Drive forward or backwards or turn left/right based on input from the IR remote
  2. Go into line following mode based on an IR remote command. This should be able to follow a black line on a white floor
  3. Use the ultrasound distance sensor for obstacle avoidance during a random 'vacuum the room' path (think Roomba)

Supplies

  • Arduino uno and breadboard 
  • Ultrasonic distance sensor 
  • 2 line sensors 
  • 2 motors with a driver 
  • IR remote and receiver 
  • Batteries and battery holder 
  • Wheels 
  • Legos
  • Wires
  • Rubber bands
  • Arduino compatible wheels


Step 1: Frame and Wiring

1st to thing construct is the frame that holds the motors and where "the brain" ie the breadboard will sit on top of. For this we used legos that meshed well with the DC gear motors. To the front of the frame there are two attached skis where the line followers are held. All wires are arranged so that can barely be see and fed through the center of the frame so that can be used when time to install the brain.

Step 2: The Brain and Body

The brain is a breadboard stacked on top of an arduino uno board to wire the brain u must connect a DC motor driver an led IR receiver and a resistor. Once everything is intially wired in the arduino then you can stack a breadboard on top and finish wiring into that. Once that is completed it can be mounted on the frame. In front of the breadboard you will wire an ultrasound distance sensor to acts as it eyes and that will be braced in place using legos. At this point all thats left for building is to cover the the brain using lego body paneling and put the wheel on and wrap with a rubber on each one.

Step 3: Coding

Utilize code provided

Step 4: Instructions

To operate you will use the IR remote to control the different modes and turn the robot on and off. The IR remote direction pad can be used to control the robot to go forward backward and turn. The volume controls the speed at which it goes.