Control Raspberry Pi LEDs from Web and Mobile
In this post, I’ll demonstrate controlling couple of LEDs connected to Raspberry Pi GPIO from Web. LEDs could be replaced with any devices so its a kind of basic IoT project too, so this core design can be extended to any scale and many devices can be controlled simultaneously. Programming is done in Python and for web interface I have used bottle framework.
Hardware Requirements
1 x Raspberry Pi
1 x Red LED
1 x Yellow LED
2 x Resistors (330 ohm)
1 x Breadboard
Few male-male Jumper wires (if used GPIO extensions)
Software Requirements
Python
RPi GPIO Library
Bottle Python Web Framework
To install bottle, run following command
pip install bottle
Below figure shows connections
Connections
Red LED is connected to GPIO18 thru 330ohm resistor and Yellow LED is connected to GPIO23
Remote control on Mobile would look like below
Source code is available on GitHub Raspberry Pi LEDs through Web
Right here is the right webpage for anybody who hopes to understand this topic. You realize a whole lot its almost hard to argue with you (not that I personally will need to HaHa). You definitely put a fresh spin on a subject that has been written about for years. Wonderful stuff, just great!
Very soon this web page will be famous among all blogging users, due to its pleasant articles or reviews