Arduino Powered Automatic Sweeper

by eriuterbloopers888 in Circuits > Arduino

1692 Views, 3 Favorites, 0 Comments

Arduino Powered Automatic Sweeper

P_20190414_154025.jpg

So one day I decided to buy a roomba but its too expensive for I am a student and still my priority is my school,

and an idea flashes to my mind stating how 'bout make one, I have a decent background on programming and arduino so why not?

Outsourcing Materials

SAM_6075.JPG
SAM_6122.JPG
SAM_6068.JPG
SAM_6087.JPG

The part for the projects are listed below:

  • Arduino pro mini or any arduino board

I just used pro mini because it is more efficient and smaller

  • L298n motor driver

This motor driver is used to drive the two motors powering the sweeper

  • Push broom

if you don't know what a push broom, it is like a broom with several brushes

and spins as you push it through and collects the dirt

  • 2 DC brushed motors

I just used some misc DC motors i got from broken toy cars

  • Two Ultrasonic Sensors

to sense and avoid walls and obstacles

  • DC power jack

To charge the power banks

  • Power banks

to provide the power needed for the board and motors

  • two USB males cables

to connect to power bank

Tools Required

SAM_6117.JPG
  • A Dremel tool

to cut and put hole where it is needed

  • A Soldering iron

to solder wires, of course.

  • Pliers

to cut wire and help bend the wires

  • glue gun (optional)

to hold the motors together but if you don't just use zipties

  • Screwdriver

to fasten and loosen the screws of several components

Finding Where to Put the Motors and Sensors and Paint Job

SAM_6109.JPG
P_20190404_192205.jpg
P_20190404_192210.jpg

I estimated where to put the sensors by just putting them above and i marked the circles which will be later then cut by the dremel and while I'm at it i painted it with a metallic blue spray paint

Putting Holes

SAM_6113.JPG
SAM_6126.JPG
SAM_6114.JPG
SAM_6124.JPG
SAM_6111.JPG
SAM_6129.JPG
SAM_6127.JPG
SAM_6125.JPG
SAM_6112.JPG
SAM_6130.JPG
  • So i put four holes in front of the upper body broom two on the left and two on the right for the sensors to go in
  • and i also put two rectangular holes in the bottom of the lower body of the broom for the motors to go in

Puttng It All Together

SAM_6146.JPG
SAM_6149.JPG
SAM_6138.JPG
20190409_125052.jpg
SAM_6115.JPG
SAM_6116.JPG
SAM_6145.JPG
SAM_6144.JPG

I hot glued all the sensor and motors to the body, for the motors i put it in the lower body and supported it with wooden dowels so it will not jiggle around. for the sensors i also hot glued them in their proper holes, i also made a breakout board for the pro mini so it will be easier to wire and trouble shoot. while the motor driver is in the front of the cleaner

Code

the code was made in the Arduino IDE and it is c plus modified, of course. if you want to download the code just press the link down below. so there a re two parts of the code in layman's term, the first part's job is to get the data form the sensors so the board can analyze it and the second part's job is to assign which motors spin and maneuver, that's it just two simple parts. if you are wondering how did i upload the code, i just use an arduino uno to upload

Downloads

Hardwiring It

SAM_6159.JPG
SAM_6157.JPG
SAM_6164.JPG
SAM_6175.JPG

i used #12 gauge hookup wire to connect every thing to its proper place. fritzing schematic is given above .

the VCC and GND of the sensors are connected to the power banks which supplies 5 volts and trig pin an echo pin is connected to their appropriate pins. also the pins for controlling the motor is defined in the code

Closing It Up

SAM_6168.JPG

i put the power bank on top because there is no space for the two massive powerbank inside i also put it on the front to add weight hence putting more traction on the front wheels which is driving the brush. i also screwed all the things back again

Finishing Touches

this is the last step of this long instructable hope you enjoy making it and feel free to modify and change it.