Servo With Raspberry Pi Pico

by caoow31 in Circuits > Raspberry Pi

377 Views, 3 Favorites, 0 Comments

Servo With Raspberry Pi Pico

Photo on BE 2566-8-8 at 5.03 PM.jpg

Learn how to turn and control a servo with the Raspberry Pi Pico!

Supplies

Photo on BE 2566-8-8 at 5.04 PM.jpg
Photo on BE 2566-8-8 at 5.04 PM #2.jpg
Photo on BE 2566-8-8 at 5.04 PM #3.jpg
Photo on BE 2566-8-8 at 5.05 PM.jpg

3 Jumper Wires

1 Micro Servo

1 Breadboard

1 Raspberry Pi Pico

Wiring the First Wire

Photo on BE 2566-8-8 at 5.07 PM.jpg

First, slide the first tip of the jumper wire into the middle of the servo's 3 wires and connect the other side to the first slot in front of the 3V3(OUT), which is also the 36th pin.

Wiring the Ground Wire

Photo on BE 2566-8-8 at 5.07 PM #2.jpg

Next, slide a second wire into the brown wire of the micro servo and slide the other end into the slot 1 hole away from the GND Pin of the Raspberry Pi Pico, which is also the 38th slot.

Wiring the Last Wire

Photo on BE 2566-8-8 at 5.08 PM.jpg

Then, slide the last wire into the last of the 3 wires in the servo, and jab the other end into the hole in front of GPIO Pin 15 on the Raspberry Pi Pico, which is also the 20th Pin.

Code

Screen Shot 2566-08-08 at 5.09.17 PM.png

Copy this code into your Thonny window and click play. See your servo run!