Тёмный

Arduino LiDAR Quick Start Guide with the TF-Luna 

AnotherMaker
Подписаться 19 тыс.
Просмотров 50 тыс.
50% 1

LiDAR, or light detection and ranging is a fantastic technology used to accurately determine the distance of an object. It works on similar principles to the cheap ultrasonic sensors that come in every Arduino starter kit. Its main advantages are speed, accuracy, and reliability and with this guide I'll give you the tips and tricks you need to get up and running quickly.
TF-Luna - amzn.to/3B8V7KG
My Code - github.com/mud...

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 84   
@alanmusicman3385
@alanmusicman3385 2 года назад
Fantastic. LIDAR accuracy at this price point will make a lot of new things possible.
@AnotherMaker
@AnotherMaker 2 года назад
Yeah. I'm really excited to do some more stuff with it.
@danielevan4564
@danielevan4564 11 месяцев назад
Ty @AnotherMaker I’m going to try and apply this in the real world… someday. For now I just figured out how to get an electric motor wired up to a switch.
@blaircox1589
@blaircox1589 Год назад
And when you mount it on a fast servo or stepper motor, the fun REALLY begins! ;)
@blaircox1589
@blaircox1589 10 месяцев назад
No? Why? Using ROS2, there is no reason you can not use this and sweep to create a map. Mount on a slip ring and rotate, it will do the same as commercial unit, just you need to do the work to configure.
@cryora
@cryora 9 месяцев назад
@@blaircox1589But can ROS be slow if you need to do multiple publications or subscriptions in one function? It takes time to publish and for the subscriber to respond.
@syahrialrasyid2539
@syahrialrasyid2539 Месяц назад
is it okay for outdoor use? i planned to use it on my drone. Thanks for the video
@Nazira-l8y
@Nazira-l8y 7 месяцев назад
Can i work TF-Luna module sensor with Arduino Uno or ESP32? Thanks
@diytecheu
@diytecheu 2 года назад
Hmm i am thinking about printing and making a spot micro these come in very handy
@AnotherMaker
@AnotherMaker 2 года назад
Awesome. I hope it helps!
@abdulaziza
@abdulaziza Год назад
Thank you, does it only works in a straight line? Detection profile plz
@mohamedelgamal6333
@mohamedelgamal6333 Год назад
Many thanks for this well done and informative video. I have a question for you, can I use this sensor to map the surface of wavey water. Which one is better in such application, the ultrasonic or the Lidar?
@AnotherMaker
@AnotherMaker Год назад
I do think lidar is the better tech for this but they do make lidar sensors that do more scanning as opposed to a measurement at a specific point
@lostinbizz
@lostinbizz 8 месяцев назад
i'm working on a tech to detect potholes in water logged roads can this sensor detect the abnormalities below water or in other words can this thing work under water?
@DeeegerD
@DeeegerD 11 месяцев назад
Beam width? Beam divergance? Is that info available?
@robinpun590
@robinpun590 2 года назад
I have connected the TF Luna to my arduino uno and the code can be compiled and uploaded. However when viewing the data monitor I do not get any data recorded. Only 00 00 00 00 00 00 00 00 00.
@AnotherMaker
@AnotherMaker 2 года назад
I've heard that different versions of this have a different wiring pinout. I showed mine in the pic, but your wires could be in the wrong order. You might need to experiment.
@pior9988
@pior9988 2 года назад
can you give us the circuit diagram please
@AnotherMaker
@AnotherMaker 2 года назад
Hey. Thanks for watching. I don't have a diagram but I do tell you where to connect the pins at the top of my sketch. github.com/mudmin/AnotherMaker/blob/master/arduino-lidar-tf-luna/arduino-lidar-tf-mini.ino
@zoemorrison244
@zoemorrison244 Год назад
Thank you for this video! I followed it exactly but am having an error issue that reads as follows: Status: HEADER / Data: 00 00 00 00 00 00 00 00. Any ideas on why this would be happening?
@AnotherMaker
@AnotherMaker Год назад
I knew there are several different variations of the sensor that have different wiring diagrams. Yours may be different than mine
@harshinimaran3705
@harshinimaran3705 2 года назад
Hi...Can we use TF Luna lidar in detecting potholes?? If yes...Does it provide results in water stagnated potholes or it will give result only in dry potholes??
@AnotherMaker
@AnotherMaker 2 года назад
You would need some sort of servo to do any sort of pan and tilt. They also do have 2d and 3d models that may be better suited.
@siddharthramachandran894
@siddharthramachandran894 2 года назад
I installed the library but cannot seem to find the folder at all in my directory. Not sure what is happening
@AnotherMaker
@AnotherMaker 2 года назад
Look in your documents folder under documents - arduino - libraries
@coulterjb22
@coulterjb22 Год назад
Are there DIY lidar sensors that have a shorter range? I'm looking to make one for a laser engraver. Accuracy of 1mm or less with a range approx. 150mm to (don't care).
@AnotherMaker
@AnotherMaker Год назад
Yeah. there are basically every length range
@muhamadaqil5241
@muhamadaqil5241 2 года назад
if i use arduino uno and tf-luna LIDAR will your code still work?
@AnotherMaker
@AnotherMaker 2 года назад
You will have to tweak it to use software serial since the Uno only has one serial port.... I feel like I gave that option in the code but it's been a little while
@robinpun590
@robinpun590 2 года назад
@@AnotherMaker Which tweaks may that be?
@guujikenn
@guujikenn 2 года назад
almost nice, next time explain where u connected the circuit so we can follow thru
@AnotherMaker
@AnotherMaker 2 года назад
The code I linked to in the description breaks all that down. It lists what pin goes where right at the top.
@guujikenn
@guujikenn 2 года назад
@@AnotherMaker yeah, can you do this on arduino uno? and only using the hardware serial not integrating software serial please
@PIXELamPC
@PIXELamPC 2 года назад
since it is a laser, does it work for measuring the water level in a rain barrel?
@AnotherMaker
@AnotherMaker 2 года назад
I would need to check, but since they have an ip67 version that I was thinking of getting, I may have to try that. I will let you know.
@burnermaster5375
@burnermaster5375 2 года назад
I am interested as well
@superliegebeest544
@superliegebeest544 2 года назад
@@AnotherMaker u already have the waterproof sensor? I was thinking to use on of these to replace multiple ir sensors. But its in a cold environment like a fridge. It should shine lengtwise over a.convayorbelt instead of multiple ir sensors sideways
@GodzillazzZ
@GodzillazzZ 2 года назад
work well
@richarddong4874
@richarddong4874 6 месяцев назад
what part of the code signals to us that we should be using pins 17 and 16?
@richarddong4874
@richarddong4874 6 месяцев назад
oh wait I think I found it, it is Serial2.begin(115200); // Initialize TFMPLus device serial port. delay(20); // Give port time to initalize tfmP.begin(&Serial2); // Initialize device library object and... right?
@stevensheldon9271
@stevensheldon9271 2 года назад
Can you please provide a pinout of the device? The colors of the wires on the cable that came with my unit are different.
@AnotherMaker
@AnotherMaker 2 года назад
I have the pinout and details in my github but this is the image by itself github.com/mudmin/AnotherMaker/blob/master/arduino-lidar-tf-luna/LIDAR-Mega.png
@robinpun590
@robinpun590 2 года назад
Did you solve your problem with this. I think I have the same issue
@nikolas8741
@nikolas8741 2 года назад
Hey! I'm wondering if you could share a video on "How to send 'Hello word!'" Between to arduino's using the LASER module and the LASER Sensor Non-Modulator module. I think this would be amazing!
@AnotherMaker
@AnotherMaker 2 года назад
Can you link to the modules?
@nikolas8741
@nikolas8741 2 года назад
@@AnotherMaker The second link got remove by big brother 🙄. you would have to add the fallowing. 3 times the twenty-third letter of the English alphabet, 𝘢𝘮𝘢𝘻𝘰𝘯, 𝘊𝘰𝘮𝘦 without the 'e', 𝘚𝘭𝘢𝘴𝘩 dp 𝘚𝘭𝘢𝘴𝘩 B091GBJLX5. I hope you get to read this and please big brother leave us alone.
@AnotherMaker
@AnotherMaker 2 года назад
@@nikolas8741 Oh so you are talking about the straight up laser sensors that I use in my duck hunt and shooting gallery stuff, right?
@nikolas8741
@nikolas8741 2 года назад
@@AnotherMaker yes that one and send messages between two arduinos. Or hook it to a router grab the data from the router then send it over the laser to the computer laser receiver that is conected over Ethernet
@AnotherMaker
@AnotherMaker 2 года назад
@@nikolas8741 This guy does it and gives code. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-IEFcJW1R57E.html
@stevensheldon9271
@stevensheldon9271 2 года назад
Thanks for the info. Can you describe how to use this with an Arduino Uno? Thanks!
@AnotherMaker
@AnotherMaker 2 года назад
There are comments in the code about using "software serial" to turn on a second "fake" serial port on the uno. I believe it's pins 10 and 11, but I know I mentioned it somewhere in the code that's linked in the description to my github.
@stevensheldon9271
@stevensheldon9271 2 года назад
@@AnotherMaker I am trying to use this with a Seeeduino XIAO and software serial. I'm using the example that comes with the TFMP library. I get the following output: 20:05:08.180 -> Status: HEADER 20:05:08.180 -> Data: FE 59 AD 93 80 2B 08 4B EA 20:05:09.205 -> Status: HEADER 20:05:09.205 -> Data: 59 AD 93 80 AE 86 6C A1 FF 20:05:10.269 -> Status: HEADER 20:05:10.269 -> Data: E8 59 AD 93 80 2B 08 4B E9 Any ideas?
@rh110
@rh110 2 года назад
Can you plz share a diagram showing how to connect this with Arduino Nano?
@AnotherMaker
@AnotherMaker 2 года назад
My code here tells you how to hook it to pins 10 and 11 and use software serial github.com/mudmin/AnotherMaker/blob/master/arduino-lidar-tf-luna/arduino-lidar-tf-mini.ino
@rh110
@rh110 2 года назад
@@AnotherMaker thank you!
@yzkwn
@yzkwn 2 года назад
Great job, can i use this TF-Luna for 3d mapping ?
@AnotherMaker
@AnotherMaker 2 года назад
You would need some type of servo (or robot) to handle your pan and tilt. This one is 1d. They also have 2d and 3d versions.
@yzkwn
@yzkwn 2 года назад
@@AnotherMaker do you have any code for the servo ?
@justinc2633
@justinc2633 10 месяцев назад
@@yzkwn did you ever do it that would be a very interesting and very difficult project
@altaircocola2323
@altaircocola2323 2 года назад
can i use this on a samsung phone with the app scanner 3d via usb???
@AnotherMaker
@AnotherMaker 2 года назад
I think you would have a hard time doing that. I think you would have a much easier time connecting it to something like an ESP32 and then using the ESP32 to Bluetooth it to your phone... I wouldn't even begin to know how to do that. Those would be things you'd probably have to Google one at a time
@altaircocola2323
@altaircocola2323 2 года назад
@@AnotherMaker thanks..
@edinetgrunhed6000
@edinetgrunhed6000 Год назад
can it use for water level inside the Tank?
@AnotherMaker
@AnotherMaker Год назад
Yes. I think that's actually a common use for them.
@edinetgrunhed6000
@edinetgrunhed6000 Год назад
@@AnotherMaker if u could make a video for that it will be a big help us,anyway thanks for video
@terryterry1655
@terryterry1655 Год назад
lidar able 40m like lidar lite?
@AnotherMaker
@AnotherMaker Год назад
I know they make a ton of different versions of that sensor that all differ by distance.
@shaebahtv
@shaebahtv 2 года назад
hi, is there any idea to install print.h? i couldn't get the example run smoothly.please get e any idea.
@budryerson
@budryerson 2 года назад
Be sure that 'printf.h' is in the same folder with your sketch.
@AnotherMaker
@AnotherMaker 2 года назад
Hey I was just coming here to get the link the video, but I see you found it :)
@shaebahtv
@shaebahtv 2 года назад
@@AnotherMaker appreciate if you could email me the example for this coding.
@AnotherMaker
@AnotherMaker 2 года назад
@@shaebahtv Here is the code that gets pasted in a file called print.h into your sketch folder. github.com/budryerson/TFMini-Plus/blob/master/example/printf.h
@hang1126
@hang1126 Год назад
USE OF THAT PRINT F FILE?
@AnotherMaker
@AnotherMaker Год назад
I'm not sure what you mean
@zhtan1173
@zhtan1173 2 года назад
Heya, my LIDAR sensor came in with a 6-pin communication wire. Is there a way I can use it using only normal jumper wires? If so then how?
@AnotherMaker
@AnotherMaker 2 года назад
I'm honestly not sure. There are a lot of variations of this thing apparently. I'm not sure of the other wiring diagrams
@zhtan1173
@zhtan1173 2 года назад
@@AnotherMaker Well, thx for replying anyway.
@zhtan1173
@zhtan1173 2 года назад
@@AnotherMaker Another question, is there a converter for this? If there is it might be possible to do my project.
@AnotherMaker
@AnotherMaker 2 года назад
@@zhtan1173 I'm not sure, but if you look at the pin labels on mine and the pin labels on yours, I wouldn't be surprised if yours just has an extra pin that you don't need. You could just wire it up according to my code and see what happens. That said, I know they made some that worked on different protocols. So there's a chance mine is rs232 and yours is i2c or something like that. I'm really not sure.
@jstro-hobbytech
@jstro-hobbytech 2 года назад
The cheap arduino thing is useless. I have that ordered and I also have a lidar that has the same range except it has 360 degree range with a built it stm32f throwing tons of data that needs to be parsed haha. I have a long term project that involves spacial data in real time by more than one sensor. Eight now I'm evaluating different 3d data representation solutions. I believe I'm going to end up settling on js and Vulcan or opengl. I don't know java, it's probably the only popular language I'm not fluent in. By fluent I mean can read and follow the logic. I'm probably gonna pull and transform the data, do all the spacial parsing and pass it to simple vector based representation so I can debug. I'd love to get a jetson Xavier for msrp so I'm going to use a pi3 I think and capture the data on my pc and let the 3090 do the heavy lifting. The 3090 was cheaper than a vanilla 6 or 7 year old jetson xavier based on the 9xx nvidia cores. I'd not have bought a new gpu otherwise. Cyberpunk does look awful pretty but it did on the 2080ti I sold during the mining craze. I sold it for a fair, unscalp-like price to buy a new oscilloscope haha
@AnotherMaker
@AnotherMaker 2 года назад
I wouldn't call the arduino thing useless. It definitely depends on how much you need to process. They've offered me a Jetson nano to work with this and some of their other lidar products, but I don't really have time to learn it right now.
@jstro-hobbytech
@jstro-hobbytech 2 года назад
@@AnotherMaker that's true. It's what I learned on and donated like ten of them to a kids program. Sorry for nattering on there brother. I'm on a medication that makes me ramble and when it's about our thing I'm worse. None of my friends even know what a jetson nanao is hahaha. I had one ordered back in 2019 and cancelled it like a fool haha
Далее
Adventures in Science: LIDAR
6:59
Просмотров 135 тыс.
Women’s Free Kicks + Men’s 😳🚀
00:20
Просмотров 5 млн
Can you map a room with LIDAR and Arduino?
11:52
Просмотров 343 тыс.
Try these 16 Brilliant ESP32 projects!!!
11:18
Просмотров 586 тыс.
DIY sonar scanner (practical experiments)
14:30
Просмотров 1 млн
Laser vs Ultrasonic - TOF10120 vs. HC-SR04
31:09
Просмотров 185 тыс.
Getting Started with LIDAR
47:27
Просмотров 1,4 млн
3D LIDAR Scanner (new version)
3:54
Просмотров 73 тыс.