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?
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
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
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.
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.
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.
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?
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).
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?
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?
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 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
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
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
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.
@@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.
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
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.
@@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?
@@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
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 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 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
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
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.
@@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
@@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.
Can i work TF-Luna module sensor with Arduino Uno or ESP32? Thanks
Fantastic. LIDAR accuracy at this price point will make a lot of new things possible.
Yeah. I'm really excited to do some more stuff with it.
Thank you, does it only works in a straight line? Detection profile plz
is it okay for outdoor use? i planned to use it on my drone. Thanks for the video
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?
if i use arduino uno and tf-luna LIDAR will your code still work?
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
@@AnotherMaker Which tweaks may that be?
can you give us the circuit diagram please
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
Beam width? Beam divergance? Is that info available?
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.
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.
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.
what part of the code signals to us that we should be using pins 17 and 16?
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?
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).
Yeah. there are basically every length range
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?
I knew there are several different variations of the sensor that have different wiring diagrams. Yours may be different than mine
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?
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
I installed the library but cannot seem to find the folder at all in my directory. Not sure what is happening
Look in your documents folder under documents - arduino - libraries
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??
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.
since it is a laser, does it work for measuring the water level in a rain barrel?
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.
I am interested as well
@@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
work well
Can you please provide a pinout of the device? The colors of the wires on the cable that came with my unit are different.
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
Did you solve your problem with this. I think I have the same issue
can i use this on a samsung phone with the app scanner 3d via usb???
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
@@AnotherMaker thanks..
Hmm i am thinking about printing and making a spot micro these come in very handy
Awesome. I hope it helps!
And when you mount it on a fast servo or stepper motor, the fun REALLY begins! ;)
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.
@@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.
Can you plz share a diagram showing how to connect this with Arduino Nano?
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
@@AnotherMaker thank you!
Thanks for the info. Can you describe how to use this with an Arduino Uno? Thanks!
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.
@@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?
almost nice, next time explain where u connected the circuit so we can follow thru
The code I linked to in the description breaks all that down. It lists what pin goes where right at the top.
@@AnotherMaker yeah, can you do this on arduino uno? and only using the hardware serial not integrating software serial please
can it use for water level inside the Tank?
Yes. I think that's actually a common use for them.
@@AnotherMaker if u could make a video for that it will be a big help us,anyway thanks for video
hi, is there any idea to install print.h? i couldn't get the example run smoothly.please get e any idea.
Be sure that 'printf.h' is in the same folder with your sketch.
Hey I was just coming here to get the link the video, but I see you found it :)
@@AnotherMaker appreciate if you could email me the example for this coding.
@@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
lidar able 40m like lidar lite?
I know they make a ton of different versions of that sensor that all differ by distance.
USE OF THAT PRINT F FILE?
I'm not sure what you mean
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!
Can you link to the modules?
@@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.
@@nikolas8741 Oh so you are talking about the straight up laser sensors that I use in my duck hunt and shooting gallery stuff, right?
@@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
@@nikolas8741 This guy does it and gives code. ua-cam.com/video/IEFcJW1R57E/v-deo.html
Great job, can i use this TF-Luna for 3d mapping ?
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.
@@AnotherMaker do you have any code for the servo ?
@@yzkwn did you ever do it that would be a very interesting and very difficult project
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
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.
@@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
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?
I'm honestly not sure. There are a lot of variations of this thing apparently. I'm not sure of the other wiring diagrams
@@AnotherMaker Well, thx for replying anyway.
@@AnotherMaker Another question, is there a converter for this? If there is it might be possible to do my project.
@@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.