Hi,
I am using RPLidar A1. Your tutorial recommends using a separate power supply for the motor. The motor supply has 3 pins - GND
, VMOTO
and MOTOCTL
. VMOTO
is DC voltage between 5-10 V. MOTOCTL
is the PWM control signal for the motor. Here is a screenshot from the datasheet.
The PWM signal is generated by the circuit board provided by Slamtec (manufacturer of RPLidar).
However I noticed from your tutorial that you are using only 2 pins (RX/TX) from the board. See this:
Your block diagram also suggests 2 pins.
Initially I thought that if I don't connect the MOTOCTL
pin then maybe the motor will run at its default speed. However when I tried this the motor did not start. How are you generating the MOTOCTL
PWM?