Introduction: Maze Solving Robot

This project will instruct you on how to create your very own maze solving robot. Only the most basic prior knowledge is necessary to complete this project and the only supplies you will need is a SparkFun Inventor's Kit, tape, and some cardboard!

Supplies

Parts

Step 1: Wiring

  1. Begin the wiring process by wiring your breadboard to your Arduino Uno by connecting power and ground wires to each.
  2. Next, wire the potentiometer similarly by connecting it to ground and power.
  3. Connect the speaker by grounding it and connecting it to your desired input on the Arduino Uno.
  4. Wire both ultrasonic sensors by powering and grounding them and then connecting each of the two inner connections to an input on the Arduino Uno.
  5. Now, wire the motor driver by connecting its ground and power then connect all of its inputs and enable port to inputs on the Arduino Uno.
  6. Finally, connect both motors by simply connecting their power and ground wires to the output ground and power of the motor driver.

Step 2: Construction

  1. Attach both your breadboard and Arduino Uno to the holding platform. Your wiring should match the wiring shown above.
  2. Next, plug the Arduino Uno into the battery pack and fasten it to the bottom of the platform using some tape or another removable adhesive.
  3. Now to create the body, grab some cardboard and create a simple box by folding and taping the cardboard. This step can be as simple or fancy as you want it to be as long as the box can hold the platform,
  4. Now cut out holes in the sides of the cardboard as seen in the photos to allow the motor wires the pass through as well as for the sensors to see out,
  5. Attach the motors on the bottom of the box so that they are towards the front of the box and have clearance to spin.
  6. Finally, decorate your robot to make him your very own!

Step 3: Finishing Touches

Finally, all you need to do is download to Arduino IDE software, connect your Arduino Uno to your computer, and upload the attached to code the the board.

The robot will be able to detect walls in front of and beside it in order to get itself through a maze. When the front sensors sense something in front of it it will turn left. If the left sensor also senses a wall in front of it then the robot will turn right. After each decision the robot will travel a certain distance until it finds a new wall. (The speaker will also play a quick tune if it travels enough distance without detecting any walls). The potentiometer will adjust the volume of this tune.

Now you have your very own maze-solving robot!

Step 4: Video Instructions