Arduino Tutorial: Ultrasonic Sensor HC SR04 distance meter with a Nokia 5110 LCD display

Поделиться
HTML-код
  • Опубликовано: 29 дек 2024

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

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

    Nik. Thank you so much for all these videos. They are really helpful and they work brilliantly.

  • @minermortal1997
    @minermortal1997 9 лет назад

    I'm freaking out I was thinking of how you could build one of the robots from fallout and had the idea to use an ultrasound sensor then you upload a video that does exactly that !!!

  • @1121klaatu
    @1121klaatu 8 лет назад

    Our need is for a remote sensor to measure the depth of an earth auger drill which is typically in the 40' to 50' range. Is ultrasonic viable at this distance. There are very few commercially available devices available for the drilling industry.

  • @dezinecoparvezilahi3713
    @dezinecoparvezilahi3713 9 лет назад

    thanks you are doing a great job i have seen your all videos all the videos are clear and detail so i like so much thanks for this projects and codes because without the codes we cannot do any things

  • @eltkarry
    @eltkarry 9 лет назад

    Good tutorial ☺, and the tutorial of the robot car? Good channel

    • @Educ8s
      @Educ8s  9 лет назад

      Tony Carrizales The robot car tutorial is coming soon!

  • @RadoManCZ
    @RadoManCZ 5 лет назад

    Good video educ! Please is possible control by distance metter dimable LED light strip (3meters 100% brightnes to 1 meters 1% brigthenss)?

  • @كيفالكترونيات
    @كيفالكترونيات 4 года назад

    If you need a need, help me in the project to turn on and off the water pump automatically on the Nokia 5110 screen, showing the amount of water remaining and the water pump through the Ultra Sonic sensor.

  • @girdapgumus1359
    @girdapgumus1359 7 лет назад

    Hi, what is the splash file? because i add only ui.c and its error
    ui.c:3: error: conflicting declaration 'const unsigned char ui []'
    const unsigned char ui [] PROGMEM = {
    ^
    C:\Users\oem\Documents\Arduino
    okiawithsensor
    okiawithsensor.ino:9:16: note: previous declaration as 'uint8_t ui []'
    extern uint8_t ui[];

  • @manikandann8208
    @manikandann8208 8 лет назад

    Can we obtain a sonograph ,like the one used in diagnostics using this sensor??

  • @JustSomeGuyWithaFaceMask
    @JustSomeGuyWithaFaceMask 8 лет назад

    Nice Tutorial, btw I have a question. Lets say, i plan to measure a depth of a Well, can the color of the water affect the measurement? or can the turbidity of the water affect the ultrasonic wave? I plan to use a JSN-B02 waterproof ultrasonic sensor and submerge the probe underwater.

  • @namocrafts1101
    @namocrafts1101 7 лет назад

    Hello sir. ThAnk u for sharing ur knowledge with us again
    I did the project successfully but am facing one problem some time the sensor fluctuate I don’t know why is that happening I would appreciate ur answer

  • @DiyintheGhetto
    @DiyintheGhetto 8 лет назад

    I'm wondering how accurate is that sensor in measuring distance?

  • @kikokiki8012
    @kikokiki8012 5 лет назад

    Hi. This is a very good tutorial. it would be good to have the code for others screen like 1602, oled 0.96, ... Or both cm and inch. Or if we can have the code to mesure precisely like 239.7cm. So we can easely learn diference between the code. Just an idea. Anyway the tutorial is great easy to understand.Thnx!

  • @stickyscorner
    @stickyscorner 9 лет назад

    Great tutorial! Hade you ever tried the NewPing library. It simply consists of creating an object which takes the trigger and Echo pin as well as the maximum distance as parameters and then it's just a matter of calling the ping function, or if you want it in centimetres, ping_cm(). Otherwise it is a great video, you always explain very well!

  • @rahulprasade6392
    @rahulprasade6392 5 лет назад

    Sir we can do this by nodmcu esp8266 with this same program?

  • @KR0tG5fk
    @KR0tG5fk 9 лет назад

    Very educational video, thank for providing the code and library link. More presenters should follow your format. I do have one question, in the Distance_Sensor_Nokia was is the ui.c file for, could you please explain?

    • @Educ8s
      @Educ8s  9 лет назад

      Ron Henderson The ui.c draws the basic user interface of the project. It prints the lines in the screen, the word "DISTANCE" and the work "CM". The code only prints the distance digits. For more details check out the tutorial on how to load graphics on a Nokia 5110 LCD display I have prepared. Thanks!

    • @hairlesshippy
      @hairlesshippy 8 лет назад

      What tool can I use to modify the ui.c so I can change the CM to IN?

  • @alexandervandenhoogen3969
    @alexandervandenhoogen3969 8 лет назад

    can you also make it watertight and use it as a sonar unther the surface?

    • @Educ8s
      @Educ8s  8 лет назад

      +Alexander Van Den Hoogen No unfortunately you can't. But there are other sensor to do that job.

  • @dev9545
    @dev9545 8 лет назад

    sir, in my ultrasonic sensor hc-sr04 there is no crystal oscillator.
    is any disadvantage of not having 4mhz crystal oscillator in the sensor

  • @gvsh7742
    @gvsh7742 7 лет назад

    Hi sir ....
    great fan of your work ...love your tutorials.
    I have made a project of data collection in which i used ds3231 and one FRAM to store data and time when power goes off.
    I used arduino mega. Every thing working .
    Now i come to know that STM32 Blue pill is way better as it has a battery backup mode .
    Can you please tell me how to switch between battery back mode and regular mode and does SRAM remains the same when power go off and it run on battery back up .............
    Regards
    Ravi Prakash

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

    I'm building the autonomous robot and I wanted the robot to follow me like a puppy dog but not run into me. How can I do that? Can you make a video for that? Thanks.

  • @neilvermeulen5283
    @neilvermeulen5283 7 лет назад

    Thank you Nick!

    • @Educ8s
      @Educ8s  7 лет назад

      You are welcome!

  • @ahmadsulaiman5440
    @ahmadsulaiman5440 8 лет назад

    thank you for the tutorial, can you help me how to display 3 output ultrasonic sensor in 5110 nokia LCD?

  • @anjeel08
    @anjeel08 7 лет назад

    Very nice Video. (1) Instead of showing the distance in cm or otherwise, how can we rather display a .bmp image of a water tank (1000Ltr) and depending on the distance measured by HC SR04, show the Fill level graphically e.g. 10%, 20%, 30% and so one with Buzzer on for 30 Seconds when level is below 20% and buzzer on for 10 Second when 100%. Full Tank
    (2) Also can you help make a video in which the output of this can be seen on the Android Phone via a reliable but cheap trans-receiver so that we do not have to walk up to the device but monitor the level on the Android phone itself. Many thanks in advance. Cheers !!

  • @badjeable
    @badjeable 9 лет назад

    Thankyou - great tutorial

  • @alegro3000
    @alegro3000 8 лет назад

    Πως μπορούμε να έχουμε μεγαλύτερη μέγιστη απόσταση ;
    Υπάρχει τρόπος να χρησιμοποιήσουμε κάποιο λέιζερ για την απόσταση ;

  • @millenia2222
    @millenia2222 8 лет назад

    hello, i need to know how to record the files into an sd card?
    i tried but it did not work, would you like to help? thanks;)

  • @talhaaksoy2674
    @talhaaksoy2674 8 лет назад

    Hello, Can you make a data logger project for sonar ? I cant find it.

  • @pabloschonffeldt
    @pabloschonffeldt 7 лет назад

    Hi! Really god video my friend! Really like this and many more of this channel!
    I was kinda curious about this project. What should I change in order to use an oled display, besides the 1 inch oled display itself? Also to be able to measure over 999 distances (in CM). Maybe I should use a different sensor which can measure longer distances. Something between 0 and 15 meters
    Thanks :)

  • @ntworx
    @ntworx 8 лет назад

    Hi,correct me if i'm wrong but it seems the 5110 library won't work with actual IDE 1.6.12 or above.Got the following error message when compiling:C:\Users\psc\AppData\Local\Temp\ccSdueVw.ltrans0.ltrans.o: In function `main':
    C:\temp\arduino-1.6.12\portable\sketchbook\libraries\LCD5110_Graph/LCD5110_Graph.cpp:828: undefined reference to `ui'
    C:\temp\arduino-1.6.12\portable\sketchbook\libraries\LCD5110_Graph/LCD5110_Graph.cpp:828: undefined reference to `ui'
    collect2.exe: error: ld returned 1 exit status
    exit status 1
    Fehler beim Kompilieren für das Board Arduino Nano

    • @Educ8s
      @Educ8s  8 лет назад +1

      In the Arduino IDE, go to Sketch -> Add file and add the ui.c file. After this it will complile fine. I just tested it with the Arduino IDE 1.8

    • @ntworx
      @ntworx 8 лет назад

      Thanks for your support !

  • @ArisomNT
    @ArisomNT 9 лет назад

    Hello friend, how can I use this project with Arduino Nano?

    • @Educ8s
      @Educ8s  9 лет назад +1

      Arisom Nascimento Yes of course!

  • @jahanaraislam9949
    @jahanaraislam9949 7 лет назад

    Sir can I use an i2c oled display?

  • @jasonrose5583
    @jasonrose5583 7 лет назад

    Good day sir, can i have the schematic of this project? Thank you and advance sir, have a great day 😊

  • @FLOREPSINOSA
    @FLOREPSINOSA 8 лет назад

    Can you modify your code to measure millimeters?

    • @supercables251
      @supercables251 8 лет назад

      Of course, just program the Arduino to convert the measurement before displaying it

  • @airfilm_it
    @airfilm_it 7 лет назад

    what is the maximum distance?

    • @yusufcali793
      @yusufcali793 7 лет назад

      400 cm(4m) i think, i can get good values around 3-3.5 meters. That is my experience, others may have different experience.

  • @yigitozcan2145
    @yigitozcan2145 5 лет назад

    Splash.c ?

  • @ABID5
    @ABID5 7 лет назад +1

    0:18 did you say supersonic! 😂

  • @Ash-vy4dc
    @Ash-vy4dc 7 лет назад

    WHAT DO I DO WITH THE C FILE ? PLS HELP

    • @Educ8s
      @Educ8s  7 лет назад

      +Unknown just put it in the same folder with the .ino file

    • @Ash-vy4dc
      @Ash-vy4dc 7 лет назад

      Thank you!

  • @ppkus
    @ppkus 8 лет назад

    Hi, I made it! But my screen is too dark, how can i fix it?

    • @Educ8s
      @Educ8s  8 лет назад

      You can use the function setContrast to lower the contrast of the display, google it

    • @ppkus
      @ppkus 8 лет назад

      educ8s.tv I solved the problem, was something wrong with the shielding of my 5110, just a resoldering work and now it's perfect! Thank you for this great tutorial!

    • @Educ8s
      @Educ8s  8 лет назад

      Good to hear that! Cheers!

  • @mdafroz4190
    @mdafroz4190 7 лет назад

    can you hack mobile display like other key pad cellphones please