Arduino Ultrasonic Distance Sensor Audio Alert

Sdílet
Vložit
  • čas přidán 25. 08. 2024

Komentáře • 41

  • @minibit0103
    @minibit0103 Před 5 lety +3

    Sweeeeeeeeeeeeeeet! These are sweet projects!

  • @matheusjorgebatista
    @matheusjorgebatista Před 5 lety +3

    I loved the sarcasm in the beginning :D

    • @eddiejairo1459
      @eddiejairo1459 Před 3 lety

      not sure if anyone gives a damn but if you're stoned like me during the covid times then you can stream all of the new series on instaflixxer. Been binge watching with my brother recently :)

    • @willieronald7103
      @willieronald7103 Před 3 lety

      @Eddie Jairo yup, been using InstaFlixxer for since november myself :D

    • @jermainezaid1702
      @jermainezaid1702 Před 3 lety

      @Eddie Jairo yea, been watching on InstaFlixxer for months myself =)

  • @impulserr
    @impulserr Před 4 lety +3

    Tha will be 1 thing i do when my arduino arrives

  • @banglacaterer8219
    @banglacaterer8219 Před 4 lety +1

    very beautifully you described all....make another video where sensor plays a music, any speech which is stored in some hard ware like sd card adopter ...tnx. so much sir

  • @IAmRustee
    @IAmRustee Před rokem

    You're a Godsend omg. Thank you very much for your help😭

  • @sreekarbss5475
    @sreekarbss5475 Před 4 lety +1

    Good idea man

  • @yuvrajgarg3921
    @yuvrajgarg3921 Před 5 lety +4

    The question isn't related to this video.
    Is it worth paying for a Micromasters Program on edx?
    What are your thoughts?

  • @dean6046
    @dean6046 Před 5 lety

    Thanks Eli, keep up the vids. Wish you could get more views asap

  • @dietphaltan4831
    @dietphaltan4831 Před 3 lety +1

    eli how to stop its continuos beeping sound

  • @blakeset414
    @blakeset414 Před 4 měsíci

    Thank u

  • @mathemabeat009
    @mathemabeat009 Před 5 lety

    Great video :D

  • @isaiahtgp5184
    @isaiahtgp5184 Před 4 lety +1

    I need help I did everything and the project isn't working

  • @nanahunt794
    @nanahunt794 Před 2 lety

    would it be possible to make the buzzer bluetooth?

  • @felix3024
    @felix3024 Před 4 lety

    Could you please explain the math behind the distanceInch part?

  • @alonsavila6498
    @alonsavila6498 Před 4 lety

    I have a question. Sometimes the buzzer will stop for a few seconds have passed, or ir might take a few seconds to start after placing a book in front, and then it will continue the way it is supposed to. Do you know why this could be?

  • @palo_540
    @palo_540 Před 2 lety

    i tried replicating your project but the timer doesnt work. also i wonder how you established communication without stating the baud rate. interesting code. wish it wasnt faulty. i would much appreciate if you uploaded a new one

  • @gabakusa
    @gabakusa Před 5 lety

    almost 1M subs and just 1400 views?

  • @ahsanbaig8569
    @ahsanbaig8569 Před 4 lety

    Do you think the blue colored ultrasonic sensor can differentiate between slopes and walls?

  • @bourzwaze4790
    @bourzwaze4790 Před 4 lety

    Can i use a buzzer that connects to the I/O pin of the module?
    Im making an ultrasonic sensor headband for blind people for our research and im struggling

  • @komnick321
    @komnick321 Před 4 lety

    What is the shortest distance you can this method can detect?

  • @johnnyeyes7399
    @johnnyeyes7399 Před 4 lety

    Hey, Which numbers can I plug into Long, Float and Int, I'm getting error messages when I plug in numbers.

  • @MrMdellias
    @MrMdellias Před 4 lety

    is it possible that we can save like a log for an object's distance data ?

  • @FaenumVena
    @FaenumVena Před 4 lety

    how can i change the frequency and volume of the buzzer? at the moment it very loud and i would like to make it so only the dog can hear it.

  • @priyanair9431
    @priyanair9431 Před 3 lety

    Can we use an Arduino mini for this project??

  • @kennethstauffer9220
    @kennethstauffer9220 Před 5 lety

    i'm using you beep beep beep BEEP boop boop voice as my ring tone.

  • @minhthai6021
    @minhthai6021 Před 4 lety

    Can I do with Arduino Leonardo? Thanks you

  • @bobjohnson9828
    @bobjohnson9828 Před 3 lety +1

    Code wont verify

  • @flightisallright
    @flightisallright Před 5 lety +1

    False. Not all buzzers are the same. There are passive and active buzzers. Passive buzzers need a waveform to buzz. Active ones work on DC.

  • @jeganp8583
    @jeganp8583 Před 4 lety

    Only 7,741 views, CZcams is definitely tucking you away back in the corner

  • @gustaf7371
    @gustaf7371 Před 4 lety

    Does the code work also for esp32?

  • @andrewcamacho5439
    @andrewcamacho5439 Před 4 lety

    I need help, I’m new to Arduino and it keeps saying that ‘duration’ was not declared in this scope. How do I fix it

    • @elithecomputerguy
      @elithecomputerguy  Před 4 lety

      Take a look at the code here: www.elithecomputerguy.com/2019/06/hc-sr04-ultrasonic-distance-sensor-audio-alert-with-arduino/

  • @aaabbb-ec4rl
    @aaabbb-ec4rl Před 4 lety

    sia guyyy

  • @zidvn_
    @zidvn_ Před 4 lety

    Can i do this with arduino uno?

    • @elithecomputerguy
      @elithecomputerguy  Před 4 lety

      that's what I used: www.elithecomputerguy.com/2019/06/hc-sr04-ultrasonic-distance-sensor-audio-alert-with-arduino/

  • @dannny1-4-1
    @dannny1-4-1 Před 4 lety

    read this:- roboticaenconce.cl/assets/codigos/05-hardware.pdf
    shows why u have to multiply by 0.0133, as the speed of sound is 340m/sec now convert that to cms which is 0.0340cm/sec which is 0.0133inch/sec
    see rest in the link

  • @goldysingh9342
    @goldysingh9342 Před 4 lety

    #include
    SoftwareSerial mySerial(9, 10);
    int trigPin = 11; // Trigger
    int echoPin = 12; // Echo
    int data = 0;
    long duration, cm;

    void setup() {
    //Serial Port begin
    mySerial.begin(9600);
    Serial.begin (9600);
    //Define inputs and outputs
    pinMode(trigPin, OUTPUT);
    pinMode(echoPin, INPUT);
    }

    void loop() {
    // The sensor is triggered by a HIGH pulse of 10 or more microseconds.
    // Give a short LOW pulse beforehand to ensure a clean HIGH pulse:
    data = cm;

    digitalWrite(trigPin, LOW);
    delayMicroseconds(5);
    digitalWrite(trigPin, HIGH);
    delayMicroseconds(10);
    digitalWrite(trigPin, LOW);

    // Read the signal from the sensor: a HIGH pulse whose
    // duration is the time (in microseconds) from the sending
    // of the ping to the reception of its echo off of an object.
    pinMode(echoPin, INPUT);
    duration = pulseIn(echoPin, HIGH);

    // Convert the time into a distance
    cm = (duration/2) / 29.1; // Divide by 29.1 or multiply by 0.0343
    // Divide by 74 or multiply by 0.0135


    Serial.print(cm);
    Serial.print("cm");
    Serial.println();

    delay(250);
    if (data > 5) //
    {

    SendMessage();
    Serial.print("LOW FUEL LEVEL SBI");
    delay(1000);
    }
    else
    {
    Serial.print("FUEL LEVEL NORMAL");
    delay(1000);
    }
    void SendMessage()
    {
    Serial.println("I am in send");
    mySerial.println("AT+CMGF=1"); //Sets the GSM Module in Text Mode
    delay(1000); // Delay of 1000 milli seconds or 1 second
    mySerial.println("AT+CMGS=\"+918195979999\"
    "); // Replace x with mobile number
    delay(1000);
    mySerial.println("LOW FUEL LEVEL SBI PAY ATTENTION");// The SMS text you want to send
    delay(100);
    mySerial.println(data);
    mySerial.println((char)26);// ASCII code of CTRL+Z
    delay(600000);
    }
    }
    sir i am faceing problem in complieing this code please guide me sir .