CONRAD Raspberry Pi Pico Servo Driver Board Instruction Manual

June 12, 2024
CONRAD

CONRAD Raspberry Pi Pico Servo Driver Board

The Raspberry Pi Pico Servo Driver Board is a module that allows you to control servos using the Raspberry Pi Pico microcontroller. It provides convenient connections for servo motors and can be easily programmed using the Raspberry Pi terminal.

Description
It is a servo control expansion board for Raspberry Pi Pico

Features

On-board Raspberry Pi Pico interface for Raspberry Pi Pico series boards supports up to 16-channel servo or PWM outputs. And each channel support 16-bit resolution On-board 5V voltage regulator chip. The output current is up to 3A.
It can be connected to on-board servo on the battery power supply board through the VIN terminal, and interface with common servos such as SG90, MG90S, MG996R for Pico for easy expansion. A complete supporting information manual is provided(example programs such as Raspberry Pi Pico C/C++ and MicroPython)

Product parameters

  • Working voltage 5V(Pico) or 6~12V(VIN terminal)
  • Servo voltage 5V
  • Logic voltage 3.3V
  • Control interface GPIO Via diameter 3.0mm
  • Product size 65 × 56mm

Pins

CONRAD-Raspberry-Pi-Pico-Servo-Driver-Board- \(1\)

Wire up
Don’t connect the Pico reversely Observe an end with silk prints on the module and an end of USB port to determine connection direction. You can also depend on signals of pins and pins of Pico to determine connection direction.

Programming download
Download via Raspberry Pi, open the Raspberry Pi terminal:And sudo apt-get install p7zip-full cd ~ sudo wget https://www.waveshare.net/w/upload/3/31/Pico_Servo_Driver_Code.7z7z Pico_Servo_Driver_Code.7z -o./Pico_Servo_Driver_Code.7zcd ~/Pico_Servo_Driver_Code

Click the example program to download directly

Use C via Raspberry Pi

We use the Raspberry Pi. Because cnmake has multiple platforms and can be moved, you can compile on the PC.

Compile under the C directory cd ~/Pico_Servo_Driver_Code/c/

Create and enter build directory in the folder and add SDK.
../../pico-sdk is the directory of the SDK. The example program has build, jsut enter it. cd build export PICO_SDK_PATH=../../pico-sdk
( Note: write the correct pass of your own SDK) Implement cmake and generate into Makefile files

  • cmake ..
    Implement make and generate implement files,the first compile will take a while.

  • make -j9

After compiling, the uf2 file will be generated.
Press a key of the Pico board,connect the pico board to the Raspberry Pi via a

USB cable and release the key.
Then Raspberry Pi will recognize a drive( RPI-RP2), copy the main.uf2 from the build folder to the drive(RPI-RP2).
cp main.uf2 /media/pi/RPI-RP2/

Python

  1. Update the firmware of Micropython,copy the pico_micropython_xxxxx.uf2 file to the pico.
  2. Open Thonny IDE on the Raspberry Pi(click Raspberry Pi-> Programming -> Thonny Python IDE), you can check the version information: Help->About Thonny

Make sure this version contain Pico support package, and click Tools -> Options… -> Interpreter, then select MicroPython(Raspberry Pi Pico and the ttyACM0 port
As shown below;CONRAD-Raspberry-Pi-Pico-Servo-Driver-Board-
\(2\)

Pico-lcd-0.96-img-config2.png
If the Thonny doesn’t have the pico support package, enter the following comender to update Thonny IDE sudo apt upgrade thonny

Click File->Open…->python/Pico_Servo_Driver_Code/python/servo.py then program the script
The servo will rotate from 0° to 180°when connected, repeat three times.

Windows

  • Open C folderCONRAD-Raspberry-Pi-Pico-Servo-Driver-Board- \(3\)
  • Open with the Vs coed and select the compiling tool,CONRAD-Raspberry-Pi-Pico-Servo-Driver-Board- \(4\)
  • Click compileCONRAD-Raspberry-Pi-Pico-Servo-Driver-Board- \(5\)
  1. Press the Reset button on the Pico-Eval-Board to reset the Pico, first press the BOOTSEL button then press the RUN button and release the Reset button. The Pico will enter the disk mode directly.
  2. Drag the UF2 file under the build file and drop to the RPI-RP2 drive letterCONRAD-Raspberry-Pi-Pico-Servo-Driver-Board- \(6\)
  3. Pico starts running the corresponding program

Code explanation
Hardware interfaces Since hardware platforms and inner structure are different, you can check in the corresponding directories
You can check definitions in DEV_Config.c(.h), under the directory: …\c\lib\Config

Date type:

CONRAD-Raspberry-Pi-Pico-Servo-Driver-Board- \(7\)

python
Windows environment
Press and hold the BOOTSET button on the Pico board, connect the pico to the USB port of the computer through the Micro USB cable, and release the button after the computer recognizes a removable hard disk (RPI-RP2). Download the pico_micropython_xxxxx.uf2, then copy it to the drive(RPI-RP2). Open Thonny IDE(note: use the latest Thonny, otherwise, the Pico support package is not included. The latest version under Windows is v3.3.3 Click tool->setting->interpreter, then select the corresponding port of Pico CONRAD-Raspberry-Pi-Pico-Servo-Driver-Board- \(9\)

Click file->open->servo.py and click run
The following picture indicates that the program has run.CONRAD-Raspberry-
Pi-Pico-Servo-Driver-Board- \(10\)

The experiment result is as same as the program C

Read User Manual Online (PDF format)

Read User Manual Online (PDF format)  >>

Download This Manual (PDF format)

Download this manual  >>

Related Manuals