Mandrel Control
Project Description
Mandrel Control is a web application solution designed for controlling servo motors using a Raspberry Pi.
Prerequisites
Hardware
- Servo motor
- Raspberry Pi (tested on RPi 3 & 4)
- External display with appropriate peripherals for input
Software
- Enable remote GPIO on your Raspberry Pi (refer to the documentation for a complete walkthrough).
How to Run
Hardware Setup
- Connect your servo’s PWM (usually orange) wire to the RPi’s GPIO pin 12 (change accordingly in
app.py
if different).
- Connect brown wire to GND and red wire to power.
- Set up an external display via HDMI.
Software Setup
- Clone the repository:
$ git clone https://github.com/jatanjay/mandrel.git
- Navigate to the Mandrel directory:
$ cd mandrel
- Install package requirements:
$ sudo apt-get install -r requirements.txt
- Run the application:
$ python3 app.py
Open up a web browser; the Flask app is served on localhost
or '0.0.0.0'
and port 8000
.
FAQ
Refer to the User Manual for detailed instructions.
repo
home