| Crates.io | sts3215 |
| lib.rs | sts3215 |
| version | 0.0.2 |
| created_at | 2025-12-28 12:33:25.407169+00 |
| updated_at | 2025-12-30 09:35:42.415387+00 |
| description | A no_std compatible library for controlling STS3215 serial servo motors with embedded-io support |
| homepage | https://github.com/flyaruu/sts3215 |
| repository | https://github.com/flyaruu/sts3215 |
| max_upload_size | |
| id | 2008745 |
| size | 64,439 |
This is a no-std capable library to use serial sts3215 servo's
It works alright on std for a 6 servo lerobot model. The monitor example uses a ratatui text view to monitor servo id's 1-6, this is pretty convenient to check if your setup of your servos id configuration etc is correct.
The lerobot builds a general 'Robot' struct which owns a SerialPort, a buffer and a number of servo's, which makes the whole thing easier to use, but it is still in development and I'm not 100% convinced it's adding much.
The comm module does the actual reading and writing to the serial port, it uses the embedded-io traits for no-std compatibility, and converts it into std Read/Write traits using the embedded-io-adapters crate.
For reference, check this document
Note: I haven't tried running it in no-std mode, it does compile on an esp32 project. head....id..ln.inst..1...2...3...4...5...6...7...8 [ff, ff, 01, 09, 03, 2a, 20, 03, e8, fd, 10, 27, 89]