Skip to content
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

How to make lidar stop scanning #10

Open
altineller opened this issue Aug 4, 2023 · 2 comments
Open

How to make lidar stop scanning #10

altineller opened this issue Aug 4, 2023 · 2 comments

Comments

@altineller
Copy link

Hello,

Is there a command I can send to the lidar to make it stop scanning, and still accept serial commands, and then start scanning again?

Can there be a hardware solution?

Best Regards,
C.A.

@alcor55
Copy link

alcor55 commented Oct 20, 2023

My case, LD06 lidar. The sensor doesn't have an RX serial pin, so you can't send serial commands. It has a PWM in (pin 2). In theory, if you send a 3.3v PWM signal by the RPi GPIO18 pin, with a duty cycle of 46-54% and frequency 20-50khz, you can drive the sensor motor (start/stop/custom velocity). Though I'm trying it, the lidar ignores completely the PWM signal. I think I should add a mosfet in order to cut off the 5v Vin.

@altineller
Copy link
Author

altineller commented Oct 28, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants