You have shared useful information about laser sensors. thank you
@robojax
4 жыл бұрын
You are welcome.
@aerospace_andy
2 жыл бұрын
thanks your video safed me quite some time!
@rlmccormick
3 жыл бұрын
Nice video. Have you done any experiments to understand whether one sensor can interfere with the other? Any thoughts on whether there is a minimum distance you need to keep the two apart to keep them from interfering? Or is the deign of these sensors such that they are guaranteed not to interfere/crosstalk?
@maarten6241
4 жыл бұрын
Mate your tutorial is right on time. Thanks a lot!
@robojax
4 жыл бұрын
You are welcome. I am glad you found it useful.
@nameerlatef2079
7 ай бұрын
I like all of your videos. I just have one question. Why do all the videos measure distance for you or for others? They do not approach small or precise distances, i.e. from zero to five centimetres. Are there such sensors? Please explain. Thank you.
@robojax
7 ай бұрын
measuring longer range is always difficult. Also very short range is dificult as we need some space for the beam to reflect. VL6180 can measure up to 20cm kzitem.info/news/bejne/wH5vqmSZs4Ohhn4
@geoffwade8144
3 жыл бұрын
Thank you this is very helpful for a project I’m working on.
@robojax
3 жыл бұрын
Glad it was helpful!
@saullayton4476
3 жыл бұрын
I know I'm kinda off topic but does anybody know of a good website to stream new series online?
@asherfrancisco7417
3 жыл бұрын
@Saul Layton i use Flixzone. You can find it on google =)
@franklinalonzo3657
3 жыл бұрын
@Asher Francisco yup, I've been using flixzone for since march myself :)
@saullayton4476
3 жыл бұрын
@Asher Francisco Thank you, I signed up and it seems like they got a lot of movies there =) I really appreciate it !!
@manuelsboarina3770
7 ай бұрын
Is it possible to connect multiple vl53l0x without using xshut? The sensor I'm using has only 4 pins: scl, sda, vvc and gnd
@robojax
7 ай бұрын
xshut must be on the boad.
@mcanpala
Ай бұрын
You can connect and disconnect on of the sda or scl wire in order using relay
@TIESTO2023
3 жыл бұрын
Greate video
@robojax
3 жыл бұрын
Thanks for the visit
@TheIntervurt
2 жыл бұрын
Thank you just what I needed
@robojax
2 жыл бұрын
You are welcome. Always search my channel. You will be surprised. Here is how find a video in a channel kzitem.info/news/bejne/sJ6hu5ebe4mUe6g
@robosapien314
4 жыл бұрын
Thank you so much! That's one of your best videos. Do you know how to change their i2c address, so that you don't need the multiplexer?
@robojax
4 жыл бұрын
you are welcome. Perhaps you missed it when I mention in the first 2 minuets that I have video on that. The links are in the description now.
@robosapien314
4 жыл бұрын
@@robojax sorry for my stupid question. Yesterday I was really busy and didn't watch the whole video. So do I have to change their I2c address first before trying out your code?
@RamonMoncada
Жыл бұрын
Really good video! how can i work the same system on a Xiao Seedstudio RP2040? ive having problems trying to adapt it
@rolandwiberg1555
3 ай бұрын
about the spatial resolution, what is the diameter of the beam hitting the surface ?
@bottlefish6386
6 ай бұрын
I would like to know if they will interfere with each other when pointing at the same direction
@robojax
6 ай бұрын
No. The ray is encoded.
@melusisibanda3926
3 жыл бұрын
Could you please show the connection configuration diagram for 3 sensors. I have been trying to use the example on the Adafuit library "VL53L0x_multi_extended" for my robotics project, but cannot figure out the wiring for 3 sensors.
@robojax
3 жыл бұрын
I just watched the video because I was surprised by your question. I have explained the wiring the best way possible. if you need the draw the wiring, then get free software fritzing.org/ and draw it. good luck.
@sinuscosinus2360
11 ай бұрын
I am also looking for a connection for 3 sensors. Did you find out how to do so?
@barjjb
4 жыл бұрын
Will it be possible with one vl53l0x and one vl53l1x with a proper code? Displaying results simultaneously on an I2C display?
@robojax
4 жыл бұрын
of course possible.
@barjjb
4 жыл бұрын
@@robojax Can you please provide a code? I'm not sure what I need to change in the Dual code provided in the examples.
@barjjb
4 жыл бұрын
@@robojax also it appears that both sensors have the same adress, can I solve that without a multiplexer
@tiagodomas7055
4 жыл бұрын
Please a video about how to connect a vl53l0x on a digispark (ATtiny )
@robojax
4 жыл бұрын
I just replied to you comment on other video. It is exactly the same. connect two wires SDL and SCL to digispark. Exactly like this display kzitem.info/news/bejne/tm9rzqtjnpVnoY4
@tiagodomas7055
4 жыл бұрын
@@robojax i tried but it doesnt work
@norsyahirah7263
11 ай бұрын
Hello Mr.,how to adjust the code to have range?For example around range 0-40,Led will light up while above 41,Led will light out for 2 or more sensor
Sir can you please make a video on lidar, how to use it.
@robojax
4 жыл бұрын
I will make if I get a hand on it. it is very expensive right now.
@Juanpa29
3 жыл бұрын
Does this sensor give accurate measuring when you use many sensors at the time at long distances? like using 4 sensors in a range of 3 meters. I'm looking for an alternative to the ultrasound sensor
@robojax
3 жыл бұрын
Hello, I have provided the datasheet. this is from ST semiconductor. The resolution is mentioned in the introduction video. I mentioned in the beginning that this video is to show you how to use 2 or more sensors. for full details watch the introduction video. The link is under video in the description.
@dalek-dan-1
Жыл бұрын
what about resistors on the I2C buss when you connect multiple modules ? Doesn't each module have resistors and having multiple will cause problems or not ? Great video by the way, I was going to shut them down and only have one active at any one time, I didn't realise you could reassign athe I2C address which is really useful. I assume this is lost on power off so will need to do at startup every time.
@robojax
Жыл бұрын
You don’t need a resistor as the module and arduino already have them. For address also don’t worry every time you reboot all the process will be done and and it will work.
@dalek-dan-1
Жыл бұрын
@@robojax What I meant was because the module already has them, when you add more modules then each module will add more resistors. I thought normally only one should have resistors (from the modules that is) and it was the one at the end of the bus. I am not sure what should be done if you do a star fanout like you show using a breadboard but probably generally it will be OK if not need high speed I guess. I just found a good reference e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/6/I2C-Bus-Pullup-Resistor-Calculation.pdf
@robojax
Жыл бұрын
The module has resistors all of them. see one example here www.pololu.com/file/0J1188/vl53l0x-vl53l1x-vl53l3cx-time-of-flight-sensor-schematic.pdf and don't wory.
@MiniLuv-1984
4 жыл бұрын
Thanks, nice intro to VL53L0X. The adafruit site claims upto 1000mm, but I noticed you showed it working only under 400mm - do you get erratic distance measurements when it approaches 1000mm?
@robojax
4 жыл бұрын
you are welcome. This video focused on using two more VL53L0X. If you want full review of the module, see the links in the description. It can measure according to datasheet up to 2m (200cm). Here is datasheet www.st.com/resource/en/datasheet/vl53l0x.pdf
@604smit
3 жыл бұрын
Nice tutorial,is it possible to set to long range mode in some way ? The range will then be 2m max instead of 1m.
@robojax
3 жыл бұрын
in this library github.com/adafruit/Adafruit_VL53L0X/tree/master/examples you can set Adafruit_VL53L0X::begin(uint8_t i2c_addr, boolean debug, TwoWire *i2c, VL53L0X_Sense_config_t vl_config) replace vl_config with one of the following VL53L0X_SENSE_DEFAULT VL53L0X_SENSE_LONG_RANGE VL53L0X_SENSE_HIGH_SPEED, VL53L0X_SENSE_HIGH_ACCURACY
@604smit
3 жыл бұрын
Thanks,gonna try that
@sahil-uc8fv
9 ай бұрын
Can we use this sensor in the presence of sunlight?
@9-1wilsonpintocordoba2
Жыл бұрын
Buennnnnnn videooooooo
@codeclubs
Жыл бұрын
Could I connect 15 vl53lox sensors using atmega328p
@chungtran5000
Ай бұрын
i got an error it is not enough memory when i'm trying use 3 sensor.
@Saffron_SV
10 күн бұрын
What's the error?
@oebleh
4 жыл бұрын
So...got my TOF10120's they are great , but of no use for me now because there is no Pixhawk I2C driver in the moment. On arduino they are great..
@robojax
4 жыл бұрын
Pixhawk yes is totally different MCU. I am sure you can find resources on that.
@AAlejandra_Saav
10 ай бұрын
Can I connect the Vl53l0x directly to PLC LOGO?
@robojax
10 ай бұрын
no you can't. PLCE Logo is not a microcontroller. you need a device to be able to communicate via I2C and read values. This vidoe is not introduction to the module. You can learn about this sensor here kzitem.info/news/bejne/pIudnoqenoCqooo
@fernandojimenezbarrera8841
Жыл бұрын
¿Por qué debemos usar el pin Xshut?
@robojax
Жыл бұрын
Me hiciste ver el video. a las 6:10 se puede ver en la pantalla lo que hace. solo leelo. Y eso hace posible usar diferentes direcciones I2C.
@josemiguelcruzhernandez85741
Жыл бұрын
Hello, could you tell me why my two sensors show two different distances despite being in the same place?
@robojax
Жыл бұрын
Is they are exact sensors then you should get exact reading. Please test them by pacing a book parallel to the sensor in front of them . There is no other reason.
@josemiguelcruzhernandez85741
Жыл бұрын
@@robojax thanks for answering
@danielshields9808
2 жыл бұрын
Is it possible to substitute the VL53L1X for the VL53L0X? I would like to use this library and example code for the two VL53L1X
@robojax
2 жыл бұрын
I have not checked the code, but if you understand the code, the same method should work.
@danielshields9808
2 жыл бұрын
@@robojax is it possible to use the VL53LOX library for the VL53L1X?
@robojax
2 жыл бұрын
of course not.
@miguelangelibarrazempoalte6704
4 жыл бұрын
Como puedo hacer q las lecturas las vea en una lcd ayuda...
@robojax
4 жыл бұрын
Solo revisa los enlaces debajo del video. Tengo toneladas de videos relacionados allí. Y aquí hay un video que muestra cómo usar dos pantallas LCD. Aprenda de este kzitem.info/news/bejne/rWyb0aBoenSUqI4
@markoadamjanovski1282
3 жыл бұрын
I tried it with 3 vl53l0x and one of them is defect now. I think it was a short circuit. Do I need pull up resistors for more then two sensors ?
@robojax
3 жыл бұрын
You don’t need anything. So as I have shown.
@jaso5007
2 жыл бұрын
can we implement long range mode here?
@robojax
2 жыл бұрын
this is about using two or more. All other features if library has it are intact.
@vaidasm491
Жыл бұрын
What is the minimum range and resolution?
@robojax
Жыл бұрын
this video was about connecting two or more sensors. Details has been explained in the introduction to VL53L0X here kzitem.info/news/bejne/pIudnoqenoCqooo
@Shimishix
4 жыл бұрын
Will it work the same with VL53L1X? Also is it possible to display it on a LCD?
@robojax
4 жыл бұрын
These are two different modules. But I have tones of videos including LCD see them here kzitem.infosearch?query=VL53L0X
@Shimishix
4 жыл бұрын
@@robojax the code with vs53l1x is significantly different than the code you showed here?
@robojax
4 жыл бұрын
Yes. it should be different
@ThatiBhanoday
Жыл бұрын
is this good for inclined surfaces?
@robojax
Жыл бұрын
This video is about using two sensor. I have full explanation of the module here kzitem.info/news/bejne/tGigx3WHfqhkjKQ but I know it needs the beam to reflect back. The inclined angle might affect it and it depends how steep the angle is and the type of surface. So the only way to know is to practically test it.
@이훈석-u9z
4 жыл бұрын
How do i use four vl53l0x laser sensor? PLZ, help me!! ㅠㅠ
@robojax
4 жыл бұрын
did you read the title of this video? it says "how to use 2 or more" meaning you can use 10 or more.
@arminanzh5875
3 жыл бұрын
سلام و خيلي ممنون بابت ويديو هاي جالبتون من به كمك شما نياز دارم ميشه بفرمايين با 4 سنسور كد برنامه رو؟ ممنون
@robojax
3 жыл бұрын
وعلیکم سلام، خواهش میکنیم. خرسندم که مفید واقع میشوند. من تمام کود را سطربهسطرتوضیحداده ام . وپاین توضیح برای هر تعداد کشاف (سنسور) معتبر است. لطفا بخش توضیح کود را چند بار ببینید مطمئنم میفهمید که چگونه برای چهارکشاف بنویسید. اگر باز هم نفهمیدید، من در فرصت مناسب کود مینویسم.
@arminanzh5875
3 жыл бұрын
@@robojax ممنون سعيم رو ميكنم خيلي ممنون بابت جوابتون
@arminanzh5875
3 жыл бұрын
@@robojax #include "Adafruit_VL53L0X.h" // address we will assign if dual sensor is present #define LOX1_ADDRESS 0x30 #define LOX2_ADDRESS 0x31 #define LOX2_ADDRESS 0x32 #define LOX2_ADDRESS 0x33 // set the pins to shutdown #define SHT_LOX1 9 #define SHT_LOX2 8 #define SHT_LOX3 7 #define SHT_LOX4 6 // objects for the vl53l0x Adafruit_VL53L0X lox1 = Adafruit_VL53L0X(); Adafruit_VL53L0X lox2 = Adafruit_VL53L0X(); Adafruit_VL53L0X lox3 = Adafruit_VL53L0X(); Adafruit_VL53L0X lox4 = Adafruit_VL53L0X(); // this holds the measurement VL53L0X_RangingMeasurementData_t measure1; VL53L0X_RangingMeasurementData_t measure2; VL53L0X_RangingMeasurementData_t measure3; VL53L0X_RangingMeasurementData_t measure4; /* Reset all sensors by setting all of their XSHUT pins low for delay(10), then set all XSHUT high to bring out of reset Keep sensor #1 awake by keeping XSHUT pin high Put all other sensors into shutdown by pulling XSHUT pins low Initialize sensor #1 with lox.begin(new_i2c_address) Pick any number but 0x29 and it must be under 0x7F. Going with 0x30 to 0x3F is probably OK. Keep sensor #1 awake, and now bring sensor #2 out of reset by setting its XSHUT pin high. Initialize sensor #2 with lox.begin(new_i2c_address) Pick any number but 0x29 and whatever you set the first sensor to */ void setID() { // all reset digitalWrite(SHT_LOX1, LOW); digitalWrite(SHT_LOX2, LOW); digitalWrite(SHT_LOX3, LOW); digitalWrite(SHT_LOX4, LOW); delay(10); // all unreset digitalWrite(SHT_LOX1, HIGH); digitalWrite(SHT_LOX2, HIGH); digitalWrite(SHT_LOX3, HIGH); digitalWrite(SHT_LOX4, HIGH); delay(10); // activating LOX1 and reseting LOX2 bis LOX4 digitalWrite(SHT_LOX1, HIGH); digitalWrite(SHT_LOX2, LOW); digitalWrite(SHT_LOX3, LOW); digitalWrite(SHT_LOX4, LOW); // initing LOX1 if(!lox1.begin(LOX1_ADDRESS)) { Serial.println(F("Failed to boot first VL53L0X")); while(1); } delay(10); // activating LOX2 digitalWrite(SHT_LOX2, HIGH); delay(10); //initing LOX2 if(!lox2.begin(LOX2_ADDRESS)) { Serial.println(F("Failed to boot second VL53L0X")); while(1); } } void read_dual_sensors() { lox1.rangingTest(&measure1, false); // pass in 'true' to get debug data printout! lox2.rangingTest(&measure2, false); // pass in 'true' to get debug data printout! lox1.rangingTest(&measure3, false); // pass in 'true' to get debug data printout! lox1.rangingTest(&measure4, false); // pass in 'true' to get debug data printout! // print sensor one reading Serial.print(F("1: ")); if(measure1.RangeStatus != 4) { // if not out of range Serial.print(measure1.RangeMilliMeter); } else { Serial.print(F("Out of range")); } Serial.print(F(" ")); // print sensor two reading Serial.print(F("2: ")); if(measure2.RangeStatus != 4) { Serial.print(measure2.RangeMilliMeter); } else { Serial.print(F("Out of range")); } Serial.println(); } void setup() { Serial.begin(19200); // wait until serial port opens for native USB devices while (! Serial) { delay(1); } pinMode(SHT_LOX1, OUTPUT); pinMode(SHT_LOX2, OUTPUT); pinMode(SHT_LOX3, OUTPUT) pinMode(SHT_LOX4, OUTPUT) Serial.println(F("Shutdown pins inited...")); digitalWrite(SHT_LOX1, LOW); digitalWrite(SHT_LOX2, LOW); digitalWrite(SHT_LOX3, LOW); digitalWrite(SHT_LOX4, LOW); Serial.println(F("Both in reset mode...(pins are low)")); Serial.println(F("Starting...")); setID(); } void loop() { read_dual_sensors(); delay(100); }
@arminanzh5875
3 жыл бұрын
@@robojax من مشکلم اون سطرهای پایینی هستش که low و high میشه. برای پروژه دانشگاهیم باید یک چیزی رو اندازه بگیرم. از کمکتون خیلی خیلی ممنون میشم.
@robojax
3 жыл бұрын
سلام آرمین. با یک نگاه در کود (شفر به فارسی) شما متوجه اشتباه تان شدم. شفر جدید برای شما نوشتم که میتوانید در robojax.com/learn/arduino/?vid=robojax_VL53L0X_multiple_4 آنرا ببینید. امتحانش نکرده ام. اما باید کار کند. اگر خطای تایپی در آن باشد خودتان پیدایش کنید. در حفظ خدای متعال باشد احمد از کانادا، اصلا از خراسان بزرگ
@HeinerthGuillermoRomeroMacas
3 жыл бұрын
if we use multipples tof sensor, we lost speed of response ?
@robojax
3 жыл бұрын
Depends how fast you want to read. See my video on introduction to this module as I might have mentioned the refresh rate
@ericjing7532
3 жыл бұрын
I met this issue, I use 4 tof and frequency only 7hz max, how to fix it
@user-sp3wo6tj1n
3 жыл бұрын
if i want to measure the distance over 1m which part of the code should I change?
@robojax
3 жыл бұрын
Hello, this video is showing only how to use two of them. You need watch introduction video to learn everything here kzitem.info/news/bejne/tJmVz4qcnqGUqZw
@user-sp3wo6tj1n
3 жыл бұрын
Thanks I’ll take a look 👀 btw your video really help me a lot ,also I like the way you answer everyone’s questions although some of them are stupid like mine ,but this also help others to see if the have the same question.Anyway nice work man😎
@robojax
3 жыл бұрын
you are welcome. I always try to answer question related to the video that are not answered in the video. No question is stupid. Thanks. stay safe.
@jackemch1231
3 жыл бұрын
Hello, I am having an issue using this code with two or more sensors on the Arduino DUE. I am getting a failed to boot error. Is it possible to use this code on the DUE?
@robojax
3 жыл бұрын
you can use it with any arduino. you have to play attention to SDI and SCL pins the pines are different. See it here www.arduino.cc/en/reference/wire Due 20 (SDA), 21 (SCL), SDA1, SCL1. please replay back here so I know the issue is resolved. good luck
@jackemch1231
3 жыл бұрын
@@robojax Hello, I have since implemented my code on a arduino mega and it seems to be working much better. However, I am trying to read distances from four sensors. Do I just include the rest of the sensors in the setID(); funciton? Or do I need to group the sensors in pairs of twos for both setID() and read_sensor() funcitons?
@jackemch1231
3 жыл бұрын
In other words, I am not having any issue assigning new I2C addresses to my sensors. That part is working fine. However, I am only getting a distance reading from one sensor (measure4). measure1-3 are all giving me a value of zero
@jackemch1231
3 жыл бұрын
What extra code needs to be added in order to run more than 2 sensors?
@robojax
3 жыл бұрын
I believe I made this video to answer all of your questions. I made videos for one sensors but when I read comments, I made this video. I have explained it in the code section of video. If I can’t repeat what I said in video , besides I don’t even remember what I said as I have made over 50 more videos after this. Just watch without skipping and I can assure you that you won’t have any questions after the end of video. Pay attention. May be watch it 2 or 3 times. Good luck
@shokirkhonoppokhonov5434
3 жыл бұрын
Thanks for making amazing video! I have tried the same code but having "Failed to boot first VL53L0X" problem. What might be the cause? Thanks in advance!!
@robojax
3 жыл бұрын
first do the complete wiring. then disconnect module 1 and run I2C scanner to see you get I2C address. then disconnect 1 and connect 2 only and check I2C address. you might find the issue with wiring or bad sensor.
@kevgermany
4 жыл бұрын
Thanks. Really helpful, but I can't find the dual option in the sketch library. Edit - had an old version. Updated to 1.05 and it's there. Leaving this in case others have same issue.
@robojax
4 жыл бұрын
Good to know you found the solution.
@oebleh
4 жыл бұрын
Hi Robojax , i have a challenge. I want to make object detection on a drone (F,R,L,R and Bottom ) . I would like to use 5 x TOF10120's on an Arduino miniPro 5V 16Mhz. 1th challenge is different I2c addresses (don't know if this is possible on the TOF10120 ?) .2th Challenge is to rewrite an existing *.ino that uses 5 x HC-SR04's as sensors and pushes out Mavlink commands over a serial connection to a Pixhawk Flight controller trough RC override commands. This will save calculation power of the flight controller ,solve the amount of physical connections possible on the flight controller and the exiting available space on the drone issues for me. What are your thoughts about this ?.
@robojax
4 жыл бұрын
Hi, I just did online search and found only Chinese datasheet for the module. I would suggest using VL53L0X or VL53L1X which are very easy to use and both have full documentation and datasheet.
@oebleh
4 жыл бұрын
@@robojax Thanks for replying , unfortunately the TOF10120's are on the way from China . ill have to go for these first.. i guess an other option would be a cheap I2C multiplexer ?.or are there disadvantages to use these in my setup ?
@robojax
4 жыл бұрын
I just purchased one them. it will take about 40 days to arrive and I will make video if time permits.
@oebleh
4 жыл бұрын
@@robojax This will be on my TOP interest list ! ..can't wait ! ( maybe i'm faster in "trial and error" testing than you LOL ) Thanks !
@ericjing7532
3 жыл бұрын
I think the data frequency will be reduced?
@robojax
3 жыл бұрын
only delay() function will reduced it. Each module needs some time to read data. Arduino is not slowing it down.
@ericjing7532
3 жыл бұрын
@@robojax I used 4 tof sensors, even I set delay to 10ms, the frequency is only 7hz. Indeed tof sensors can reach 30hz. Could you help me?
@ericjing7532
3 жыл бұрын
@@robojax and I also tried TCA 9548, still frequency was divided by number of the sensors
@robojax
3 жыл бұрын
If you see it is 7hz, then it will take 1/7=147 milliseconds and you have to wait before going to the next sensor.
@ericjing7532
3 жыл бұрын
@@robojax do you think it is possible to read the sensor at the same time so that the frequency wii be no influenced? And do you have any solution?
Пікірлер: 137