Arduino distance measuring using bluetooth HC 05 and Ultrasonic sensor || Dream ideas DIY

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 มี.ค. 2021
  • Links
    1) Arduino UNO : www.amazon.in/dp/B00H1HR576/r...
    2) HC-05 Bluetooth module : www.amazon.in/dp/B00R95Y0AK/r...
    3) Ultrasonic sensor : www.amazon.in/dp/B08H2C34KL/r...
    4) jumper wires : www.amazon.in/dp/B00ZYFX6A2/r...
    5) 9v battery
    6) battery holder
    ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
    Code and Circuit Diagram link here 😁
    drive.google.com/folderview?i...
    Bluetooth app link
    play.google.com/store/apps/de...
    ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
    component required:
    1) Arduino UNO are Arduino nano
    2) Ultrasonic sensor
    3) HC 05 are HC 06 bluetooth module
    4) 9v battery
    5) 9v battery holder
    6) mini breadboard
    7) Jumper wires
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    🔴video 🎥📷
    Camera: Redmi note 9
    edited in: filmora 9
    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Music credits:
    Track: Ikson-last summer
    Listen to the original music : • #37 Last Summer (Offic...
    THANKS FOR WATCHING
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 66

  • @Dream_Ideas_DIY
    @Dream_Ideas_DIY  3 ปีที่แล้ว +8

    Keep supporting friends 😁😁✨

  • @tamilcreatortech1381
    @tamilcreatortech1381 3 ปีที่แล้ว +5

    Sooper

  • @Agilesh_Mathu_Channel
    @Agilesh_Mathu_Channel 2 ปีที่แล้ว +3

    Nice idea

  • @nitishkumar.r7656
    @nitishkumar.r7656 3 ปีที่แล้ว +3

    Super bro 💓💓

  • @ninashareenabintinorhisham1784
    @ninashareenabintinorhisham1784 2 ปีที่แล้ว +2

    Can I know what the function of the battery in this project ? Can this project be successful if not using the battery ?

  • @vickymw385
    @vickymw385 3 ปีที่แล้ว +6

    💯💯💯

  • @kaarthikeyanb7786
    @kaarthikeyanb7786 ปีที่แล้ว

    Which application you used for circuit bro 🤔

  • @NZHCreations
    @NZHCreations 2 ปีที่แล้ว +4

    Great 😃

    • @Dream_Ideas_DIY
      @Dream_Ideas_DIY  2 ปีที่แล้ว

      NZH creations TQ ❤ Keep Supporting

  • @ars4918
    @ars4918 2 ปีที่แล้ว

    cool bro

  • @Peace.2828
    @Peace.2828 3 ปีที่แล้ว +6

    Well done. Keep going ❤️

  • @abdokh7315
    @abdokh7315 2 ปีที่แล้ว +3

    Thanks. Bro continue

    • @Dream_Ideas_DIY
      @Dream_Ideas_DIY  2 ปีที่แล้ว +2

      Thanks for u r support bro ❤️😘

  • @Exceptionalboy111
    @Exceptionalboy111 ปีที่แล้ว +2

    Really Liked your work and editing skills✌️🔥...keep going ✨

  • @mr.techinventor3463
    @mr.techinventor3463 2 ปีที่แล้ว +2

    🔥🔥

  • @zionandjerusalem9999
    @zionandjerusalem9999 3 ปีที่แล้ว +4

    Tq bro 🤩

  • @error-ts3xt
    @error-ts3xt 2 ปีที่แล้ว +4

    My serial bt terminal app says TOO CLOSE 0cm without anything near the sensor...please help

    • @Dream_Ideas_DIY
      @Dream_Ideas_DIY  2 ปีที่แล้ว +1

      Error404 Bro please check your circuit connections once

    • @error-ts3xt
      @error-ts3xt 2 ปีที่แล้ว

      @@Dream_Ideas_DIY i am using a power bank to power arduino could this be the issue?

    • @Dream_Ideas_DIY
      @Dream_Ideas_DIY  2 ปีที่แล้ว

      @@error-ts3xt no issues bro ❤️

  • @luthfiaiman2896
    @luthfiaiman2896 11 หลายเดือนก่อน

    can someone tell me the problem statement why this dude invent this project?

  • @nuraliahbatrisyia2840
    @nuraliahbatrisyia2840 ปีที่แล้ว

    can i know why did you put LED in your coding when you dont use LED

    • @Dream_Ideas_DIY
      @Dream_Ideas_DIY  7 หลายเดือนก่อน

      additional futures i added bro if you want LED you can add it

  • @TravelDiscover1
    @TravelDiscover1 3 ปีที่แล้ว +4

    🤝🤝🤝🤝❤️❤️❤️❤️❤️

  • @danielgamponia5444
    @danielgamponia5444 2 ปีที่แล้ว

    cannot connect to sensor to apps

  • @muhammadbaqirkareem734
    @muhammadbaqirkareem734 2 ปีที่แล้ว +2

    Dear respected brother,
    I am beginniner to use Arduino, sir i upload built-in led blink example sketch to Arduino uno and pro mini, both are blinking well, then I upload empty sketch to clear example code, system shows message that sketch upload done 100 %, but both boards runs previously blink example code. I tried to different systems (PC, Laptop,mobile) to clean an upload new sketch, but results are same, where I mistaken i don't understand. Pls help me to solve if you interested.

    • @Dream_Ideas_DIY
      @Dream_Ideas_DIY  2 ปีที่แล้ว

      8867126724 massage me in whatsapp bro 👍

    • @Dream_Ideas_DIY
      @Dream_Ideas_DIY  2 ปีที่แล้ว

      Don't upload empty code bro upload any other code... After uploaded code automatically delete previous code bro ❤️

  • @SharwinaArasad
    @SharwinaArasad 23 วันที่ผ่านมา

    hi can you sent me the code??

  • @raniladhane1975
    @raniladhane1975 หลายเดือนก่อน

    Code is not opening

  • @danielgamponia5444
    @danielgamponia5444 2 ปีที่แล้ว

    Pls help me...the apps is connected but cannot give the output ..what is the problem?

    • @Dream_Ideas_DIY
      @Dream_Ideas_DIY  2 ปีที่แล้ว

      Bro connect ultrasonic sensor VCC to 5v bro

  • @suryadevarasailathachowdar5409
    @suryadevarasailathachowdar5409 ปีที่แล้ว

    bro i was not getting the output

  • @fredsampson8064
    @fredsampson8064 2 ปีที่แล้ว +4

    What is the maximum / minimum distance this will measure?

    • @Dream_Ideas_DIY
      @Dream_Ideas_DIY  2 ปีที่แล้ว +4

      Maximum distance 4 meters / minimum distance 2 cm... if the object comes near in 15 cm it will beeps a buzzer are display as( TO CLOSE )....
      FULL CODE AND CIRCUIT DIAGRAM given in diacription bro

    • @fredsampson8064
      @fredsampson8064 2 ปีที่แล้ว +1

      @@Dream_Ideas_DIY Thanks a lot, I look forward trying this out. Keep up the excellent posts bro!

    • @Dream_Ideas_DIY
      @Dream_Ideas_DIY  2 ปีที่แล้ว

      @@fredsampson8064 TQ bro 🤩🥰❤️❤️ keep supporting

  • @ishandeshmukh2925
    @ishandeshmukh2925 ปีที่แล้ว

    File not supporting

  • @appu5649
    @appu5649 2 ปีที่แล้ว +3

    Hi

    • @Dream_Ideas_DIY
      @Dream_Ideas_DIY  2 ปีที่แล้ว

      Hi appu thanks for watching ✨❤️

  • @thomas1000official
    @thomas1000official 2 ปีที่แล้ว +1

    do in not cm

  • @Ai.mediax
    @Ai.mediax 2 ปีที่แล้ว +2

    I want help sir

  • @naveenparagonda9119
    @naveenparagonda9119 ปีที่แล้ว

    Sir could you please share the code the sir

    • @Dream_Ideas_DIY
      @Dream_Ideas_DIY  5 หลายเดือนก่อน

      /* program by LOHITH KUMAR(Richu)
      * subscribe DREAM IDEAS for more updates
      */
      int triggerPin = 7; //triggering on pin 7
      int echoPin = 8; //echo on pin 8
      int LED = 13; //led pin
      int info = 0;//variable for the information comming from the bluetooth module
      int state = 0;//simple variable for displaying the state
      void setup() { //we will be combinig both setups from the codes
      Serial.begin(9600); //we'll start serial comunication, so we can see the distance on the serial monitor
      pinMode(triggerPin, OUTPUT); //defining pins
      pinMode(echoPin, INPUT);
      pinMode(LED, OUTPUT); //defining LED pin
      digitalWrite(LED, LOW); //once the programm starts, it's going to turn of the led, as it can be missleading.
      }
      void loop(){ //here we combine both codes to work in the loop
      bluetooth();
      sensor();
      }
      void bluetooth() { //loop from the bluetooth code is renamed to "bluetooth" void
      if(Serial.available() > 0){ //if there is any information comming from the serial lines...
      info = Serial.read();
      state = 0; //...than store it into the "info" variable
      }
      if(info == '1'){ //if it gets the number 1(stored in the info variable...
      digitalWrite(LED, HIGH); //it's gonna turn the led on(the on board one)
      if(state == 0){ //if the flag is 0, than display that the LED is on and than set that value to 1
      Serial.println("LED ON"); //^^that will prevent the arduino sending words LED ON all the time, only when you change the state
      state = 1;
      }
      }
      else if(info == '0'){
      digitalWrite(LED, LOW); //else, it's going to turn it off
      if(state == 0){
      Serial.println("LED OFF");//display that the LED is off
      state = 1;
      }
      }
      }
      void sensor() { //loop from the sensor code is renamed to the "sensor" void
      int duration, distance; //Adding duration and distance
      digitalWrite(triggerPin, HIGH); //triggering the wave(like blinking an LED)
      delay(10);
      digitalWrite(triggerPin, LOW);
      duration = pulseIn(echoPin, HIGH); //a special function for listening and waiting for the wave
      distance = (duration/2) / 29.1; //transforming the number to cm(if you want inches, you have to change the 29.1 with a suitable number
      Serial.print(distance); //printing the numbers
      Serial.print("cm"); //and the unit
      Serial.println(" "); //just printing to a new line
      //adding for mesuring distance where the led will turn off, even if we tell it to turn off when we chose so in the app
      if(distance

  • @Udaykumar-bn6eh
    @Udaykumar-bn6eh 2 ปีที่แล้ว +2

    Hi sir .. can you share code for this project..

    • @Dream_Ideas_DIY
      @Dream_Ideas_DIY  2 ปีที่แล้ว

      Hi sir
      Code and circuit diagram I given in description please check it out sir 👆

  • @SanjeewaniNalika-nr7kl
    @SanjeewaniNalika-nr7kl 6 หลายเดือนก่อน

    Link එක download කරන්න බෑ

    • @Dream_Ideas_DIY
      @Dream_Ideas_DIY  5 หลายเดือนก่อน

      /* program by LOHITH KUMAR(Richu)
      * subscribe DREAM IDEAS for more updates
      */
      int triggerPin = 7; //triggering on pin 7
      int echoPin = 8; //echo on pin 8
      int LED = 13; //led pin
      int info = 0;//variable for the information comming from the bluetooth module
      int state = 0;//simple variable for displaying the state
      void setup() { //we will be combinig both setups from the codes
      Serial.begin(9600); //we'll start serial comunication, so we can see the distance on the serial monitor
      pinMode(triggerPin, OUTPUT); //defining pins
      pinMode(echoPin, INPUT);
      pinMode(LED, OUTPUT); //defining LED pin
      digitalWrite(LED, LOW); //once the programm starts, it's going to turn of the led, as it can be missleading.
      }
      void loop(){ //here we combine both codes to work in the loop
      bluetooth();
      sensor();
      }
      void bluetooth() { //loop from the bluetooth code is renamed to "bluetooth" void
      if(Serial.available() > 0){ //if there is any information comming from the serial lines...
      info = Serial.read();
      state = 0; //...than store it into the "info" variable
      }
      if(info == '1'){ //if it gets the number 1(stored in the info variable...
      digitalWrite(LED, HIGH); //it's gonna turn the led on(the on board one)
      if(state == 0){ //if the flag is 0, than display that the LED is on and than set that value to 1
      Serial.println("LED ON"); //^^that will prevent the arduino sending words LED ON all the time, only when you change the state
      state = 1;
      }
      }
      else if(info == '0'){
      digitalWrite(LED, LOW); //else, it's going to turn it off
      if(state == 0){
      Serial.println("LED OFF");//display that the LED is off
      state = 1;
      }
      }
      }
      void sensor() { //loop from the sensor code is renamed to the "sensor" void
      int duration, distance; //Adding duration and distance
      digitalWrite(triggerPin, HIGH); //triggering the wave(like blinking an LED)
      delay(10);
      digitalWrite(triggerPin, LOW);
      duration = pulseIn(echoPin, HIGH); //a special function for listening and waiting for the wave
      distance = (duration/2) / 29.1; //transforming the number to cm(if you want inches, you have to change the 29.1 with a suitable number
      Serial.print(distance); //printing the numbers
      Serial.print("cm"); //and the unit
      Serial.println(" "); //just printing to a new line
      //adding for mesuring distance where the led will turn off, even if we tell it to turn off when we chose so in the app
      if(distance

  • @mathandscienceareyourfuture
    @mathandscienceareyourfuture 10 หลายเดือนก่อน

    The link for code is not there

    • @mathandscienceareyourfuture
      @mathandscienceareyourfuture 10 หลายเดือนก่อน

      So could copy and paste the code here😢

    • @Dream_Ideas_DIY
      @Dream_Ideas_DIY  5 หลายเดือนก่อน

      /* program by LOHITH KUMAR(Richu)
      * subscribe DREAM IDEAS for more updates
      */
      int triggerPin = 7; //triggering on pin 7
      int echoPin = 8; //echo on pin 8
      int LED = 13; //led pin
      int info = 0;//variable for the information comming from the bluetooth module
      int state = 0;//simple variable for displaying the state
      void setup() { //we will be combinig both setups from the codes
      Serial.begin(9600); //we'll start serial comunication, so we can see the distance on the serial monitor
      pinMode(triggerPin, OUTPUT); //defining pins
      pinMode(echoPin, INPUT);
      pinMode(LED, OUTPUT); //defining LED pin
      digitalWrite(LED, LOW); //once the programm starts, it's going to turn of the led, as it can be missleading.
      }
      void loop(){ //here we combine both codes to work in the loop
      bluetooth();
      sensor();
      }
      void bluetooth() { //loop from the bluetooth code is renamed to "bluetooth" void
      if(Serial.available() > 0){ //if there is any information comming from the serial lines...
      info = Serial.read();
      state = 0; //...than store it into the "info" variable
      }
      if(info == '1'){ //if it gets the number 1(stored in the info variable...
      digitalWrite(LED, HIGH); //it's gonna turn the led on(the on board one)
      if(state == 0){ //if the flag is 0, than display that the LED is on and than set that value to 1
      Serial.println("LED ON"); //^^that will prevent the arduino sending words LED ON all the time, only when you change the state
      state = 1;
      }
      }
      else if(info == '0'){
      digitalWrite(LED, LOW); //else, it's going to turn it off
      if(state == 0){
      Serial.println("LED OFF");//display that the LED is off
      state = 1;
      }
      }
      }
      void sensor() { //loop from the sensor code is renamed to the "sensor" void
      int duration, distance; //Adding duration and distance
      digitalWrite(triggerPin, HIGH); //triggering the wave(like blinking an LED)
      delay(10);
      digitalWrite(triggerPin, LOW);
      duration = pulseIn(echoPin, HIGH); //a special function for listening and waiting for the wave
      distance = (duration/2) / 29.1; //transforming the number to cm(if you want inches, you have to change the 29.1 with a suitable number
      Serial.print(distance); //printing the numbers
      Serial.print("cm"); //and the unit
      Serial.println(" "); //just printing to a new line
      //adding for mesuring distance where the led will turn off, even if we tell it to turn off when we chose so in the app
      if(distance

  • @happyboy_editz4656
    @happyboy_editz4656 2 ปีที่แล้ว

    Bro where is the coding....

  • @youtubeboy5700
    @youtubeboy5700 2 ปีที่แล้ว +1

    fake source code it didnt work

    • @Dream_Ideas_DIY
      @Dream_Ideas_DIY  2 ปีที่แล้ว

      8867126724 send hi in whatsapp bro I will send code and circuit diagram bro

    • @thomas1000official
      @thomas1000official 2 ปีที่แล้ว +2

      code work

  • @nuraliahbatrisyia2840
    @nuraliahbatrisyia2840 ปีที่แล้ว

    can i contact you pls, cause it didnt give output on that apps plss help me