https://github.com/markkvdb/curtainopener
Curtain controller using a Raspberry Pi.
https://github.com/markkvdb/curtainopener
curtains flask-application gpio raspberry-pi
Last synced: about 1 month ago
JSON representation
Curtain controller using a Raspberry Pi.
- Host: GitHub
- URL: https://github.com/markkvdb/curtainopener
- Owner: markkvdb
- Created: 2017-06-27T10:28:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-25T19:47:37.000Z (almost 9 years ago)
- Last Synced: 2025-01-26T10:45:48.749Z (over 1 year ago)
- Topics: curtains, flask-application, gpio, raspberry-pi
- Language: Python
- Homepage:
- Size: 1.97 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Curtain opener
## Info
Application to open or close your curtain using a webserver-based control for the stepper motor that's connected to a RPI 3.
## Installation
### Software
1. Clone repository to folder. Open it by running `cd curtainopener`.
2. Create virtual environment within the curtainopener folder, by running the command `virtualenv -p python3 venv`.
3. Activate virtual environment `source venv/bin/activate`.
4. Install requirements and setup: `pip install -e .`
5. Set-up database: `python initdb.py`
6. Run server: `python run.py`
If you want to start the server again after installing, first activate the virtual environment by running `source venv/bin/activate`.
### Hardware
1. Get the following parts:
- Stepper motor suitable of opening and closing your curtain(s)
- Stepper motor driver with the following inputs:
- Step
- Direction
- Enable
2. Connect GPIO pin 4 to the Direction (CW/CCW) pin of your stepper driver
3. Connect GPIO pin 17 to the Step pin of your stepper driver
4. Connect GPIO pin 22 to the Enable pin of your stepper driver
5. Be creative in making the mechanical part work, for example the stepper driving a small rope which is connected to the curtain, if possible using pulleys