Bluetooth Car 4WD - Arduino Project

 How to Make Automatic  Multipurpose Agricultural Machine



India has always been known for its agricultural products and quantity, plus it is one of the key drivers of the Indian economy. But since most of the farmers are poor or have small farmers also the present agriculture machine has developed has only single functionality that is seed showing or water as prayer or only a single operation. The purposed mission is mainly useful for small-size formers in order in increasing productivity. This machine runs on solar energy is renewable and is easily available

In this project, we are using two Arduino two drivers and two Bluetooth. one driver one Arduino and one Bluetooth used for the moment of wheeling or moment of car. and another Arduino and another Bluetooth and another driver used for the four applications. in this machine install four applications like cultivator, seed showing and pestis sprayer, and grass cutter.

Step 1

Upload Programs to Arduino Board

#include <SoftwareSerial.h>

 SoftwareSerial mySerial(0, 1); // RX | TX

int command ;

void setup() {

   Serial.begin(9600);

   mySerial.begin(9600);

   Serial.println("You're connected via Bluetooth");

   pinMode(13,OUTPUT);   //left motors forward

   pinMode(12,OUTPUT);   //left motors reverse

   pinMode(11,OUTPUT);   //right motors forward

   pinMode(10,OUTPUT);   //right motors reverse

 }

 void loop() {

   if (mySerial.available())

   {

    command=(mySerial.read());

    if (command=='F')

    {

      Serial.println("Forward");

      digitalWrite(13,HIGH);

      digitalWrite(12,LOW);

      digitalWrite(11,HIGH);

      digitalWrite(10,LOW);          

   }

   else if (command=='B')

    {

      Serial.println("Reverse");

      digitalWrite(13,LOW);

      digitalWrite(12,HIGH);

      digitalWrite(11,LOW);

      digitalWrite(10,HIGH);

    }

     else if (command=='L')

    {

      Serial.println("Left");

      digitalWrite(13,LOW);

      digitalWrite(12,LOW);

      digitalWrite(11,HIGH);

      digitalWrite(10,LOW);

    }

       else if (command=='R')

    {

      Serial.println("Right");

      digitalWrite(13,HIGH);

      digitalWrite(12,LOW);

      digitalWrite(11,LOW);

      digitalWrite(10,LOW);

    }

     else if (command=='S')

    {

      Serial.println("Stop");

      digitalWrite(13,LOW);

      digitalWrite(12,LOW);

      digitalWrite(11,LOW);

      digitalWrite(10,LOW);

    }

   delay(30);

  }

}


Step 2

Make the Connection Given below the Diagram


Step 3

Connect Bluetooth HC-05 To Mobile Application




EEE

Post a Comment

Previous Post Next Post