Ask Your Question
1

how to change the RPLIDAR frequency?

asked 2015-11-16 23:59:32 -0500

Asim Arif gravatar image

updated 2015-11-18 20:14:53 -0500

hi i want to know how to change the LIDAR's frequency from 5.5 Hz to say 10 Hz . I know that it involves changing the PWM singal to the motors to increase its scan rate but how do i do it ? like where is the setting in the source code ?

thanks in advance

edit retag flag offensive close merge delete

Comments

anyone please?

Asim Arif gravatar imageAsim Arif ( 2015-11-18 20:13:38 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-02-09 07:28:39 -0500

sobot gravatar image

Hello,

The current Serial Module of the rplidar is not capable of generating PWM signals itself, therefore there is not an option to tweak in the source code, etc. But you need to use an external source to generate and feed the control signal to the device, e.g. an Arduino board, if you wish to modify the LIDAR's frequency.

You can find the devices PIN information in Section 3 of the devkit_manual.

and here you can read about how to work with PWM in Arduino.

Hope it helps.

edit flag offensive delete link more
2

answered 2018-05-21 12:11:21 -0500

updated 2018-05-21 12:11:45 -0500

I have changed the RPLIDAR A2 driver to accept the PWM frequency as a parameter at:

https://github.com/davidbsp/rplidar_ros

In the launch file that you use to start the laser driver, just add:

<param name="motor_pwm" value="..."/>

to the "rplidar_ros" node. The value is 660 by default.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-11-16 23:59:32 -0500

Seen: 1,603 times

Last updated: May 21 '18