![]() |
LIDAR Sensor has arrived!
Just wanted to share that a new LIDAR (laser radar/rangefinder) is out on the market from "PulsedLight3D" for $90 -- Class I laser so it's FIRST legal. Just arrived today in the mail, and I hooked it up to my Arduino:
Did some initial testing via I2C, seems to be very accurate between ~20cm and 650cm (as far as I could test it tonight without finding a larger room), 0.5 deg beam width Here's a snapshot of my Serial output with distance in cm (~100 Hz samples averaged and output at 5 Hz), sitting on my desk facing up to the ceiling. ![]() http://pulsedlight3d.com/ We're going to have fun with this! |
Re: LIDAR Sensor has arrived!
We got ours today as well. Similar results to your tests. Very excited about this little guy.
|
Re: LIDAR Sensor has arrived!
Being a geospatial geek, this is TOTALLY COOL!!!!!!!
|
Re: LIDAR Sensor has arrived!
This might be a newbie question, but this can be connected to the robo-rio via the I2C and programmed in labview to give us the distance. Right. I haven't done much work dealing with I2C and am not sure what to expect.::rtm::
|
Re: LIDAR Sensor has arrived!
Quote:
I will be coding up a Java Class this week to interface with I2C on the roboRio, which I'd be happy to share. |
Re: LIDAR Sensor has arrived!
In case anyone is interested, I wrote up a java class for this, you can use the start/stop functions to use the built in updater Timer, or use the update function to only poll distance when needed.
LIDAR.java |
Re: LIDAR Sensor has arrived!
Ordered! I have been drooling over this for 6 months. And we might have a use for it. I was going to buy it for my self regardless. If it works out I will get one for the team so we have two.
|
Re: LIDAR Sensor has arrived!
Based on the datasheet it seems this wouldn't work on polycarbonate, since it transmittance is just as high at 905nm as it is in the visible spectrum, and the laser would mostly go right through. I really don't know much about LIDAR systems, so does anyone else with more experience know if this would be the case?
|
Re: LIDAR Sensor has arrived!
Quote:
I asked this question on their forum. https://groups.google.com/forum/#!forum/pulsedlight3d |
Re: LIDAR Sensor has arrived!
Polycarbonate doesn't have 100% transmittance for near IR, but it's still very high. You will get a small amplitude return from polycarb, which will be higher if there are scratches or dirt on the surface, or if you are getting specular returns from other light sources. You can configure the LIDAR-Lite to present either the strongest, first, or last return to you, and I'd expect whatever is behind the panel to be the strongest return the vast majority of the time (but not always).
Experientially, LIDAR sucks for detecting transparent objects and requires lots of signal processing and integration of multiple scans over time to have any chance of accurately detecting a transparent object. |
Re: LIDAR Sensor has arrived!
FYI, I have detected distance to transparent windows with moderate levels of success. I'd assume polycarbonate behaves similarly, but would have to do more testing. We are programming up the LIDAR against the roboRio tonight so I'll try it out.
|
Re: LIDAR Sensor has arrived!
For those that have these sensors, what is the jitter on the returned distance value you are receiving for a given period of time?
Does the returned value go unstable at any point in operation (i.e bouncing around different values) or is it pretty accurate, to what level of accuracy have you noticed? (i.e +/- 1 cm)? Are you using the RoboRio or other embedded device to power and read the sensor? Thanks for your response. Thanks, Kevin |
Re: LIDAR Sensor has arrived!
Quote:
|
Re: LIDAR Sensor has arrived!
Quote:
One source: http://www.molalla.net/members/leeper/transmis.png |
Re: LIDAR Sensor has arrived!
Quote:
|
Re: LIDAR Sensor has arrived!
From the products google groups
https://groups.google.com/forum/#!to...3d/ebRaHl6sylM Paul, That's very exciting... in the course of looking at the forum I found Innovation First International... I grew up fairly near Greenville, TX. Will be joining the forum to follow along... have been getting into ROS.org and robotics in my hobby-time. @Polycarbonate - the way the sensor acquires readings is by sending a bunch of pulses out and then capturing what comes back, combining those into a "correlation record" and then measuring the distance between the crossing point in the reference signal and the next strongest signal (or if you ask for it, the second strongest). There are a few surfaces and conditions it can't "see" but in my experimental experience it can detect most surfaces from one angle or another. Sometimes with reflective and clear surfaces you can get unexpected results, but that's where that second reference comes in handy. You can use it to see a reflection or an object on the far side of a clear object if you are picking up your strongest signal from the clear object. Pg. 17 "Signal Acquisition process" through pg 22 "Processing" of our manual goes into detail about how the sensor records information: http://pulsedlight3d.com/pages/docs Let me know if you have any more questions very happy to help! We're excited about what the chiefdelphi.com community is going to do with LIDAR-Lite! - Austin |
Re: LIDAR Sensor has arrived!
Quote:
|
Re: LIDAR Sensor has arrived!
Strange, it has worked for me. I've been using the mxp port so far, so I'll test with the on board one.
|
Re: LIDAR Sensor has arrived!
Right now it seems that only the MXP port is supported with the LIDAR, I'm still investigating, but using the same power source and code, only the MXP I2C port will return data.
|
Re: LIDAR Sensor has arrived!
Quote:
We have ordered one. |
Re: LIDAR Sensor has arrived!
Quote:
For now, works perfectly on the MXP, thanks again! |
Re: LIDAR Sensor has arrived!
I might get one of these to poke around with. Our programming team is talking crazy talk for autonomous, and I don't know that the drive train will have quite the precision they require to squeak in under 15 seconds.
Anyone tried this out on diamond plate? I bet more than my team has felt a twinge of failure with ultrasonics when moving from the lab to the field. |
Re: LIDAR Sensor has arrived!
Quote:
Quote:
|
Re: LIDAR Sensor has arrived!
Quote:
I tried using it something like this (don't have the exact code in front of me...): Where variables are declared:However, 0.0 is only ever printed out to the Riolog. (I also tried having the myLidar.start() and myLidar.stop() inside of teleopInit and disabledInit respectively. Thanks in advance, DavisC |
Re: LIDAR Sensor has arrived!
Quote:
|
Re: LIDAR Sensor has arrived!
Thanks, so I just use kMXP instead of kOnBoard and connect to the expansion port bottom left 2 pins for sda and scl?
|
Re: LIDAR Sensor has arrived!
Quote:
Correct. I still had my sensor power pins plugged into the I2C power and ground ports, which seem to work (for what it's worth). Also, if you execute myLidar.start(); in your init area or constructor, you can access myLidar.getDistance() in both autonomous and teleOp methods and allow it to run its own thread, which will help avoid bogging down the rest of your code (because the update() method includes delay timers up to ~10ms to write and read). |
Re: LIDAR Sensor has arrived!
Quote:
|
Re: LIDAR Sensor has arrived!
Quote:
|
Re: LIDAR Sensor has arrived!
Quote:
Using lidar.start() in the teleopInit and calling lidar.getDistance() in teleopPeriodic which is returning zero. Am I missing anything? Thanks! |
Re: LIDAR Sensor has arrived!
Quote:
I added an execution counter to the lidar class' update() method to ensure the code was properly executing (and output this counter to the SmartDashboard). Could you do this as well as a form of troubleshooting? |
Re: LIDAR Sensor has arrived!
Quote:
|
Re: LIDAR Sensor has arrived!
Quote:
https://decibel.ni.com/content/thread/26778 |
Re: LIDAR Sensor has arrived!
Can you try in C++ as well (either the accelerometer or the LIDAR). Java and C++ share a lot of code, and that might help pinpoint where the issue is.
|
Re: LIDAR Sensor has arrived!
Quote:
|
Re: LIDAR Sensor has arrived!
We picked up one of these... it seems very sensitive to glossy/reflective surfaces. Much more so than the lidar system we yanked from a Neato vacuum robot. Not sure what others are seeing. We haven't dived into the sample code yet beyond running it.
|
Re: LIDAR Sensor has arrived!
We have 2 of these and played with them today with LabVIEW. We have been unable to get them to work with the native I2C port on the roborio. However, we have them working just fine on the MXP expansion I2C with identical code. We've pinned them out, swapped the lasers themselves, and still have zero luck with the native port.
The native port DOES know the sensor is connected. We received read and read/write errors stating that the device is busy. This is different that the 'resource not found' error we get when the device is not plugged into to power or not plugged into the I2C. On the MxP I2C port we are reading then writing in alternating 20 ms loops. We lowered the timing of these loops incrementally until we started getting errors. At 10 ms polling we receive all zeros, at 15 ms we receive data, so 20 ms is where we are (50 hz). We average 5 loops in a moving average filter and the data looks very good. I know we can improve this by doing the write then checking for the ready bit, but this worked just as well and gave us a resolution we're happy with. Plus after 6 hours of banging our head against the native port we were already pretty frustrated. We have noticed that when the sensor was aiming at the ceiling and our flourescent lights we got highly inaccurate results. |
Re: LIDAR Sensor has arrived!
How would one program the LIDAR Sensor for use via DIO in Java?
|
Man I wanted one of these and I don't even have a reason...
Any cool uses for them I have a couple ideas but none of them are viable this year cause auto too short... |
Re: LIDAR Sensor has arrived!
Quote:
|
Re: LIDAR Sensor has arrived!
Quote:
I plan on eventually writing up a pwm based class due to the problems teams have had with this sensor and the onboard i2c port. |
Re: LIDAR Sensor has arrived!
Quote:
I wanted one of these period. I don't care if we use it. |
Re: LIDAR Sensor has arrived!
Quote:
Also, since it came into the discussion, our team is using Java and we have been able to successfully use our RoboRio I2C port for a MaxBotix ultrasonic sensor, but not for the LIDAR sensor. Trying to use the LIDAR gives us write and read errors. |
Re: LIDAR Sensor has arrived!
5 Attachment(s)
Hello all, a while ago our team posted that we were able to successfully collect data from the Lidar sensor using LabVIEW. Today I'm posting the code we're using to collect the data, as well as pictures of the placement of these VI's in the robot project. Feel free to use them as needed.
|
Re: LIDAR Sensor has arrived!
Quote:
The LIDAR-Lite appears to have a fixed slave address - 0xC4. LIDAR-Lite Spec Why would they not make it configurable? Seems like that would prevent one from being able to use multiple LIDAR-Lites on the same I2C bus. Maybe I'm missing something. The LIDAR's slave address must be configurable somehow. :confused: |
Re: LIDAR Sensor has arrived!
Quote:
|
Re: LIDAR Sensor has arrived!
Quote:
|
Re: LIDAR Sensor has arrived!
I'm having trouble getting this working via C++ -- created a separate post on the topic -- any thoughts?
http://www.chiefdelphi.com/forums/sh...d.php?t=134212 |
Re: LIDAR Sensor has arrived!
Here is what we did with java:
The big thing was we had to add a pull up resistor on the clock pin. http://www.chiefdelphi.com/forums/sh...ighlight=lidar Lennie |
| All times are GMT -5. The time now is 04:53. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi