1. Home
  2. Docs
  3. New sna41 Arduino PS2 motor drive expansion board manual
  4. Step 5: Explain the software code
  5. 3, steering gear control (Servo)

3, steering gear control (Servo)

The servo control of the drive board is realized by the PWM dedicated chip PCA9685, and the corresponding numbers are 0, 1, 14, and 15, respectively. Since the common steering gear on the market usually only supports 50Hz signals, the frequency of pwm.setPWMFreq(50) is controlled at around 50. Please refer to the sample code for specific applications.

Note: The power of the on-board voltage regulator chip is very small. Please remove the red jumper cap from multiple servos, and then use the 5V power supply to supply power independently through the “rudder auxiliary power supply” interface.

 

There are two sensor interfaces in the upper right corner of the drive board, which can be inserted into the three-wire sensor or the servo. This interface is directly connected to the Arduino D5, D6 pins.

Was this article helpful to you? Yes No

Leave A Comment