#raspberry-pi #framework #iot #reader

syact

A library to control motors (mainly stepper motors) and components, read data from sensors and more

2 releases

new 0.12.1-alpha May 6, 2024
0.12.0 Jul 3, 2023

#66 in Robotics

Download history 7/week @ 2024-02-22 7/week @ 2024-02-29 2/week @ 2024-03-07 3/week @ 2024-03-14 9/week @ 2024-03-28 12/week @ 2024-04-04 4/week @ 2024-04-11 71/week @ 2024-05-02

75 downloads per month
Used in sybot

Custom license

160KB
2.5K SLoC

syact

Rust Crates.io version syact: rustc 1.68+

Note

Many aspects of the library (for example the documentation) are not fully finished yet! (Though I try to update it as frequent as possible)

A library for all types of components used in robots, including controlls for stepper motors, servo motors and more complex assemblies using said motors. Currently all implementations are made for the raspberry pi, though new implementations for more controllers are currently being made.

Goal

  • Create an all-in-one library to control motors, read sensors and do basic calculations in rust.
  • Keep it as easy to use as possible
  • Specialize the library for hobbyists and tinkerers
  • Offer options for static aswell as dynamic typings

In Action

Let us assume we want to control a simple stepper motor (in this example a 17HE15_1504_S) with a PWM controller connected to the BCM pins 27 and 19 (e.g. on a raspberry).

TODO: NEW EXAMPLE

Features

  • Motors
    • Stepper motors
      • Absolute/relative movements
      • Continuous movements
      • Microstepping
        • Preconfigured
        • With signals to be set by the controller
      • Inverting logical signals if desired
    • Servo motors
    • DC motors
  • Components
    • LinearAxis
    • Gear joint
    • LinearAxis-triangle
    • Conveyor
    • DC-Motor
  • Calculation
    • Stepper motor curves
      • Low resolution
      • High resolution
    • Paths
      • Point-To-Point
      • Linear
    • Overloads
    • Forces
    • Inertias
  • Measurements
    • Simple switch
    • Rotary resolver
    • Trait for custom measurements

Issues and requests

If you encounter any issues or if you have any request for new features, feel free to create an issue at the GitHub repo.

Dependencies

~4–12MB
~162K SLoC