-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LIDAR-Lite v3 pwm doesn't work #15336
Comments
Let me ping @mcsauder |
Could you try current master or PX4 v1.11 beta? Since v1.10 the pwm_input driver has been updated and the lidar lite PWM has been split out as a standalone driver (https://github.com/PX4/Firmware/tree/master/src/drivers/distance_sensor/ll40ls_pwm). |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
Still having the same issue with versions above 1.10.1 when using ll40ls with pwm |
This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there: https://discuss.px4.io/t/bug-lidar-lite-v3-pwm-errror-after-v1-10-1/37336/1 |
Can you try with v1.14? v1.10 is ancient. |
I already tried 1.14.0, it just seems that beginning from 1.10.2 there are some changes which lead to this issue. |
If you need any details to verify this issue, don't hesitate to ask 😄 |
Oh "above that version", sorry I understand you now. |
Yes I can still reproduce the error mentioned previously in this issue, also with newer versions of PX4. When running ll40ls_pwm status
ll40ls: read: 1941 events, 3301us elapsed, 1.70us avg, min 1us max 35us 2.027us rms
ll40ls: comms errors: 1940 events
ll40ls: resets: 0 events
ll40ls: zero resets: 1 events
poll interval: 50000 so the module is mainly throwing comm errors. When running the command ll40ls status
ll40ls: read: 3468 events, 93625us elapsed, 27.00us avg, min 20us max 232us 16.026us rms
ll40ls: comms errors: 533 events
ll40ls: resets: 0 events
ll40ls: zero resets: 0 events
poll interval: 50000 There are still some comm errors but a big part of the data gets through ... |
So after some tiral and error it seems that the wiring of the lidar was wrong. |
Oh, that's tricky. What changed in the wiring? |
So the wiring which apparently works with the old firmware versions was set up by someone in the past, who is not in reach anymore 😁 In the new wiring setup from the documentation, there is no shortening of two ports through a resistor (but only a resistor on one port): I'm sorry to provide only this bad picture but I do not have better pictures for instance, as the sensor is built in the plane and the cables are quite hidden. |
I spent a little bit of time trying to diagnose what was going wrong, trying to get this working on a pixhawk 1 2MB before I stumbled upon this treasure trove of information. I thought I might summarise my findings for all newbies like me working with px4.
|
Thanks @DARKMOONlite! And you got it working? In that case we can close the issue. |
@julianoes yes it is working perfectly, thank you and others that contributed to this thread. I would say its probably safe to close the issue. |
@julianoes @DARKMOONlite I tried your wiring on Pixhawk 6x and v1.15.2. However it does not work. Did you tried that wiring for latest version pixhawk? Also, I wonder how you figured it out. I wanted the However, |
Hey @Seung-W, I haven't tried it on a pixhawk 6 yet, however I have bought a very similar model I'll be testing in the new year, once I'm back from holiday. But based on what you've written it sounds like a power or wiring issue, how are you powering the px4? I found that if you just power it via the USB connection it doesn't actually power the pwm pins as the max of USB is ~1A when the pixhawk expects ~2.5A. You could also try using different pins, the enable pin is defined by the ll40ls_pwm.h file. |
Happy New Year @DARKMOONlite ! First of all, thank you for your reply. I checked and found that when I supply power to the POWER port, there is no voltage applied to the AUX port. So I made a separate wire from the battery and fed it to the AUX port separately, and the lidar works fine with the lidar wiring you provided. Thank you! |
This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there: https://discuss.px4.io/t/pixhawk-6c-mini-with-pwm-wiring-of-lite-lidar/44249/1 |
Describe the bug
Flight Controller : Pixhawk2.1
On master version :
LIDAR-Lite v3 pwm doesn't work.
Current Stable 1.10.1 version :
LIDAR-Lite v3 pwm works.
Parameter setting for master and stable version :
Wiring :
Expected behavior
LIDAR-Lite v3 pwm works.
Log Files and Screenshots

PWM works on Stable 1.10.1 version.
Below on Master version. PWM doesn't work.


The text was updated successfully, but these errors were encountered: