Python and Web Interface to model railway
Hardware:
- Raspberry Pi 3 - Model B (https://thepihut.com/products/raspberry-pi-3-model-b)
- SainSmart 16-Channel 12V Relay Module (https://www.amazon.co.uk/gp/product/B005WR747I/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1)
- Adafruit DC Stepper Motor HAT (https://www.amazon.co.uk/gp/product/B00WU4QA30/ref=oh_aui_detailpage_o03_s00?ie=UTF8&psc=1)
- JOYLAND AC 100-240V To DC 12V (https://www.amazon.co.uk/gp/product/B019845VRK/ref=oh_aui_detailpage_o04_s00?ie=UTF8&psc=1)
- Stepper motor - 200 steps/rev, 12V 350mA (https://www.amazon.co.uk/gp/product/B00EYIFW70/ref=oh_aui_detailpage_o09_s00?ie=UTF8&psc=1)
- MCP23017-E/SP I/O Expander (http://www.modmypi.com/electronics/integrated-circuits-ics/mcp23017-esp--io-expander/?search=MCP23017-E/SP%20I/O%20Expander)
Software:
- I2C needs to be enabled on the RPI (https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c)
- Adafruit GPIO library (https://github.com/adafruit/Adafruit_Python_GPIO)
- Adafruit MCP23XXX Instructions (https://learn.adafruit.com/mcp230xx-gpio-expander-on-the-raspberry-pi/overview)
- Adafruit Stepper Motor Instructions (https://learn.adafruit.com/adafruit-dc-and-stepper-motor-hat-for-raspberry-pi/powering-motors)
- GitPython (https://github.com/gitpython-developers/GitPython)
- Tornado Web Server (http://lowpowerlab.com/blog/2013/01/17/raspberrypi-websockets-with-python-tornado/)
Inspiration: