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 image Asim Arif  ( 2015-11-18 20:13:38 -0500 )edit

Hi! Were you able to find answer? I'm currently having the same issue. Thanks!

KennyxD gravatar image KennyxD  ( 2020-11-11 20:41:40 -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

Comments

1

Hello, is this pkg applicable to RPLIDAR A1M8?

pans7 gravatar image pans7  ( 2020-03-04 10:00:58 -0500 )edit

I would also like to know if we can simply add this to RPLidar A1 launch files as well. Thank you.

KennyxD gravatar image KennyxD  ( 2020-10-31 18:56:41 -0500 )edit

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: 3,139 times

Last updated: May 21 '18