willthomson / ewan-pi

Ewan the Dream Sheep controlled by Raspberry Pi relay board.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ewan-pi

Ewan the Dream Sheep controlled by Raspberry Pi relay board.

Photo of a Raspberry Pi with a relay board and the internals of a Ewan

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.

Hardware

  • 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.

Development

  1. pip install -r requirements.txt
  2. FLASK_APP=app.py flask run
  3. Open http://localhost:5000

About

Ewan the Dream Sheep controlled by Raspberry Pi relay board.


Languages

Language:HTML 46.9%Language:Python 45.6%Language:JavaScript 7.5%