https://github.com/gavinlyonsrepo/stepper_motor_control_pico
Library to control Stepper Motors , Raspberry pi PICO SDK C++
https://github.com/gavinlyonsrepo/stepper_motor_control_pico
28byj-48 cplusplus l298n l298n-h-bridge mx1508 pico pico-sdk raspberry-pi rpi-pico stepper stepper-driver stepper-library stepper-motor stepper-motor-control stepper-motor-driver tb6612fng uln2003
Last synced: 15 days ago
JSON representation
Library to control Stepper Motors , Raspberry pi PICO SDK C++
- Host: GitHub
- URL: https://github.com/gavinlyonsrepo/stepper_motor_control_pico
- Owner: gavinlyonsrepo
- License: gpl-3.0
- Created: 2025-02-06T20:43:26.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-18T11:21:29.000Z (2 months ago)
- Last Synced: 2025-04-09T22:07:09.498Z (15 days ago)
- Topics: 28byj-48, cplusplus, l298n, l298n-h-bridge, mx1508, pico, pico-sdk, raspberry-pi, rpi-pico, stepper, stepper-driver, stepper-library, stepper-motor, stepper-motor-control, stepper-motor-driver, tb6612fng, uln2003
- Language: C++
- Homepage:
- Size: 101 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://gavinlyonsrepo.github.io/) [](https://www.paypal.com/paypalme/whitelight976)
# Stepper_Motor_Control_PICO
## Overview
* Title: Stepper Motor Control PICO
* Description:A Raspberry pi Pico SDK C++ library to drive stepper motors controllers.
The components supported are some of the most widely used by the electronic hobbyist community.
This is a partial port of my 'rpiMotorLib' a python raspberry pi library.
Not all components supported yet.* URL to 'rpiMotorLib': [URL LINK](https://github.com/gavinlyonsrepo/RpiMotorLib)
* Toolchain
1. Raspberry pi PICO RP2040
2. SDK C++, compiler G++ for arm-none-eabi
3. CMAKE , VScode## Supported Components
Note: the help file links below are to the aforementioned raspberry pi python port.
The theory of operation, hardware setup and much of the software API is the same. There is an example file for each motor in examples folder. To build the one you want, edit the CMakeLists.txt file add_executable(${PROJECT_NAME} section,
comment in one example file path and one only.
Code is commented for Doxygen API generation.
Code for an optional push button to ground is included in the example files, this push button can be used as a stop on motor movement.### Stepper motors
| Motor tested | Motor controller| example file |Help File URL |
| ----- | ----- | ----- | ---- |
|Unipolar 28BYJ-48| ULN2003 driver module| BYJ_48|[Link](https://github.com/gavinlyonsrepo/RpiMotorLib/blob/master/extra/Documentation/28BYJ.md)|
|Bipolar Nema| TB6612FNG Dual Driver Carrier| TB6612FNG_NEMA |[Link](https://github.com/gavinlyonsrepo/RpiMotorLib/blob/master/extra/Documentation/Nema11TB6612FNG.md) |
|Bipolar Nema| L298N H-Bridge controller module| L298N_NEMA|[Link](https://github.com/gavinlyonsrepo/RpiMotorLib/blob/master/extra/Documentation/Nema11L298N.md) |
|Bipolar Nema| MX1508 Motor controller module| MX1508_NEMA|[Link](https://github.com/gavinlyonsrepo/RpiMotorLib/blob/master/extra/Documentation/Nema11MX150X.md) |
|Bipolar Nema| A4988 Motor controller module| A4988_NEMA|[Link](https://github.com/gavinlyonsrepo/RpiMotorLib/blob/master/extra/Documentation/Nema11A4988.md) |
|Bipolar Nema| DRV8825 Motor controller module| DRV8825_NEMA|[Link](https://github.com/gavinlyonsrepo/RpiMotorLib/blob/master/extra/Documentation/Nema11DRV8825.md) |
|Bipolar Nema| LV8729Motor controller module| LV8729_NEMA|[Link](https://github.com/gavinlyonsrepo/RpiMotorLib/blob/master/extra/Documentation/Nema11LV8729.md) |
|Bipolar Nema| A3967 Easy Driver| A3967_NEMA|[Link](https://github.com/gavinlyonsrepo/RpiMotorLib/blob/master/extra/Documentation/Nema11A3967Easy.md)|## Output
If verbose output is enabled. Data reports and any errors are sent to console at 38400 baud via USB.
