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.0.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.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for KitronikPicoSimplyServos-1.0.0.tar.gz
Algorithm Hash digest
SHA256 971f5c34255c44669fd79120e84f533990c58827b918a465d6fabba216ca25f8
MD5 82204f725f8220ca732aec24578e0383
BLAKE2b-256 bca216ce8a39c5c81231dac9854e0080e91ea7152392174211c277593d5458ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for KitronikPicoSimplyServos-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b58bfced5b2cd38f625279b32a377bfbe8e7fce75537838209bef30808e1bb4
MD5 17e699edf3a68dfbd208f056928eed5b
BLAKE2b-256 a41634a23317f3f61628601ac55e853506f3324b3ee71b1f4172ddb6d142a2e2

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