Kitronik Simply Servo board for Raspberry Pi Pico allows for up to 8 servos to be controlled simultaneously
Project description
Kitronik-Pico-Simply-Servos-MicroPython
A MicroPython class and example code to use the Kitronik Simply Servos board for Raspberry Pi Pico. (www.kitronik.co.uk/5339)
To use save SimpyServos.py file onto the Pico so it can be imported.
Import SimplyServos.py and construct an instance:
import SimplyServos
board = SimplyServos.KitronikSimplyServos()
This will initialise the PIO and set them to drive the servo pins.
Drive a Servo by degrees:
board.goToPosition(servo, degrees)
where:
- servo => 1 to 8
- degrees => 0-180
Drive a Servo by pulse width:
board.goToPeriod(servo, period)
where:
- servo => 1 to 8
- period => 500 - 2500 period is the pulse width in microseconds
This code is designed to be used as a module. See: https://kitronik.co.uk/blogs/resources/modules-micro-python-and-the-raspberry-pi-pico for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file KitronikPicoSimplyServos-1.0.1.tar.gz.
File metadata
- Download URL: KitronikPicoSimplyServos-1.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
545e25225189d59c7ba642e709851f91b18ced8150d4db1c522c051a0faf5e50
|
|
| MD5 |
bb7ae77e05cd9d27fbce29a13e2215c7
|
|
| BLAKE2b-256 |
7959bbd9aaf0a1d7c170fbe609e71fa43a5594e22cd28fe5bee235169562fbc3
|
File details
Details for the file KitronikPicoSimplyServos-1.0.1-py3-none-any.whl.
File metadata
- Download URL: KitronikPicoSimplyServos-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7b4428023905ecd1d8dea703994b3f77f43c3d3ed44a1374c9310c6189f669d
|
|
| MD5 |
40e682490d6573e55d0ffd747f37e943
|
|
| BLAKE2b-256 |
9b42d5cf5110764f4c434efe1678f023af3dd28fc6d0a0ed63020fbb54383c47
|