Tag Archives: Servo

Control Raspberry Pi Pico PIO State Machines in a Micropython Class

In this video lesson we show how you can control a PIO State Machine on the Raspberry Pi Pico W inside of a micropython class. We demonstrate with the practical example of controlling servos with a servo Class which we create. The objective is to ‘hide’ all the complex code in the class, allowing less adept users to interact with the servo with simple python commands. For your convenience the code developed in this video is included below. Enjoy!

 

Sweeping Servo Position Using the PIO State Machine on the Raspberry Pi Pico PIO State Machine

 

In this video lesson we show how you can use the Raspberry Pi Pico PIO State Machine to sweep a servo through its full range of motion. The video will take you through things step-by-step. For your convenience the code developed in the video is included below. Enjoy!

 

Control Servo Position Using a Raspberry Pi Pico PIO State Machine

 

In this video tutorial we show you how you can use a Raspberry Pi Pico PIO Statemachine to control the position of a servo. For your convenience, the code from this lesson is presented below. Enjoy!

 

MicroPython MultiCore Programming on the Raspberry Pi Pico Using Threading

In this video I show how to use both cores on the Raspberry Pi Pico W. We will explore an example using threading where we will operate 2 LED and a servo.

 

Servo Library for the Raspberry Pi Pico W in MicroPython

In this lesson we demonstrate how to create a custom library on the Raspberry Pi Pico W to control a servo. We create a servo class, and then show how to use it as a library in future programs.