Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

KitronikPicoSimplyServos-1.0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

KitronikPicoSimplyServos-1.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file KitronikPicoSimplyServos-1.0.1.tar.gz.

File metadata

File hashes

Hashes for KitronikPicoSimplyServos-1.0.1.tar.gz
Algorithm Hash digest
SHA256 545e25225189d59c7ba642e709851f91b18ced8150d4db1c522c051a0faf5e50
MD5 bb7ae77e05cd9d27fbce29a13e2215c7
BLAKE2b-256 7959bbd9aaf0a1d7c170fbe609e71fa43a5594e22cd28fe5bee235169562fbc3

See more details on using hashes here.

File details

Details for the file KitronikPicoSimplyServos-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for KitronikPicoSimplyServos-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f7b4428023905ecd1d8dea703994b3f77f43c3d3ed44a1374c9310c6189f669d
MD5 40e682490d6573e55d0ffd747f37e943
BLAKE2b-256 9b42d5cf5110764f4c434efe1678f023af3dd28fc6d0a0ed63020fbb54383c47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page