DISTANCE MEASURING DEVICE WITH ULTRASONIC SENSOR AND I2C LCD DISPLAY || DIY || REAL-TIME PROJECT

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • DISTANCE MEASURING DEVICE WITH ULTRASONIC SENSOR AND I2C LCD DISPLAY || DIY || REAL-TIME PROJECT
    hey! guys, I came up with a new project distance measuring device for real-time projects.
    the components required for this project.
    Note: I have got a lot of comments regarding the code that it is not working, I have verified with different ultrasonic sensors, some of the sensors are not working properly and some sensors are working fine with accurate values. Please try with different sensors if it is not working.
    1. Ultrasonic Sensor.
    2. I2C LCD Display.
    3. Arduino UNO.
    4. USB cable.
    5. jumper wires.
    for more details about this project and source code and circuit please visit our blog at this link:
    mkinventions.b...
    **************************************************
    BACKGROUND MUSIC IS DOWNLOADED FROM BEN SOUNDS:
    www.bensound.com
    *******Thanks for watching******

Комментарии • 41

  • @MKinventionsMadhanChiruguri
    @MKinventionsMadhanChiruguri  Год назад

    Hi everyone, I have verified with different ultrasonic sensors, some of the sensors are not working properly and some sensors are working fine with accurate values. Please try with different sensors if it is not working.

  • @mochrekkhardeni75
    @mochrekkhardeni75 5 месяцев назад +3

    Those who doesn't work the code
    Take this code it work with this montage
    #include
    LiquidCrystal_I2C lcd(0x27, 16, 2); // Adresse I2C 0x27 (du LCD DIYables), 16 colonnes et 2 lignes
    int trigPin = A0; // Broche TRIG
    int echoPin = A1; // Broche ECHO
    float duration_us, distance_cm;
    void setup() {
    lcd.init(); // Initialisation de l'écran LCD
    lcd.backlight(); // Activation du rétroéclairage
    pinMode(trigPin, OUTPUT); // Configuration de la broche TRIG en mode sortie
    pinMode(echoPin, INPUT); // Configuration de la broche ECHO en mode entrée
    }
    void loop() {
    // Génère une impulsion de 10 microsecondes sur la broche TRIG
    digitalWrite(trigPin, HIGH);
    delayMicroseconds(10);
    digitalWrite(trigPin, LOW);
    // Mesure la durée de l'impulsion depuis la broche ECHO
    duration_us = pulseIn(echoPin, HIGH);
    // Calcule la distance en centimètres
    distance_cm = 0.017 * duration_us;
    // Affiche la distance sur l'écran LCD
    lcd.clear();
    lcd.setCursor(0, 0); // Début de l'affichage à la première ligne
    lcd.print("Distance: ");
    lcd.print(distance_cm);
    delay(500); // Attente de 500 ms
    }

  • @sairamjatinkolla
    @sairamjatinkolla Год назад +1

    my man, thx for the video

  • @onfire4770
    @onfire4770 Год назад

    THANK YOU SO MUCH, BRO, I HAD A PROJECT DEU TOMORROW I MADE SOME CHANGES IN THE CODE SO I WOULD SHOW MADE BY AND MY NAME

  • @kirubakaran5780
    @kirubakaran5780 Год назад

    Sir, can we read Millimeter and micrometer- it is possible?
    If, we read in micrometer scale, what is least count (Resolution) available?

  • @naanigandham6898
    @naanigandham6898 Год назад

    Upload done. But All sections of lcd displaying erotically intead of text quote.

  • @小陳-u5e
    @小陳-u5e 3 года назад

    i've downloaded the library, how to include it in Arduino?

  • @arnavsawant2657
    @arnavsawant2657 Год назад

    I cant get it to work on arduino nano

  • @muhammadasyrafroslan4239
    @muhammadasyrafroslan4239 2 года назад

    Thankyou, I can run the code. But need to do some installation libraries & some change.

  • @reematungala2972
    @reematungala2972 Год назад +1

    it does not showing any msg on lcd

    • @MKinventionsMadhanChiruguri
      @MKinventionsMadhanChiruguri  Год назад

      1. You have to calibrate your LCD with screw driver you can find back side of the LCD display then you values will display clearly.
      2. And once check the I2C address of of the LCD.

  • @aryanpanchal8970
    @aryanpanchal8970 4 года назад +2

    the code has error
    in void setup

    • @AmanKumar-gz4ih
      @AmanKumar-gz4ih Год назад +2

      just replace lcd.init() by lcd.begin()

    • @CBKCUSTOM
      @CBKCUSTOM 6 месяцев назад

      wowwww thankyouuuu ehehehehehehehhehe@@AmanKumar-gz4ih

  • @pokemon5520
    @pokemon5520 2 года назад

    Bro arduino uno price entha bro

  • @sageumesh7575
    @sageumesh7575 Год назад

    What is that extra connected with lcd screen

  • @mayursingu7828
    @mayursingu7828 6 месяцев назад +1

    bro ntg is printing on lcd

    • @MKinventionsMadhanChiruguri
      @MKinventionsMadhanChiruguri  6 месяцев назад

      Please verify your I2C address of the lcd and then replace the address with your I2C lcd address

  • @chill___brthr_
    @chill___brthr_ Год назад

    The code shows some errors while running

  • @AnimAnim-pu8oy
    @AnimAnim-pu8oy 5 месяцев назад

    Write the materials

  • @mgamerz6390
    @mgamerz6390 3 года назад

    it really didnt workkkk

  • @baala2739
    @baala2739 3 года назад

    BRO ITS NOT SHOWING THE DECIMAL PLACES. SHOWING ONLY ROUND FIG.
    PLS MODIFY THE CODE WITH DECIMAL

  • @M.Taha.
    @M.Taha. Год назад

    wrong code

  • @jamesgreen2480
    @jamesgreen2480 Год назад

    My LCD screen shows everything but the display is flickering

    • @MKinventionsMadhanChiruguri
      @MKinventionsMadhanChiruguri  Год назад

      2 scenarios
      1.pleas check the connections if you haven't connected properly the lcd display flickers.
      2. If the battery voltage is low then some times it will flickers or some times it will not display.

    • @deomons
      @deomons Месяц назад

      remove lcd clear in void loop

  • @mgamerz6390
    @mgamerz6390 3 года назад

    unsubscribedd

  • @sedoglefford5082
    @sedoglefford5082 3 года назад +1

    code error dont trust this channel unsubscribe! waste of time!!!

    • @MKinventionsMadhanChiruguri
      @MKinventionsMadhanChiruguri  3 года назад

      Please check the code once again I will providing link please make sure if you not include the library It will show error.
      mkinventions.blogspot.com/2020/07/distance-measuring-device-with.html?m=1

    • @mgamerz6390
      @mgamerz6390 3 года назад

      ok i will unsubscribe

  • @Meatglazer
    @Meatglazer Год назад

    fake😡

    • @MKinventionsMadhanChiruguri
      @MKinventionsMadhanChiruguri  Год назад

      How you are saying this is fake. I have verified with different ultrasonic sensors, some of the sensors are not working properly and some sensors are working fine with accurate values. Please try with different sensors if it is not working.

  • @mgamerz6390
    @mgamerz6390 3 года назад

    fakeeee