Micro Servo Motor

This guide will show you how to control the micro servos connected to the Servo port of the Maker Uno RP2040 with Arduino programming language. The signal pins of the on-board Servo port are 14, 15,16, and 17. The voltage of the servos depends on the power supply voltage.

 

This dedicated servo port removes the need to use extra cables to connect the servo to the Uno board. Other than that, it also makes connecting more than 2 servos to an Uno board possible without the need for an external power supply. 

 

 

 

 

Note: Make sure you installed the Servo.h library in your Arduino IDE

  1. Connect a micro servo motor to one of the Servo ports. For example, you can connect a SG90 micro servo to the S1 port on Maker Uno RP2040

 

 

  1. Open the Arduino IDE and make sure the correct board and COM port are selected.

  2. Copy and paste the folowing code to your Arduino IDE. 

  3. Verify and Upload the sketch to your Maker Uno RP2040. The expected result is that servo motor will smoothly sweep from 0° to 180°, increasing by 1° every 10 milliseconds. After reaching 180°, it will reverse direction and move back to 0°, decreasing by 1° every 10 milliseconds.

Hardware Components

Maker Uno RP2040

S$18.00 S$18.00

x 1 unit(s)