Phone : +8801676998099         Email : zeronebd16@gmail.com
support 24/7

How to Make an Android Controlled Lawn Mower_Grass Cutter.

How to Make an Android Controlled Lawn Mower_Grass Cutter.

Project Fee:Negotiable

Project Discount:0

Project Duration:One Month

 Android Controlled Lawn Mower


Required Instruments:

Sl.No.

Required Instruments

Specifications

Quantity

 

Arduino Nano

Atmega328P

1

 

Bluetooth Module

HC-05

1

 

Battery

6 Volt

1

 

Motor Driver

L293D

1

 

Relay

5 Volt 10 A

1

 

Transistor

BC547

1

 

Resistor

1k

1

 

PVC Pipe

8 CM

8

 

 

13 CM

4

 

 

10 CM

2

 

 

18 CM

4

 

 

30CM

10

 

 

PVC T Angele

12

 

 

PVC Albo

8

 

 

Still Tie

 4


Apps Link:

https://play.google.com/store/apps/details?id=nextprototypes.BTSerialController&hl=en

Code:


String voice;

int

motor1 = 3, 

motor2 = 4, 

motor3 = 5,

motor4 = 6,

relay = 2;

void setup() {

  Serial.begin(9600);

  pinMode(motor1, OUTPUT);

  pinMode(motor2, OUTPUT);

  pinMode(motor3, OUTPUT);

  pinMode(motor4, OUTPUT);

  pinMode(relay, OUTPUT);

}

void loop() {

  while (Serial.available()){ 

  delay(10);

  char c = Serial.read(); 

  if (c == '#') {break;} 

  voice += c;

  }

if (voice.length() > 0){

  Serial.println(voice);  

 // Serial.println();

   if (voice == "F") 

               {

                // ll=1;

analogWrite(motor1,255);

digitalWrite(motor2,LOW);

analogWrite(motor3,255);

digitalWrite(motor4,LOW);

               } 

else if (voice == "B" ) 

               {

                 //ll=0;

digitalWrite(motor1,LOW);

analogWrite(motor2,255);

digitalWrite(motor3,LOW);

analogWrite(motor4,255);

               } 

else  if (voice == "L") 

               {

analogWrite(motor1,255);                

digitalWrite(motor2,LOW);

digitalWrite(motor3,LOW);                

digitalWrite(motor4,LOW);

               }

else  if (voice == "R") 

               {

              //   ll=0;

digitalWrite(motor1,LOW);

digitalWrite(motor2,LOW);

analogWrite(motor3,255);

digitalWrite(motor4,LOW);

               } 

else  if (voice == "S") 

{

       digitalWrite(motor1,LOW);

      digitalWrite(motor2,LOW);

     digitalWrite(motor3,LOW);

     digitalWrite(motor4,LOW);

}

 else  if (voice == "x") 

{

digitalWrite(relay,LOW);

}

else  if (voice == "y") 

{

digitalWrite(relay,HIGH);

}

}

voice="";