Ewan the Dream Sheep controlled by Raspberry Pi relay board.
When my son stirs, the sounds from Ewan help him go back to sleep. However, going into the room to start it wakes him up. I wanted a way to start Ewan without entering the room, so I created a simple Flask app, running on a Raspberry Pi, which uses a relay board to simulate pressing the buttons.
- Rapsberry Pi 2
- USB wifi adapter
- Relay board
- Electronics from a Ewan, sourced second hand from Ebay
I attached the relay board to the Raspberry Pi, then cut the button off of the desired sound and connected it to one of the relays.
pip install -r requirements.txt
FLASK_APP=app.py flask run
- Open http://localhost:5000