Display distance from Ultrasonic sensor as bargraph on LCD1602 LCD2004 using Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 มิ.ย. 2024
  • Learn how to display easily measured distance from HC-SR04 as bargraph on LCd1602 and LCD2004 display
    Required videos (must watch and install library):
    1-Using Ultrasonic sensor • HC-SR04 Ultrasonic obs...
    2-Using LCD with Arduino: • How to use LCD LCD160...
    The best thank you for me is to not to skip ads and Subscribe 🔔 to my channel, like 👍 the video It is greatly appreciated. 🔔 😊.
    I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe and enable the bell 🔔.😊
    Download library and code for LCD Bargraph: robojax.com/L/?id=56
    ***** Purchase Authentic Arduino Uno from ***
    Amazon USA: amzn.to/2KApAwK
    Amazon Canada: amzn.to/37LZ8sW
    ******Purchase this LCD1602 I2C from:*****
    Amazon USA: amzn.to/3rBaFTw
    Amazon Europe (all countries): amzn.to/38ryLsk
    Amazon Canada: amzn.to/2N3B8tM
    Banggood: www.banggood.com/custlink/GKD...
    AliExpress: s.click.aliexpress.com/e/_AnNea4
    ***Purchase Ultrasonic sensor **
    From Amazon Canada: amzn.to/3ndCWMT
    from Amazon USA: amzn.to/3pPvM3a
    Jump to different chapters of video:
    00:00 Start
    00:21 Introduction
    01:24 Wiring Explained
    03:08 Code explained
    11:25 Demonstration
    Tutorial by Ahmad Shamshiri form Canada
    ****************************
    Arduino Step by Step Course (over 150 lectures) Starts here • Lesson 00 What is Ardu...
    ****************************
    If you found this tutorial helpful, please support me so I can continue creating contents like this. Here is PayPal link paypal.me/robojaxTV
    Follow me on Facebook robojaxTV
    Follow me on Twitter: / robojaxtv
    Follow me on Instagram: / robojax
    Tutorial by Robojax.com
    Get other projects code and learn Arduino
    robojax.com/learn/arduino
    *** AFFILIATE PROGRAM ***
    We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.
    #robojax #robojax_bargraph #robojaxArduinoCourse
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Another perfect, clear and detailed tutorial. These videos really are in the upper echelon of Arduino tutorials thank you for the time taken and depth of your videos. Liked and subbed. :)

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

      Many thanks!

  • @rwl7532
    @rwl7532 5 ปีที่แล้ว +1

    Nice reminder that UNO R3 has extra SDA/SCL. Side note: I standardize what colors I use. SDA is always Yellow, SCL is always Orange. Ground Green, Power Red. RX Blue TX White. Helps when looking at wires the next day. This subscriber likes your vids.

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

      Thank you.

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

    You make the best videos and thanks for the hard work you put in them

    • @robojax
      @robojax  4 ปีที่แล้ว

      You are welcome.

  • @abeditani8293
    @abeditani8293 5 ปีที่แล้ว

    your the best. you make it easy . the code is upper video and the real test work in down the video

    • @robojax
      @robojax  5 ปีที่แล้ว

      Thank you. I am glad you find it useful.

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

    Thanks for the great video

  • @riccardomonari1407
    @riccardomonari1407 4 ปีที่แล้ว +1

    Thank you so much for your video!

    • @robojax
      @robojax  4 ปีที่แล้ว +1

      You are welcome. Thank you for not skipping the ads and keep watching them. This will help me a lot.

    • @finnleymicah1040
      @finnleymicah1040 3 ปีที่แล้ว

      i realize Im kinda off topic but do anyone know a good site to stream newly released movies online?

    • @jacobchristopher5502
      @jacobchristopher5502 3 ปีที่แล้ว

      @Finnley Micah I would suggest FlixZone. You can find it by googling =)

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

    niceexplanation

  • @kusumainc2349
    @kusumainc2349 4 ปีที่แล้ว +1

    Nice video and explanation, how we can reverse the bar graph movement? I mean when the object is near, the bar graph is rises thanks

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

      Thank you. to shown the values in revers, just above this line rjx.clearLine(1); we need to change the distance value for example if you are using the "cm" value then add this line using map function which I have explained in many videos of mine
      distanceCM = map(distanceCM, 0, MAX_DISTANCE, MAX_DISTANCE, 0);
      now the distance when it is at MAX, will be converted to 0 (zero) and then zero, converted to MAX value. I have not tested it but it should work.
      Here is map function if you need to see it www.arduino.cc/reference/en/language/functions/math/map/

  • @604smit
    @604smit 5 ปีที่แล้ว +1

    very well explained, thank again, do you think it will also work with VL53L0X time of flight laser module or is there conflict in adress?

    • @robojax
      @robojax  5 ปีที่แล้ว +1

      You are welcome. The video on VL53L0X is coming soon. I would have to see.

    • @604smit
      @604smit 5 ปีที่แล้ว +2

      @@robojax that would be very nice to see that in a code ; they are very small, have a reasonable distance measure,I2C bus and could possible also be used for avoiding objects.
      Really like your channel!

    • @robojax
      @robojax  5 ปีที่แล้ว +1

      Thank you very much Leo.
      I have written the code and tested and it is ready to be recorded. In a few days I will post record and post it.
      for avoiding objects, that needs multiple projects into one and I have it on my list but don't know when it will be realized. I am very busy with family life and full time job.

    • @604smit
      @604smit 5 ปีที่แล้ว

      @@robojax thanks again, but there is no hurry ! Just take your time and we'll see what you heve produced, it is allways interesting for Arduino fans!

  • @yassinahmedmohamednoureldi8038
    @yassinahmedmohamednoureldi8038 4 หลายเดือนก่อน +1

    can anybody please send the link to all the libraries included in this video i only have robojaxlcdbargraph.h which was in the description as zip file please someone help

  • @shaheryarsiddiqui3352
    @shaheryarsiddiqui3352 3 ปีที่แล้ว +1

    Hello Sir can you tell me how to reverse the order of it.
    Like if we have max distance then bar graph is at 0 or 1st column and if we have min distance then full graph is showing ?

    • @robojax
      @robojax  3 ปีที่แล้ว

      it needs some work to make it like that. I tried to do it, it needed longer time so I gave up. May be some one can make it for both direction.

  • @abeditani8293
    @abeditani8293 5 ปีที่แล้ว

    is there a way to put a 2 relay that when it comes to zero distance the 1rst relay turn on and when it goes to max distance the second relay turn on?

    • @robojax
      @robojax  5 ปีที่แล้ว

      Watch this video to see how to control 2 channel relay th-cam.com/video/EclIomn_3dI/w-d-xo.html then yes it is very simple if (distance >20cm){ digitalWrite(8,HIGH);// turn relay 2 ON
      } else{
      digitalWrite(7,HIGH);// turn relay 1 ON
      }
      I assume "distance" is very able holding the distance in "cm" or "in" but in the ultrasonic it is different variable. watch the video.

  • @sashidharanp.m.sreeadharan9129
    @sashidharanp.m.sreeadharan9129 4 ปีที่แล้ว

    Subscribed.

    • @robojax
      @robojax  4 ปีที่แล้ว +1

      Thank you.

  • @erboy5546
    @erboy5546 5 ปีที่แล้ว

    Hello.
    Very good channel. I have been monitoring your channel for some time and I must say that you are doing a very good job. And I also have one question. This bargraph is horizontal, but it is possible to create a similar library for vertical bargraph. Thank you for everything and I wish you success in your work.

    • @robojax
      @robojax  5 ปีที่แล้ว

      You are welcome. I appreciate spreading the word about my channel. This LCD is horizontal. Vertically you will have two character. So simply rotate it and it is done. Isn't it?

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

    Thank you so much.

  • @trmusa3434
    @trmusa3434 5 ปีที่แล้ว

    Good

    • @robojax
      @robojax  5 ปีที่แล้ว

      Good to hear good.

  • @wesameed824
    @wesameed824 5 ปีที่แล้ว +1

    Can we do this project with lcd without i2c I mean connect all the wires of lcd

    • @robojax
      @robojax  5 ปีที่แล้ว +1

      Sorry no. the library is made for LCD with I2C. the LCD without I2c is very missy. If you have choice, please avoid it.

  • @rossiachatamerlin6903
    @rossiachatamerlin6903 3 ปีที่แล้ว

    Hi, thank you for your video, when i want to download library from description it says site was not found

    • @robojax
      @robojax  3 ปีที่แล้ว

      Hi, Recently Chrome has added some feature that makes it behave like that. please use firefox or microsoft edge. it will work fine.

    • @rossiachatamerlin6903
      @rossiachatamerlin6903 3 ปีที่แล้ว

      @@robojax I tested with microsoft edge and firefox and it still doesn't work, Could you check the link please

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

      @@rossiachatamerlin6903 I don’t think he did

  • @vcontroller8051
    @vcontroller8051 4 ปีที่แล้ว

    Error compiling for board Arduino UNO.how to fix it??? After installing libraries mentioned in your robojax page ....

    • @robojax
      @robojax  4 ปีที่แล้ว

      please provide the error. It seems you have skipped the video. Please follow the instruction . This will not work for you without watching 2 videos. 1-Video for LCD and installing library 2-Watching ultrasonic sensor and then 3- You have to download the library for bargraph. So proceed and I can assure you it will work. Thank you for not skipping the ads and keep watching them. This will help me a lot and good luck.

  • @vcontroller8051
    @vcontroller8051 4 ปีที่แล้ว

    Sir I am using 20x4 LCD display .and I want to show two bargraphs on same LCD display with two ultrasonic sensors data output....How to do this ???please help me on this..

    • @robojax
      @robojax  4 ปีที่แล้ว

      I have explained every line how it works and if you watch it carefully you will know to make 2 or more bargraph. Watch it 2, 3 or 4 times until you understand it.

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

    Hi, I'm interested in your project but it gives me an error on line 71 ( rjx.clearLine(1);// clear line 1 to display fresh voltage value ) it says " 'rjx' was not declared in this scope" how can I fix it ? Thank you.

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

      Install the library

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

      @@robojax
      Ok, I installed the libraries but the error remains! Could it be that the libraries are not the right ones can you send me the links of all the libraries to install? Thank you.

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

      @@robojax can you send me the particular rjx.clear error library please ?

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

      ​@@raffaelebarlotti9017‏‪6:06‬‏

  • @rtcbuilderdjl9702
    @rtcbuilderdjl9702 4 ปีที่แล้ว

    what does (no matching function for call to 'LiquidCrystal_I2C::begin()'
    mean

    • @robojax
      @robojax  4 ปีที่แล้ว

      it means you've skipped the video and did not follow the instruction. Please watch it without skipping. You have not installed the library. This video requires you to watch two other video before continuing with this.

    • @ismaii5186
      @ismaii5186 4 ปีที่แล้ว

      @@robojax Hi, im getting this same error even though I have added the liquid crystal library? what shall I do! please help

    • @rogeriocosta2493
      @rogeriocosta2493 3 ปีที่แล้ว

      change to lcd.begin(16,2);

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

    Hello, I have uploaded your programs , but due to the draw value not Bing red there was a problem. Can you send the library?

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

      The library is available via the link. Just download and install it. I hope followed the instruction. It won’t work if you skip

  • @aminbakhtiary9021
    @aminbakhtiary9021 3 ปีที่แล้ว

    I can't get the baragraph library from your Website, I get a ERROR and the orginal one doesn't work.

    • @robojax
      @robojax  3 ปีที่แล้ว

      Thank you for letting me know. In order to organize files, the renaming cause it not be found. I just fixed it.

  • @ismaii5186
    @ismaii5186 4 ปีที่แล้ว

    Can you please help me this is very important! It would be much appreciated to know why I have the error of 'LiquidCrystal_I2C::begin()' even though I have inserted both of the zip files. Why is this?

    • @robojax
      @robojax  4 ปีที่แล้ว

      what error? please post the error from Arduino here.

    • @ismaii5186
      @ismaii5186 4 ปีที่แล้ว

      @@robojax im so sorry to attack you comments section but iv managed to sort it! Thanks anyways!

    • @rogeriocosta2493
      @rogeriocosta2493 3 ปีที่แล้ว

      change to lcd.begin(16,2);

  • @user-vy4qg3xj9d
    @user-vy4qg3xj9d 3 ปีที่แล้ว

    May I know how to make this? I mean which wire connect to which wire

    • @robojax
      @robojax  3 ปีที่แล้ว

      Jump to different chapters of video:
      00:00 Start
      00:21 Introduction
      01:24 Wiring Explained

  • @yuben6727
    @yuben6727 3 ปีที่แล้ว

    @robojax how much cost u for this project?
    I want to do like this

    • @robojax
      @robojax  3 ปีที่แล้ว

      Hello, the link to the LCD and sensor is in the description.

    • @yuben6727
      @yuben6727 3 ปีที่แล้ว

      @@robojax thanks 👍🏼

  • @UFUNUOCHANNEL
    @UFUNUOCHANNEL 4 ปีที่แล้ว +1

    hellow sir it gives me "NewPing.h: No such file or directory" when compiling the codes can you help me?

    • @robojax
      @robojax  4 ปีที่แล้ว +1

      it means that you don''t have the library. You should watch the main Ultrasonic video and get the library. The link is in the description.

    • @UFUNUOCHANNEL
      @UFUNUOCHANNEL 4 ปีที่แล้ว

      @@robojax thanks 🙏 much

    • @robojax
      @robojax  4 ปีที่แล้ว

      You are welcome.

  • @miadudasova5430
    @miadudasova5430 3 ปีที่แล้ว +1

    When i want to open code from description it says site was not found

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

      Thank you for letting me know. I just fixed it and it should work now.

  • @flavioc.422
    @flavioc.422 2 ปีที่แล้ว

    hello, I can't find the BarGraphUltrasonic file in the LcdBarGraph
    There is only Analogread and MoreGraphs

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

      If course it is not there. It is in the page you gotta copy and paste it.

    • @flavioc.422
      @flavioc.422 2 ปีที่แล้ว

      @@robojax thanks

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

      Where did you get it From

  • @aminbakhtiary9021
    @aminbakhtiary9021 3 ปีที่แล้ว

    I get this ERROR with the original library: no matching function for call to 'LcdBarGraph::LcdBarGraph(LiquidCrystal_I2C*, int, int, int)'

    • @robojax
      @robojax  3 ปีที่แล้ว

      install library.

  • @mfoe6552
    @mfoe6552 3 ปีที่แล้ว

    hi! I am still getting the error of rjx was not declared in this scope and I have watched all the videos but could'nt find a solution to it!! Please help!!

    • @robojax
      @robojax  3 ปีที่แล้ว

      Hi, it means you did not watch the video fully. I have said it.

    • @mfoe6552
      @mfoe6552 3 ปีที่แล้ว +1

      @@robojax i think ur code has been changed because rjx was not declared and another term was declared which is 1bg and with this my problem was solved

  • @ramilabbas7219
    @ramilabbas7219 3 ปีที่แล้ว

    Can u pls tell why I do not have robojax-ultrasonic example?

    • @robojax
      @robojax  3 ปีที่แล้ว

      Hi, I have explained it in the video. Exactly the question you are asking . please watch and I can assure you, you will get the answer.

    • @ramilabbas7219
      @ramilabbas7219 3 ปีที่แล้ว

      Robojax I have downloaded the library and it shows all examples except the ultrasonic one

    • @robojax
      @robojax  3 ปีที่แล้ว

      the code is on the page where you download the library. on this page robojax.com/learn/arduino/?vid=robojax-LCD-bargraph-Ultrasonic

    • @ramilabbas7219
      @ramilabbas7219 3 ปีที่แล้ว +1

      Robojax there is no problem with the code. The problem is with the library. It does not contain the example of ultrasonic sensor. It only has example of more bar graph. The ultrasonic example was not available so I used the more bar graph example but it had an error of there is nothing as “new ping.h”

  • @ismaii5186
    @ismaii5186 4 ปีที่แล้ว

    Hi, I have added the LCD bar graph robojax file in the Arduino software but when I go onto examples it don't have the ultrasonic section there! Why is this? Can someone please help! URGENT

    • @robojax
      @robojax  4 ปีที่แล้ว +1

      Hi, you have not added then. i just watch the video making sure I have explained it and indeed I did. So you must have skipped the video. Please watch again. you need to download two libraries.

    • @ismaii5186
      @ismaii5186 4 ปีที่แล้ว

      @@robojax I downloaded both the library's, and inserted them as a zip file however The only examples that the robotjax file shows is: the bar graph and i2c scanner!! Im sorry for the annoyance, but please help me

    • @ismaii5186
      @ismaii5186 4 ปีที่แล้ว

      Even when I look into the zip folder that I have downloaded, there are only two examples in them! please help.

  • @jamesscannerdigaum1365
    @jamesscannerdigaum1365 4 ปีที่แล้ว

    I have problems related to rjx.. its says 'rjx' was not declared in this scope

    • @jamesscannerdigaum1365
      @jamesscannerdigaum1365 4 ปีที่แล้ว

      I already downloaded the two library but still got the error

    • @robojax
      @robojax  4 ปีที่แล้ว

      I have mentioned in the video that you need to watch 2 videos before coming to this 1-Watch the ultrasonic sensor video and make sure it works 2-Watch LCD1602 video make sure you can see a simple text on the screen then come to this video. The link for those videos are in the page as the the code. Good luck

    • @m.m.amusni9899
      @m.m.amusni9899 4 ปีที่แล้ว +1

      @@robojax If somebody ask a question you should answer it. Rather than saying go and watch my other videos.

    • @m.m.amusni9899
      @m.m.amusni9899 4 ปีที่แล้ว +3

      he purposely made the variable different in the code. Cheap work for getting views. Change LcdBarGraphRobojax lbg(&lcd, 16, 0, 0); into LcdBarGraphRobojax rjx(&lcd, 16, 0, 0);

    • @shaheryarsiddiqui3352
      @shaheryarsiddiqui3352 3 ปีที่แล้ว

      @@m.m.amusni9899
      Thanks bro

  • @starrr42
    @starrr42 3 ปีที่แล้ว

    Why does mine say rjx was not declared, I downloaded all the needed libraries

    • @robojax
      @robojax  3 ปีที่แล้ว

      watch 2 videos 1-Introdution to LCD, 2-introduction to ultrasonic sensor. the link is in the description. then use this library. so you need LCd160-2 library and barograph library. My videos are different, I never leave details. you must watch it without skipping. Today I was in good mode and replied. usually when people ask question about something that has already been answered in the video I say only "please watch without skipping".

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

    It says
    Error: Request installZip failed with message: 13 INTERNAL: Library install failed: archive is not valid: multiple files found in zip file top level
    how do I fix?

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

      download it gain. something is not right.

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

    Everything is working fine for 10 min and suddenly my ultrasonic sensor stopped updating lcd display and it kept saying 0 cm I thought it was a hardware failure so I brought a new sensor and still not fixed but after sometime I it got updated and stopped updating do you have any idea what is happening ?

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

      It is the wiring. Or check is there is serial.print which print in serial monitor, comment them all like this // so they don’t print.

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

      I don't understand I paused every single moment of your video and checked everything that you have is there in my code or not and it's all correct and still I get the error

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

      @Robojax See the upper reply

  • @shinypotato7204
    @shinypotato7204 4 ปีที่แล้ว

    error: 'rjx' was not declared in this scope
    what should i do sir?:(

    • @robojax
      @robojax  4 ปีที่แล้ว

      you should install the library. Follow the instruction. Watch it again without skipping.

    • @Gamestorm-rk5vv
      @Gamestorm-rk5vv 3 ปีที่แล้ว

      What did you do for it?

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

    can i use arduino nano?

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

      Yes you can. Just make sure you supply 5V to the modules

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

      @@robojax can u make another video using flowrate sensor?

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

    can someone send the Lcdbar graph - ultrasonic example

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

      @Robojax please send it fast please

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

      @Robojax

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

      didn't you look at the link in description below the video? it is always there or just go to robojax.com and get it.

  • @DexBerry
    @DexBerry 4 ปีที่แล้ว

    i did everything in the video. but im getting rjx was not declared in this scope message
    help please

    • @robojax
      @robojax  4 ปีที่แล้ว

      Hi, you've skipped the video. Please watch again and I can assure it will work.

    • @DexBerry
      @DexBerry 4 ปีที่แล้ว

      @@robojax this video

    • @DexBerry
      @DexBerry 4 ปีที่แล้ว

      @@robojax can you list all of the libraries?

    • @robojax
      @robojax  4 ปีที่แล้ว

      yes. I have said very important things. This video needs you to watch two more videos.

    • @robojax
      @robojax  4 ปีที่แล้ว

      again it shown you did not watch the video. do I have to type everything that I said in the video? here is what I said "you can get the code for this by clicking on the link in the description which will take you to Robojax.com slash learn slash arduino" I just check the description of this video and indeed it is listed like this "Download library and code for LC:......"

  •  4 ปีที่แล้ว +1

    lcd.begin wont work for 0x27

    • @robojax
      @robojax  4 ปีที่แล้ว

      I have explained that you have to watch the main video where I have explained everything. Watch it here th-cam.com/video/q9YC_GVHy5A/w-d-xo.html

  • @aravindeswar4089
    @aravindeswar4089 3 ปีที่แล้ว

    Can we do this without i2c ?

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      yes you can if you re-write the code.

    • @aravindeswar4089
      @aravindeswar4089 3 ปีที่แล้ว

      @@robojax thanks for the reply I’m not programmer please can you give me some hints?

    • @robojax
      @robojax  3 ปีที่แล้ว

      You need to know programming

    • @aravindeswar4089
      @aravindeswar4089 3 ปีที่แล้ว

      @@robojax 🙏

    • @aravindeswar4089
      @aravindeswar4089 3 ปีที่แล้ว

      @@robojax somehow I’ve done it but can you please tell me the opposite code for
      rjx.drawValue( distanceCM, MAX_DISTANCE);
      this line , because for water tank level we need to subtract distance between sensor to water surface from total tank depth to find water level. Thanks in advance..

  • @chandanapeiris6978
    @chandanapeiris6978 3 ปีที่แล้ว

    LiquidCrystal_I2C lcd(0x3f,lcdNumCols,lcdLine); - IS WRONG
    LiquidCrystal_I2C lcd(0x27,lcdNumCols,lcdLine); - IS CORRECT. Use 27 instead of 3f. Thanks. Chandana

    • @robojax
      @robojax  3 ปีที่แล้ว

      Every device has different I2C address. Thanks. Please subscribe. It is appreciated.

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

    can you please share the circuit

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

      what do you mean the circuit? if you mean the wiring diagram, I have explained it fully. But I hope you have watched the video where I explained that 1-Watch introduction to Ultrasonic sensor th-cam.com/video/CpCLa60WNXY/w-d-xo.html and make sure you can read the distance on serial monitor. 2-Watch introduction to LCD Display th-cam.com/video/pxUjEsJQW2M/w-d-xo.html and then come this. you don't need anything except the code

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

      @@robojax Thanks :-)

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

    mine says rjx was not declared in this scope

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

      Yes. Because you did not follow the instructions.

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

      Did you watch again and resolved the issue?

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

      do it (16,2)

  • @toxicscope8703
    @toxicscope8703 3 ปีที่แล้ว

    it doesn't work it says exit status 1
    LiquidCrystal_I2C.h: No such file or directory plzz respond

    • @robojax
      @robojax  3 ปีที่แล้ว

      It has worked for 1000s of people. it says you did not watch the video fully and skipped. Please watch carefully and I can assure you it will work.

    • @aniketroy1745
      @aniketroy1745 3 ปีที่แล้ว

      @@robojax Sir, tried many times it doesn't worked

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

    when i upload the zip file it says:
    ERROR 13 : Library install failed : multiple files found in zip file top level

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

      someone help pls fast

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

      You just said it. “Multiple “ so remove the extra libraries. Search my channel for the keyword library

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

      Thanks a lot I’m going to subscribe I’ve never seen a TH-camr doing such effort to his fans

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

      i removed all the extra libraries i have so please help me tell me what to do exactly@@robojax

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

      It is still saying the same error

  • @akilawedagedara4431
    @akilawedagedara4431 5 ปีที่แล้ว

    can't create custom characters on your programme

    • @robojax
      @robojax  5 ปีที่แล้ว

      This video requires you to watch the main video for the LCD. Watch that and it should work.

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

    why do i get like this "Invalid library found in D:\arudino
    eal\Arduino\libraries
    obojax-HC-SR04-ultrasonic-Library: no headers files (.h) found in D:\arudino
    eal\Arduino\libraries
    obojax-HC-SR04-ultrasonic-Library
    "

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

      That it not error. It is a warming. Ignore it

  • @daanenmudalli8130
    @daanenmudalli8130 4 ปีที่แล้ว

    help me i cant find the diagram

    • @robojax
      @robojax  4 ปีที่แล้ว

      the wiring diagram is available for all my videos as part of my Arduino course at Udemy.com robojax.com/L/?id=153

  • @aayushsen2589
    @aayushsen2589 4 ปีที่แล้ว

    Connection or script are Correct but doesn't work on uno

    • @robojax
      @robojax  4 ปีที่แล้ว

      I mentioned in the video that 1) you have to watch and test the LCD without anything else and make sure you can display a text on the screen. 2)you have to watch and test ultrasonic sensor making sure it work. (I don't know whey I am repeating the same thing that I have said in video, typing it here.) Please watch the video again and do not skip.

  • @nationalmarketing3082
    @nationalmarketing3082 5 ปีที่แล้ว

    Sir what is your name.

    • @robojax
      @robojax  5 ปีที่แล้ว +1

      in all my codes you will find name. Ahmad from Canada

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

    someone help please fast

  • @ajcatindig8445
    @ajcatindig8445 3 ปีที่แล้ว

    Can you give the wiring diagram for free??

    • @robojax
      @robojax  3 ปีที่แล้ว

      I have explained it fully and have shown how to do the wiring. It sees you need to school project or something so get this Free software fritzing.org/ and draw it. it has all the components you need . Very easy.

  • @kirubatamilselvan9602
    @kirubatamilselvan9602 4 ปีที่แล้ว +1

    It is not worked

    • @robojax
      @robojax  4 ปีที่แล้ว

      you have to provide error. perhaps you escaped the video and have not installed the library for "bragraph". Please follow step by step and I will work. Good luck.

  • @syedyahyaali4055
    @syedyahyaali4055 3 ปีที่แล้ว

    this is what it says:
    Arduino: 1.8.12 (Windows 10), Board: "Arduino Uno"
    C:\Users\Yahya Ali\AppData\Local\Temp\Temp1_024-Using-Ultrasonic-Distance-HC-SR04-with-LCD-Display.zip\024-Using-Ultrasonic-Distance-HC-SR04-with-LCD-Display\024-Using-Ultrasonic-Distance-HC-SR04-with-LCD-Display.ino: In function 'void setup()':
    024-Using-Ultrasonic-Distance-HC-SR04-with-LCD-Display:55:13: error: no matching function for call to 'LiquidCrystal_I2C::begin()'
    lcd.begin();
    ^
    In file included from C:\Users\Yahya Ali\AppData\Local\Temp\Temp1_024-Using-Ultrasonic-Distance-HC-SR04-with-LCD-Display.zip\024-Using-Ultrasonic-Distance-HC-SR04-with-LCD-Display\024-Using-Ultrasonic-Distance-HC-SR04-with-LCD-Display.ino:30:0:
    C:\Users\Yahya Ali\Documents\Arduino\libraries\LiquidCrystal_I2C-1.1.2/LiquidCrystal_I2C.h:58:8: note: candidate: void LiquidCrystal_I2C::begin(uint8_t, uint8_t, uint8_t)
    void begin(uint8_t cols, uint8_t rows, uint8_t charsize = LCD_5x8DOTS );
    ^~~~~
    C:\Users\Yahya Ali\Documents\Arduino\libraries\LiquidCrystal_I2C-1.1.2/LiquidCrystal_I2C.h:58:8: note: candidate expects 3 arguments, 0 provided
    C:\Users\Yahya Ali\AppData\Local\Temp\Temp1_024-Using-Ultrasonic-Distance-HC-SR04-with-LCD-Display.zip\024-Using-Ultrasonic-Distance-HC-SR04-with-LCD-Display\024-Using-Ultrasonic-Distance-HC-SR04-with-LCD-Display.ino: In function 'void loop()':
    024-Using-Ultrasonic-Distance-HC-SR04-with-LCD-Display:71:3: error: 'rjx' was not declared in this scope
    rjx.clearLine(1);// clear line 1 to display fresh voltage value
    ^~~
    exit status 1
    no matching function for call to 'LiquidCrystal_I2C::begin()'
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

    • @robojax
      @robojax  3 ปีที่แล้ว

      so it means you skipped the video where I mentioned that you need to install library. the import of this error was: no matching function for call to 'LiquidCrystal_I2C::begin()'

    • @syedyahyaali4055
      @syedyahyaali4055 3 ปีที่แล้ว

      @@robojax no i installed the library it's still not working

    • @robojax
      @robojax  3 ปีที่แล้ว

      this project is made of 3 parts. 1-LCD only to display text. 2- Ultrasonic to measure distance and show on serial monitor. 3-Combine both LCD and ultrasonic. do each project step by step from 1 to 3. I have video for them and I believe the link is in the description. good luck

  • @kishorerajan1682
    @kishorerajan1682 3 ปีที่แล้ว

    1. Arduino: 1.8.14 Hourly Build 2021/01/29 11:33 (Windows 10), Board: "Arduino Uno"
    02:30:10: fatal error: LiquidCrystal_I2C.h: No such file or directory
    #include
    ^~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    exit status 1
    LiquidCrystal_I2C.h: No such file or directory
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    2.Arduino: 1.8.14 Hourly Build 2021/01/29 11:33 (Windows 10), Board: "Arduino Uno"
    02:31:10: fatal error: LcdBarGraphRobojax.h: No such file or directory
    #include
    ^~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    exit status 1
    LcdBarGraphRobojax.h: No such file or directory
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    please solve these two errors.

    • @robojax
      @robojax  3 ปีที่แล้ว

      you skipped the video and did not follow the instruction. I reply and any question that is not answered in the video. please watch without skipping and I can assure you, your issue will be resolved.

  • @aniketroy1745
    @aniketroy1745 3 ปีที่แล้ว

    Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"
    C:\Users\EE MDMD\Desktop\Untralsonic_distance_measure\Untralsonic_distance_measure.ino: In function 'void setup()':
    Untralsonic_distance_measure:55:13: error: no matching function for call to 'LiquidCrystal_I2C::begin()'
    lcd.begin();
    ^
    In file included from C:\Users\EE MDMD\Desktop\Untralsonic_distance_measure\Untralsonic_distance_measure.ino:30:0:
    C:\Users\EE MDMD\Documents\Arduino\libraries\LiquidCrystal_I2C/LiquidCrystal_I2C.h:58:8: note: candidate: void LiquidCrystal_I2C::begin(uint8_t, uint8_t, uint8_t)
    void begin(uint8_t cols, uint8_t rows, uint8_t charsize = LCD_5x8DOTS );
    ^~~~~
    C:\Users\EE MDMD\Documents\Arduino\libraries\LiquidCrystal_I2C/LiquidCrystal_I2C.h:58:8: note: candidate expects 3 arguments, 0 provided
    C:\Users\EE MDMD\Desktop\Untralsonic_distance_measure\Untralsonic_distance_measure.ino: In function 'void loop()':
    Untralsonic_distance_measure:71:3: error: 'rjx' was not declared in this scope
    rjx.clearLine(1);// clear line 1 to display fresh voltage value
    ^~~
    Multiple libraries were found for "LiquidCrystal_I2C.h"
    Used: C:\Users\EE MDMD\Documents\Arduino\libraries\LiquidCrystal_I2C
    Not used: C:\Users\EE MDMD\Documents\Arduino\libraries\Arduino-LiquidCrystal-I2C-library-master
    exit status 1
    no matching function for call to 'LiquidCrystal_I2C::begin()'
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

    • @aniketroy1745
      @aniketroy1745 3 ปีที่แล้ว

      What To do now

    • @robojax
      @robojax  3 ปีที่แล้ว

      just watch the video without skipping and follow instruction. I have said that you need to watch 2 more videos before coming to this and you did not follow that.

    • @aniketroy1745
      @aniketroy1745 3 ปีที่แล้ว

      @@robojax Sir I have and also watched to more videos of that and also followed the steps but I am having problem .

    • @robojax
      @robojax  3 ปีที่แล้ว

      Required videos (must watch) and install library
      1-Using Ultrasonic sensor th-cam.com/video/QI9541YQq7M/w-d-xo.html
      2-Using LCD with Arduino: th-cam.com/video/q9YC_GVHy5A/w-d-xo.html
      3-Then come to the bargraph and install library

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

    #include sir I have this arrow massage

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

      I checked the video. just follow the instruction. have you downloaded 2 files and install them? perhaps not. Please watch fully. The first one is to be able to display simple text on LCD and the second is the bargraph.