Raspberry Pi Roomba

Introduction: Raspberry Pi Roomba

This project is a good stepping stone into the world of D.I.Y. raspberry pi projects. In this instruct able, I will demonstrate how I made my robot and video of it being used

Keep in mind that in this project, the Dust Buster works completely independently from the rest of the robot

Supplies:

Raspberry pi 3

Dust Buster (With On & Off Switch)

8 battery battery holder

L298N Motor Controller

2 DC Motors

2 Wheels

Jumper wires

Round Ball Swivel

USB Power Bank

Wooden Board

Wire ties

Command Strips

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Set Up the Motors

The First step will be to connect the motors to the motor controller to check and make sure that they work. The first step is to connect the motors to the sides and screw them in place as shown in the photos. Then connect the 8 battery holder to the front of the motor controller. Making sure that the black pin goes in the middle hole and the red in the left hole.

if everything is working correctly so far, then you should see that the red LED on the motor controller has turned on.

Then you will want to connect jumper wires from the controller onto the Raspberry Pi, making sure to connect to the correct GPIO's as shown in the photo

Also make sure to connect a ground wire. Take a male to female jumper wire and connect it from the Pi, and then to the unused slot on the front of the motor controller. If your controller has spot for ground, you can use that as well

Step 2: Test the Motors

from gpiozero import Robot

robby = Robot(left=(7,8), right=(9,10))

By uploading this coded onto python, you should be able to get the motors to move

Simply run this code and then in the shell, type

robby.forward()

That line should make the motors move forward

Step 3: Assemble the Robot's Bottom Side

This is now the step where we actually build the robot.

The first step is to find some sort of a chassis for the robot. Personally, i used a wooden board that I found in my garage, it was sturdy enough to hold everything and it worked very well.

First, drill some holes onto the board where the motors will go, then place the motors on one end of the board and wire tie them in place. Keep adding wire ties until the motors feel tight enough that they wont move.

Then, on the opposite side of the board, install the Round Swivel. This will allow us to be able to get the robot to turn

Step 4: Top Side of the Robot

The top side of the robot is where everything else is going to be put on.

First, drill some more holes into the board so that you can wire tie the dust buster down. Then make sure that it is very tight. you should be able to grab the handle and have the entire robot come with it

Then take all of the pieces to the robot and plan out how you will place all of the pieces on the board.

Once you have everything planned as to where it going, take the command strips and start sticking them to the piece to hold everything in place

Step 5: Final Look

this is about what the robot should look like when it is done being put together

Step 6: Coding

I will leave the coding to you. There are many different ways that you can code this robot to move, but there are a few examples in the photos

Be the First to Share

    Recommendations

    • Magnets Challenge

      Magnets Challenge
    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest

    Discussions