Micro Servo Motor

Micro Servo Motor

This guide will show you how to control the micro servo motor connected to your MOTION 2350 Pro.

The figure below shows the GPIO for each of the Servo Ports.

1. Open your editor software (for example Thonny). Select the code.py file in your drive.
2. Connect a micro servo motor to one of the servo ports. For example, a SG90 micro servo is connected to the GP0 port on MOTION 2350 Pro.

3. Copy and paste the following code to your editor.

4. Flash the codes to your MOTION 2350 Pro. And your CIRCUITPY drive should look like this:

Library file(s) required:
    adafruit_motor (file) : motor.mpy, servo.mpy, stepper.mpy

If you don't have this file in your computer, download the lib bundle here and search for this file inside the "lib" folder.

5. By connecting 4 servo motors to GP0, GP1, GP2 and GP3You may also try to flash this code to your MOTION 2350 Pro and observe what will happen to your MOTION 2350 Pro.

Hardware Components