Radar system Using Mobile phone.

Video Tutorial

watch the tutorial video and make your own Radar system using an ultrasonic sensor and smartphone. using a Bluetooth module and an ultrasonic sensor.



Description

Guys, we are going to use a mobile application to read out sensor values in real-time.  The only thing you want to do is, connect your smartphone with the Bluetooth Module to whichever sensor you need to read also install the application for Bluetooth control form given below link. Okay, let's make it.



Click the below link to download the app


Components Required

 1. Arduino UNO    * 1
 2. Bluetooth Module(HC-06)   * 1
 3.Ultrasonic sensor  * 1
4.Jumper Wires
5.Bread Board *1

 

  

Circuit Diagram


Program

Complete your coding with the help of the Arduino ide. Upload program to your Arduino board makes sure that the Arduino port selection option is perfect. Avoid chance to get an error during uploading program to board

Click here to learn: "How to Upload your code to Arduino boards Without Error"

#define trigPin 3
#define echoPin 2 

 void setup() 
{  
Serial.begin (9600); 
pinMode(trigPin, OUTPUT); 
pinMode(echoPin, INPUT); 
pinMode(A0,INPUT);
}

void loop() 
                               // depend on the sensor you are using you can change program

long duration,distance;    
digitalWrite(trigPin, LOW); 
delayMicroseconds(2); 
digitalWrite(trigPin, HIGH); 
delayMicroseconds(10); 
digitalWrite(trigPin, LOW); 
duration = pulseIn(echoPin, HIGH); 
distance = (duration/2) / 29.1;   
Serial.write(distance);                                
delay(200);                                      
}