https://github.com/j-jzk/opi-web-motor
A tool to control a stepper motor from a CD drive through a convenient web interface on the Orange Pi
https://github.com/j-jzk/opi-web-motor
cd-drive gpio orange-pi stepper-motor
Last synced: about 1 month ago
JSON representation
A tool to control a stepper motor from a CD drive through a convenient web interface on the Orange Pi
- Host: GitHub
- URL: https://github.com/j-jzk/opi-web-motor
- Owner: j-jzk
- License: bsd-3-clause
- Created: 2020-11-13T21:00:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-13T21:03:43.000Z (over 4 years ago)
- Last Synced: 2025-01-21T19:21:15.584Z (3 months ago)
- Topics: cd-drive, gpio, orange-pi, stepper-motor
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Web motor
A tool to control a CD drive stepper motor through a web interface.It was designed for Orange Pi PC, but it should also be usable on other single-board computers with some tinkering.
## How to use
Connect your motor controller according to the table.| Wire | WiringPi pin | BCM pin | "Physical" pin |
| ------------- | ------------ | ------- | -------------- |
| Coil A, end 1 | 25 | 20 | 37 |
| Coil A, end 2 | 24 | 10 | 35 |
| Coil B, end 1 | 23 | 9 | 33 |
| Coil B, end 2 | 22 | 8 | 31 |_Tab.: pin connections in different numbering systems_
Then clone the repository, navigate into it and run these commands:
```bash
sudo pip3 install flask OrangePi.GPIO
sudo flask run --host=0.0.0.0
```