Thanks for that amazing video, is very helpful for me
@robojax3 жыл бұрын
Glad it was helpful!. Please subscribe. I appreciate it.
@AnundaChuenlerssakul7 ай бұрын
Hello Sir, Thank you for the informative video. I have a problem when I try to use A4 and A5, the data is not send to the monitor screen. Do I have to specify any pin declaration if I directly use analog pin instead of SDA and SCL pin?
@Arjun_Vasudevan2 жыл бұрын
After adding the VL53L0X library, the word Distance gets coloured for you but it doesn't for me, why is it so ?? I have the same library as you have
@robojax2 жыл бұрын
Dot worry about Color. What important is if it works. Just close Arduino IDE and open it and see.
@contrarian88703 жыл бұрын
The specs only give the max range. What's the minimum distance you can read?
@robojax3 жыл бұрын
I have updated the page where the code is robojax.com/learn/arduino/?vid=robojax-VL53L0X Datasheet does not mention the minimum distance, I have included image of page 30 of datasheet where you can see the angle between emitter and collector (two small holes) and see the distance and find out at what minimum distance the collector receives the reflection from emitter. good luck.
@ignacevandevelde27335 жыл бұрын
Hi man, it's clear and helpfull! In the begin the wiring was my problem, because I'm a fully blind person thats playing with arduino to make my own solutions to have access in my life to to things myself. I use this distance controller on my drone MJX Bugs 5W to fly independently in my own garden. CAUTION, doe not flying blind with drones before you've trained verry much times in a school or with other good trained pilots!!!! Thanks for sharing this demo and explanation here! Helpfull, go for other and many demo's here plz.!!!
@robojax5 жыл бұрын
You are welcome. good luck with your project.
@blackdessert19792 жыл бұрын
i had problem with this sensors. i need to measuring 50.25mm but this sensor show only in integer value
@robojax2 жыл бұрын
Of course you should have problem. The resolution is 2mm.
@ezrakoper4 ай бұрын
Will the new i2c address remain after turning power off and on?
@robojax4 ай бұрын
Are you planning to change the I2C address and use the module somehwere else? if not I blive it won't work. Using Arduino/Raspberry Pi, once the program starts, the address is activated and is there until you shut it down. you won't be able to use the module until you power up the board and run the program. I looked at the datasheet again and it confirms my understanding that it deos not save the address. www.st.com/resource/en%20/datasheet/vl53l0x.pdf
@ezrakoper4 ай бұрын
@@robojax thank you for the reply. I was considering using several to measure distance all around, kind of lidar. The other option is to place a single one on a motor and make it spin while keeping track of the angle in some way. So I just play with this idea in my head thinking which direction to go.
@seismocraft2 жыл бұрын
Hi , i am using this sensor in one of my projects but I can't get it to work it just shows the same number again and again.
@robojax2 жыл бұрын
Hi, you must have changed the code or the sensor is on the exact location. Use I2C scanner to check if you are getting an address for I2C scanner. Search for Robojax.com for the scanner
@HuyVo-qu7jg2 жыл бұрын
hi it's very good. but can we use measured signal to control stepper motor? For example, the sensor always keeps a distance of 70 cm from the object, if the distance changes, the sensor will detect and control the motor to operate to keep at 70cm. i want to make Z axis auto. whether it is possible. do let me know.
@robojax2 жыл бұрын
Hi Sure you can use it. Hi as the sensor to measure the distance and write your code to do anything you want. Arduino bus for that purpose
@HuyVo-qu7jg2 жыл бұрын
@@robojax can you make a video like that, I don't understand much about aruino so I can't do it. thanks.
@guillermomejiacisneros43044 жыл бұрын
Hi, could you give me an idea of what to do, i am meassuring Fuel level with TOF sensor, It works perfect when engine Is off, but when engine Is on, it emideately the TOF get off, like if the sensor were in short. The investigation show me that the spark of the spark plug Is cousing the failure. Do you have an idea of how to avoid this failure?. I already used a shielded wire with no results.
@robojax4 жыл бұрын
Hi, yes. it is the noise of DC supply. Put 100µF to 470µF with 1nF capacitor on the 5V and GND of this module. it should filter it. The noise is messing up the i2C signal.
@marusosaassi58983 жыл бұрын
Hi robojax, I want to ask you a question please. I bought an VL53L0X online and the "VCC" pin is named "VIN" instead, do you know if VCC and VIN are the same? can I still connect the VIN pin to 5V? thank you in advance for your time and for the video the pins my sensor has are "VIN, GND, SCL, SDA, GPIO1, XSHUT"
@robojax3 жыл бұрын
Vin and bcc are the same
@marusosaassi58983 жыл бұрын
@@robojax thank you so much!!!
@RonFreimann4 жыл бұрын
I wonder if this sensor works on liquids as well? Water, oils etc.
@robojax4 жыл бұрын
I have the video, a simple search revealed this kzbin.info/www/bejne/qmKXnaxtjpVspas and i checked the link was already in the description
@pekka25665 жыл бұрын
hi do u know how i can control stepper motor with this sensor... please make video for that :P clockwise and counter clockwise depend distance..
@robojax5 жыл бұрын
You can get the idea from this video kzbin.info/www/bejne/gZekn4idlrh3o6s
@NailYusupov5 жыл бұрын
Hi, thank you for your work. Please help me to fix the problem: when a distance to the object is greater than maximum value (1500 mm for my VL53L0X) it shows random incorrect values much lower than even 1000 while RangeSatus != 4, so I can't check the out of range state. Is it possible to correct this problem? And another question: is it necessarily to remove that red film from the laser chip?))
@NailYusupov5 жыл бұрын
Seems that protective film was the cause)
@joao41816 жыл бұрын
Does it read integers only? Floating numbers, right?
@robojax6 жыл бұрын
Because the resolution is in mm, yes only integer. it wont' be able to show 0.2mm.
@ilretaggio24 жыл бұрын
why you use arduino to powerup the sensor at 5V if the voltage of sensore are 3.5V Max ?
@robojax4 жыл бұрын
then it should be connected to 3.3V. I might have mistaken.
@ilretaggio24 жыл бұрын
@@robojax Sorry i have another question: with your code, my sensor (the same of the video) when start to read, print a value majeure than 50mm of the real measurement. Do you know why ?
@DzulFahmi115 жыл бұрын
i just have vl53l1x, can I apply that program and wiring to mine?
@robojax5 жыл бұрын
I am not sure if it works. You would have to download the datasheet and see the difference in registers. Registers are small memory where the values are stored.
@jimgt37165 жыл бұрын
Im not able to compile the file because im prompted "VL53L0X.h: No such file or directory" and I have already included the library
@robojax5 жыл бұрын
You did but Arduino did not find it. Click on Sketch->Include Library->Add .zip library and brows to the zip file. It should work.
@omkarlubal67995 жыл бұрын
Use this library: github.com/pololu/vl53l0x-arduino Instead of Adafruit.
@jakubstejskal68063 жыл бұрын
I can measure only between 50-140mm. Any Hint?
@robojax3 жыл бұрын
I have show the datasheet and explained the range in the video. Please watch
@miclibres25503 жыл бұрын
Hello sir can I ask if what would be the code for processing?
@robojax3 жыл бұрын
"code for processing"? didn't understand. if you want the code, the link is below the video in the description.
@miclibres25503 жыл бұрын
sorry, Its just a typo by the way thank you so much.
@afshinbabaee14114 жыл бұрын
I do the exact things that you explained in the video,but the only thing which appear in serial monitor is (-1 mm).please guide me😞
@robojax4 жыл бұрын
سلام علیکم آقای بابایی احتمالا مشکل در سیم کشی باشید. لطفا این آی تو سی سکاننر را robojax.com/learn/arduino/?vid=robojax-I2C-scanner سوار آردیوینو کنید و ببینید که آیا نشانی دریافت میکند یا خبر. Hi, Please use the I2C scanner robojax.com/learn/arduino/?vid=robojax-I2C-scanner to check if you get I2C address or not. This will tell you two thing 1) Wiring is okay, 2) if the module is functional
@afshinbabaee14114 жыл бұрын
@@robojax سلام.من آی تو سی اسکنر را اجرا کردم،متاسفانه آدرسی پیدا نکرد،سیم کشی هم بارها چک کردم.این ماژول را تازه خریدم.یعنی ایراد از ماژول است؟
@robojax Жыл бұрын
سلام علیکم. مجرا (کانال) فارسی علم و فن را راه اندازی کردم: لطفا به دوستان تان خبردهید و حمایتم کنید. www.youtube.com/@ilmofan
@EstebanRM714 жыл бұрын
Any chance to have some code for raspberry pi?
@robojax4 жыл бұрын
I am sure there is one, but I don't have it.
@gregorzajec6 жыл бұрын
Hello Your example is not correct. You are using Polulu library and its example not Adafruit library.Please explaine again ?
@robojax6 жыл бұрын
Hi, The important part is to show the distance which it does.
@gregorzajec6 жыл бұрын
Robojax The most important part is to make usefull tutorial with right links for code and used libraries.It is not to hard todo this,othervise could beginner or more expireenced user stuck with tkis mistakes.I had this problem too,so we expect your improvment with corect links !
@robojax6 жыл бұрын
Sorry I did not understand. Is the link incorrect or the explanation (of the link) incorrect?
@omkarlubal67995 жыл бұрын
@@robojax You have used Pololu library, but your link provides address of Adafruit library, that's why many people are getting "VL53L0X.h: No such file or directory" error. Your video is great just make this change.
@mamber11005 жыл бұрын
Good to look at code before publication. This code is not to this library
@robojax5 жыл бұрын
Thank you for letting me know. I updated the code page with the correct library.
@mamber11005 жыл бұрын
Library is from adafruit, but code is from Polulu
@MischievousMischief5 жыл бұрын
Thank you! It seems to have difficulties to recognise the D12 on the Arduino Micro (it's written ~12 on it) even tho there is no error message. The distance measurement only shows -1. I tried to change the pinMode(12,INPUT_PULLUP); , digitalWrite(12,HIGH); to another pin but it didn't work. The code seems to works on the Arduino Nano and a Arduino Nano Copy both with D12. Could you help me?
@robojax5 жыл бұрын
Please use I2C scanner to see if you are getting the address robojax.com/learn/arduino/?vid=robojax-I2C-scanner
@MischievousMischief5 жыл бұрын
@@robojax Thx! Another question: I've already attached the MMA8451 Accelerometer to pin A4 and A5. Is there a possibility to change the pins for this sensor to other ones? Like A2 and A3?
@hemantjain94264 жыл бұрын
Can u please tell me the difference between the sensor u used in this video and the one u used previously(at kzbin.info/www/bejne/Znjbd6KnlN-DqpY), for the same purpose i.e. to measure the distance? I found some difference between the proces of these sensors.
@robojax4 жыл бұрын
They both are the same sensor (chip). Just the module has different color or number of pings. I made different videos to make viewer comfortable knowing the module ibn video is exactly the same .
@hemantjain87774 жыл бұрын
@@robojax thank you very much, and great work👌👌✌️
@robojax4 жыл бұрын
You are welcome.
@Gassy13 жыл бұрын
ABİ BİZE GÖDNERSENE YA XD
@robojax3 жыл бұрын
Üzgünüm anlamadım. Google'ın çevirebilmesi için lütfen tam cümleler kullanın. selam
@Mohammed-bd7ql3 жыл бұрын
Voice too low
@robojax3 жыл бұрын
I just check it and is it very clear and laud enough to be heard. Perhaps your device volume is set to low. Try again.
@Mohammed-bd7ql3 жыл бұрын
@@robojax Wow what a quick reply even after 2 years!! You deserve more recognition. And thanks, yes it was indeed from my PC.
@robojax3 жыл бұрын
you are welcome. I am very active. check my latest videos.
@nosbig64624 жыл бұрын
Where can i get the sensor? Can i please have a link?
@robojax4 жыл бұрын
I have just added the link in the description.
@nosbig64624 жыл бұрын
@@robojax Ok thank you! I am about to buy and use one of these but wanted to do some research first.
@nosbig64624 жыл бұрын
@@robojax I also liked and subscribed because i have a interest in robotics.
@nosbig64624 жыл бұрын
@@robojax I cant thank you enough this is the code i need for my project.
@rkgki4 жыл бұрын
Useful video. Clear, well chosen info and no fluff. Thanks!
@robojax4 жыл бұрын
You are welcome.
@s.96574 жыл бұрын
Great vid! A question, can i use two of these sensors? What i mean is, how can i modify the code for it to show me the measuring of two VL53L0X at the same time? Thank you in advance.
@robojax4 жыл бұрын
Thanks. I had this on my list for about 2 years now. Today I recorded the video and It will be edited and posted in about a week. First my Patrons at Patreon.com will have access to and then it will be published for everyone. Make sure to subscribe so you get notified once the video is posted.
@EdsGartenBahn5 жыл бұрын
Thank you for this video, it is very helpful. Just one remark: you are measuring the total width of the module incorrect, it's not 23.7 mm, it's 25 mm.
@robojax5 жыл бұрын
You are welcome. Thank you for pointing the error in my measurement.
@filmyzone6640 Жыл бұрын
Can we find water depth using this?
@minnhat5390 Жыл бұрын
why i cannot combine it with the servo motor, everytime i insert code to control a servo, the results are -1mm, timeout. plese help me
@robojax Жыл бұрын
it should work if you understand the code and respect the syntax or how to write the code.
@robojax Жыл бұрын
you can learn how to combine the code from this video kzbin.info/www/bejne/hImkpKqFmMRlsMk
@minnhat5390 Жыл бұрын
@@robojax it works when there is only your code to measure the distance, but when i insert code for the servo, it returns like that ;((
@frankjonathansaenz19115 жыл бұрын
Thanks for the video. Nice explained!!
@robojax5 жыл бұрын
You are welcome.
@rassamitutpansomboon40912 жыл бұрын
I have some question, we need to connect xshut to Arduino? and responsibilities at work of xshut ?
@robojax2 жыл бұрын
If it was needed to connect, I would have shown it. so it is not needed. If you want to learn about that xshut, then watch this video kzbin.info/www/bejne/ZpjPc55vZpx7hsk
@mohamedjundi15723 жыл бұрын
The code uploads notmally and I do not gst any error, but the serial port is just empty
@robojax3 жыл бұрын
First check this snipboard.io/y3pKwG.jpg, then Use the I2C scanner code, upload it to Arduino and see if it prints the I2C address. if it does not, then wiring is bad or module is dead.
@redreska63114 жыл бұрын
Hello mate ! I need your help in this case ! I want to detect distance between 0 to 30 mm with variation of 1 mm. I tried Sharp GP2Y0A02YK0F and GP2Y0A41SK0F etc .. but they are even non linear as mentioned in datasheet ! or sensibility is low ( 1V / 30 mm ) ! I want to see the curve of this sensor ( Voltage / distance ) to know is there a linear part of the curve with good sensibility ( expl 2 V / 30 mm ). Please answer my question, thanks !
@robojax4 жыл бұрын
Hello, this is totally different. Sharp modules output voltage proportional to the distance. this module however does the calculation internally and stores it in digital memory called register. then we read the register to get distance. this is very accurate with ± 2mm as mentioned in the datasheet.
@redreska63114 жыл бұрын
@@robojax that mean I can use this sensor to get the distance between 10 and 40 mm for exemple ? ( I need a 30 mm linear curve with accurance ± 2mm no problem ) if not, what can use as sensor ? ultrasonic is not accurate !
@tech-freakengineer13893 жыл бұрын
Very helpful video. I would like to know the minimum distance it can measure.
@robojax3 жыл бұрын
There is datashert link on the page where the code is.
@GReeeeNCREW3 жыл бұрын
Can this be used to measure water levels in ml?
@robojax3 жыл бұрын
after I made series of laser video, I had no idea that people would use it with laser. learn about laser infraction with water here www.technologyreview.com/2017/08/29/149421/engineers-turn-a-laser-beam-into-a-stream-of-liquid/#:~:text=Laser%20light%20does%20not%20usually,another%20medium%2C%20such%20as%20air.&text=If%20the%20water%20is%20pure,with%20no%20streaming%20at%20all.
@yogeshitaliya4736 жыл бұрын
Hello sir Please send me link arduino with firebase home automation iot tutorial. (Thankyou)☺☺☺
@robojax6 жыл бұрын
Hello, I don't have any home automation yet. Have it on my list. When posted you will get informed if you subscribe.
@yogeshitaliya4736 жыл бұрын
Robojax I have already subscribed your chenal and thankyou for reply me
@robojax6 жыл бұрын
Thank you very much.
@randyperez85124 жыл бұрын
Failed to detect and initialize sensor? please help
@robojax4 жыл бұрын
if you used the library and properly wired then it is bad hardware. the best option would be to try another sensor.