Hey everyone. In our previous project, we made a vacuum cleaner along with a floor mopper. The only problem in that is you have to control it using phone. And for extra messy people one time cleaning is not enough. So we have to make a vacuum cleaner along with a floor mopper self driving and always activated. So let’s make it using Arduino.
Connections
1) take an IR sensor
2) digital pin of IR sensor to 4th pinof Arduino
3) VCC of IR sensor to 5V of Arduino
4) GND of IR sensor to GND of Arduino
5) a pin of DC motor to digital pin 13 of Arduino
6) anotherpin of DC motor to GND of Arduino
7) take another DC motor
8) a pin of DC motor to digital pin 11 of Arduino
9) another pin of DC motor to GND of Arduino
10) take another DC motor
11) a pinof DC motor to digital pin 12 of Arduino
12) another pin of DC motor to GND of Arduino
13) take another dc motor
14) a pinof DC motor to digital pin 9 of Arduino
15) another pin of DC motor to GND of Arduino
Precautions:
1)make sure motor 1 always rotates clockwise and motor to rotates anti clock wise if it doesn't happen exchange the connections.
2)front motor should be left side
3)back motor should be right side
4)connect a sponge at 3rd motor that touches the floor
5)connect motor 4 to fan
6)if the motor gives air then exchange its connections
7)keep the 3rd motor back side and 4th motor at front
8)Keep the ir sensor at front
are you liking the project?
do you want code for your project
contact me here
https://www.freelancer.in/hireme/pranavmadhavaram
Code:
voidsetup()
{
Serial.begin(9600);
pinMode(13, OUTPUT);//dc motor
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
digitalWrite(12, HIGH);
pinMode(9, OUTPUT);
digitalWrite(9, HIGH);
pinMode(4, INPUT);
}
voidloop()
{if (digitalRead(4)==HIGH)
{digitalWrite(13, HIGH);
digitalWrite(11, HIGH);}
else
{digitalWrite(13, HIGH);}}
are you liking the project?
do you want code for your project
contact me here
https://www.freelancer.in/hireme/pranavmadhavaram
physics behind it:
you might be wondering how the car rotates. I will explain it how with example
example:
when you are removing a bottle cap you will use two fingers thumb and index.
with the index finger you move it front and with thumb you move it backside.
the index will be placed left and thumb will be placed right the bottle rotates.
here when you press c the both motor rotates as they are placed left and right.
some doubts:
1) why I used a sponge when everyone creates a structure that looks like mop
ans: sponge stores lot of water and can use the water to clean
if we use normal mopper you have frequently dip it which dismantles the purpose of cleaning floor by sitting in a place.or make a complex system that gives water supply to it so I chose sponge
2) why I didn’t use ultrasonic sensor rather than IR sensor
Ans: ir sensor is short range.Which makes floor cleaner go to each corner. I can also adjust ultrasonic sensor to make it short range but ir sensor is cheaper and easier to use.
physics behind it:
you might be wondering how the car rotates. I will explain it how with example
example:
when you are removing a bottle cap you will use two fingers thumb and index.
with the index finger you move it front and with thumb you move it backside.
the index will be placed left and thumb will be placed right the bottle rotates.
here when you press c the both motor rotates as they are placed left and right.
did you like the project?
do you want code for your project
contact me here



_ztBMuBhMHo.jpg?auto=compress%2Cformat&w=48&h=48&fit=fill&bg=ffffff)





Comments