servo-like-arduino
Arduino-style servo control for Python using PyFirmata2.
Installation
pip install pyfirmata2
pip install servo-like-arduino
Arduino Setup
Upload StandardFirmata to your Arduino:
File → Examples → Firmata → StandardFirmata
Quick Start
from servo_like_arduino import *
Board('/dev/ttyUSB0')
servo = Servo()
servo.attach(9)
servo.write(90)
Smooth Movement
servo.move_smooth(180)
Sweep
servo.sweep(
start=0,
end=180,
step=1,
delay_ms=15
)
Features
- Arduino-style syntax
- Servo control
- Smooth movement
- Sweep functionality
- delay()
- millis()
- Built on PyFirmata2
Metadata
Release files for servo-like-arduino 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| servo_like_arduino-0.2.0.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| servo_like_arduino-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / servo_like_arduino-0.2.0.tar.gz
| Download URL | servo_like_arduino-0.2.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86898ef7c96a57f7a05781ce9b8f60985e22112cccad0ab2473440cda577569b
|
|
BLAKE2b-256 checksum How to use checksums |
4fe512fc8b5f28601d7ab9c397cbffba8f368276ccca735a777452050efe4f1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / servo_like_arduino-0.2.0-py3-none-any.whl
| Download URL | servo_like_arduino-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a86b3b22bf56c3c75830ad85cb383ae198014e00009ce21ca24ef5caa8e9528
|
|
BLAKE2b-256 checksum How to use checksums |
0608a4e6c34e4de7f0782f3427e22bd1f0bad617e905d3af692801f2c20dad66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|