New Project

CONNECT

Arduino Wireless Mobile Parking Sensor Making

  • Page Views 3014
  • Spread the love
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  

    We made a good system you can use to park your car.Data from ultrasonic sensors, the system will see the LCD screen via bluetooth.Our system will provide benefits across the board is very simple to carry and install.When we want to we can arrange another vehicle from a vehicle.

    Materials:

    • 2xArduino (no matter nano models will suffice)
    • HC05 vs HC-06 Bluetooth Modules
    • HC-SR04 Ultrasonic Sensor
    • LCD Display (16 x 2)

    Transmitter Circuit:

    Receiver Circuit:

     

    The receiver section as the LCD can form connections.If the LCD screen serial converter you do not need to make this connection.We use normal contact pins for Bluetooth communication modules of the software.You do not need to add a separate serial communications library.

    Transmitter Software:

    //Software development By Robimek - 2015
    // Software Licensing By Robimek
    //www.robimek.com
    
    #include <NewPing.h>
    int trigPin=12;
    int echoPin=11;
    #define MAX_DISTANCE 200
    NewPing sonar(trigPin, echoPin, MAX_DISTANCE); // NewPing setup of pins and maximum distance.
    
    void setup() {
    Serial.begin(9600);
    
    }
    
    void loop() {
    delay(50);
    unsigned int uS = sonar.ping();
    Serial.write(uS / US_ROUNDTRIP_CM);
    
    }

    Receiver Software:

     //Software development By Robimek - 2015 
    // Software Licensing By Robimek 
    //www.robimek.com
    #include <LiquidCrystal.h>
    LiquidCrystal LCD(10, 9, 5, 4, 3, 2);
    int buzzerpin = 6;
    unsigned int distance;
    void setup() {
     
    Serial.begin(9600);
    LCD.begin(16,2);
    LCD.setCursor(0,0);
    LCD.print("Mesafe:");
    pinMode(buzzerpin, OUTPUT);
    digitalWrite(buzzerpin,HIGH);
    }
     
    void loop() {
     
    if (Serial.available()>0){
    delay(50);
    distance = Serial.read();
    LCD.setCursor(0,1);
    LCD.print(" ");
    LCD.setCursor(0,1);
    LCD.print(distance);
    LCD.print(" cm");
    if(distance >200)
    {
    digitalWrite(buzzerpin, HIGH);
     
    }
    if(distance >=150 && distance <200) 
    { digitalWrite(buzzerpin, LOW); beep(200); } 
    if(distance >=100 && distance <150) 
    { digitalWrite(buzzerpin, LOW); beep(150); } 
    if(distance >=50 && distance <100)
    {
    digitalWrite(buzzerpin, LOW);
    beep(50);
    }
    if(distance <50)
    {
    digitalWrite(buzzerpin, LOW);
    beep(10);
    }
     
    }
    }
     
    void beep(unsigned char delayms){
    analogWrite(12, 255);
    delay(delayms);
    analogWrite(12, 0);
    delay(delayms);
     
    }

    After installing the software, bluetooth modules in the open position when the two systems will automatically connect to each other.Once connected, you can see from the screen LCD.We set the maximum distance of 200 cm in software.If maximum visual distance of the sensor 4 metredir.ist you can change up to 4 meters.

    Here you can download the file fritzing project.>>mobil park

    Share

    9 Comments For "Arduino Wireless Mobile Parking Sensor Making"

    1. gaith
      September 11, 2015

      trés bien

      Reply
    2. eddy wuytens
      February 10, 2016

      Hi
      Is it possible to give more details about the HC05 vs HC-06 Bluetooth Modules
      Where to buy ? I have not found a model that resembles with your drawing on ebay

      thanks

      eddy Belgium

      Reply
      • February 10, 2016

        you can found >> ebay.com/itm/Wireless-Serial-4-Pin-Bluetooth-RF-Transceiver-Module-HC-06-RS232-With-backplane-/200924726178

        Reply
        • wuytens
          February 11, 2016

          Thanks
          and where can I find the HC05 ?
          I only find 6 pins for the hc05
          or can i use 2 x hc06 ?
          I am a amateur

          thanks
          eddy

          Reply
          • February 11, 2016

            you can found ebay. only 4 pins using to 6 pins. You use pins tx,rx,vcc and gnd. you must use hc-05 because only this working master and slave modes. Hc-06 working only slave mode . You use two hc-05 or one hc-05 and hc-06 . But use hc-05 before at command setting master mode .
            You can see here how you can do >> http://make.robimek.com/two-arduino-communicate-with-bluetooth/

            Reply
    3. Bogdan
      February 27, 2016

      is it possible to connect multiple ultrasonic sensors to the same arduino? so it will be 1 transmitter (with multiple ultrasonic sensors attached) + 1 receiver (arduino+ buzzer +lcd)

      Reply

    Leave a comment

    Your email address will not be published. Required fields are marked *

    BE A FACEBOOK FAN

    Instagram