pranavmadhavaram
Published © GPL3+

Floor mopper

Make your floor shine with a tap

AdvancedFull instructions provided217
Floor mopper

Things used in this project

Hardware components

Arduino Mega 2560
Arduino Mega 2560
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
DC Motor, 12 V
DC Motor, 12 V
×3

Story

Read more

Schematics

floor mopper

Code

bluetooth based floor mopper

Arduino
void setup()
{
Serial.begin(9600);
pinMode(13, OUTPUT);//dc motor
pinMode(11,OUTPUT);
  pinMode(12,OUTPUT);
  digitalWrite(13, HIGH);
}
void loop()
{
if(Serial.available() > 0)
{
char data= Serial.read();
Serial.print(data);
Serial.println(data);
if(data == 'a')
{digitalWrite(13, HIGH);
digitalWrite(11, LOW) ;
}
else if(data == 'b')
{digitalWrite(13, LOW);
digitalWrite(11, HIGH) ;
}
else if(data=='c')
{digitalWrite(13, HIGH) ;
digitalWrite(11, HIGH) ;}
else{
digitalWrite(13, LOW) ;
digitalWrite(11, LOW) ;
}
}
}

Credits

pranavmadhavaram

pranavmadhavaram

16 projects • 1 follower

Comments