Distributor

LidarLite working correctly? - SOLVED

Hi

I am trying to set up a LidarLite sensor from PulsedLight.

I set it up according to the wiki (new sensor, manufactured Feb 2015, interfaced with a Pixhawk)

http://copter.ardupilot.com/wiki/common-optional-hardware/common-rangefinder-landingpage/common-rangefinder-lidarlite/

In the wiki it points to the Flight Data Screen to test the sensor,

but I only get zero as reading in this window.

But if I check in the terminal,

I can see that the sensor is working (see attached file),

so is it working ok? Is the wiki wrong?

Thanks a lot,

Felix

Capture.JPG

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Distributor

    Hi

    this is the answer from PulsedLight:

    You’ve contacted PulsedLight Inc’s LIDAR-Lite help. PulsedLight was recently acquired by Garmin International and is working to transfer engineering and production to Garmin.

     
    LIDAR-Lite will be in production again.  Please check our website for updates.
  • Best I know, they unfortunately stopped production. It's not clear if Lidar Lite as a product will fit into Garmin's line-up, or if the technology will be integrated into other devices.

  • I was hoping some of you might have more information about what is happening with the Lidar-Lite products?

    LIDAR-Lite v2 has been marked EOL.

    They were bought by Garmin recently: Garmin® Completes Acquisition of PulsedLight®

    Is there any information available about the status of their current and future UAV products?

    Thank you,

    LIDAR-Lite v2
    This is the LIDAR-Lite v2, a compact high performance optical distance measurement sensor from PulsedLight. The LIDAR-Lite "Blue Label" is ideal when…
    • Robot shop was showing V2 as back ordered, still I went ahead and ordered it hoping to get it when it is back in stock. This was quiet a while back. However few days back I received a mail from robot shop stating that V2 is no more in production and garmin is working on V3 which will be available soon.

  • @ Felix and others:

    I'm using a Lidar-Lite v2 connected via I2C, and I'm trying to make sense of the readings. It seems to me that there is a scaling being applied. I'm seeing similar readings in Copter 3.3 as well as 3.4-dev

    Ruler (cm) Lidar (meters?) Lidar to cm (/100) Difference Scaling?
    30 1.12 112 82 3.7333333333
    60 2.3 230 170 3.8333333333
    90 3.15 315 225 3.5
    120 4.17 417 297 3.475
    150 5.18 518 368 3.4533333333
    180 6.23 623 443 3.4611111111
    215 7.35 735 520 3.4186046512

    The data certainly doesn't correlate well to the accurate, linear results Felix showed in his testing.

    RNGFND_TYPE: 4

    RNGFND_OFFSET: 0

    RNGFND_FUNCTION: 0 / Linear (only required for analog I believe)

    RNGFND_RMETRIC: 0 (only required for analog)

    RNGFND_SCALING: 1 ((only required for analog)

    Any idea what's going on here? I'm going to continue testing, as well as try PWM shortly.  Thanks!

    • Thanks for the details Stephan, 

      I've just rewired my Lidar Lite to connect via PWM. Here's where things get baffling:

      sonarvoltage reads what appears to be proper voltage levels to distance: IE: 0.80 v for 80cm. This looks great - however:

      sonarrange for that value is reading 2.52. You would think I've got RNGFND_SCALING set to a value other than "1", but it's set correctly. Just as with i2c, there's some sort of scaling factor being applied - but I don't know what or where. I'm currently testing this on the Copter 3.3 release and have just reset default parameters and only set up the necessary Lidar params. 

      I can set RNGFND_SCALING to somewhere around 0.33 and get more approximate values for closer distances , but the scaling factor doesn't seem totally linear.

      I don't have a second Lidar, but I do have a second copter I will test this with to rule out something strange with this Pixhawk.

      • So I've connected this Lidar to another copter I have, currently running 3.4-dev. Using PWM, I see sonarvoltage and sonarrange both correlate well to actual distances.

        So it seems the problem resides with my original Pixhawk, on a 3DR Iris+. I can't think what would cause the unusual scaling issue, especially over both i2c and PWM, and different versions of firmware with parameters restored to defaults before configuring.

        I'll leave this here, just in case anyone else experiences this bizarre issue.

        • Problem Solved:

          After considering the strange Lidar readings I was getting, even in PWM where sonnarrange did not match sonarvoltage were not from the following:

          • Bad Lidar-Lite (Works fine on other copter)
          • Bad Params (reset to defaults)
          • Bad Firmware (Tried different builds of 3.3 and 3.4)
          • Bad I2C/PWM (Same values on both)
          • Bad 5V supply (tested okay)

          The issue was some sort of non-editable parameter and/or corruption in the Pixhawk's EEPROM.

          To Resolve the issue:

          I installed the firmware for APM:Plane, then reinstalled APM:Copter. By changing the vehicle type, the Pixhawk resets it's EEPROM.

          Then I reloaded my parameters back in, and using PWM, my sonarrange and sonarvoltage values correlate now.

          Definitely a weird one - I'll remember this fix for any other explainable issues. 

          • And just like that, I'm having the problem again. This time on the new copter using PWM (where data initially looked good on first boot).

            Pretty dumb-founded on this one. I also switched to APM:Plane, where I'm seeing the same issue.

        • Distributor

          how do you supply the 5V to the Lidar sensor?
          Can you maybe double check that the power supply is ok?

This reply was deleted.

Activity

DIY Drones via Twitter
Using ArduRover with an RTK GPS https://ift.tt/2N9I3RO
Tuesday
DIY Drones via Twitter
Monday
DIY Robocars via Twitter
Monday
DIY Robocars via Twitter
Friday
DIY Robocars via Twitter
Friday
DIY Drones via Twitter
Jan 14
DIY Robocars via Twitter
RT @Heavy02011: @diyrobocars : A Home-brew computer club* for Connected Autonomous Driving on Jan 23rd, 2021 https://www.meetup.com/Connected-Autonomous-Driving/events/275728684/ #Meetu…
Jan 14
DIY Robocars via Twitter
Jan 14
David Hori liked Isabella Domi's profile
Jan 12
DIY Robocars via Twitter
RT @Heavy02011: ⁦@diyrobocars⁩ Autonomous Driving Assembly at #rC3. join us at https://rc3.world/rc3/assembly/diyrobocars-f1tenth/ ⁦@f1tenth⁩ ⁦@DAVGtech⁩ ⁦@DWalmroth⁩…
Jan 11
DIY Robocars via Twitter
RT @chr1sa: New car designs coming for our next @DIYRobocars @donkey_car virtual race on the 23rd. Choose any one you want at race time Le…
Jan 11
DIY Robocars via Twitter
RT @RoboticMasters: Thanks to @EllerbachMaxime and the Sydney Uni Capstone Students the @donkey_car @diyrobocars simulator is getting a ma…
Jan 11
DIY Robocars via Twitter
Jan 6
DIY Robocars via Twitter
Dec 28, 2020
DIY Robocars via Twitter
An interesting line-following simulator to use with with your robocars: https://github.com/ron-grant/LFS
Dec 23, 2020
DIY Robocars via Twitter
Dec 23, 2020
More…