Turn-key PCB assembly services in prototype quantities or low-volume to mid-volume production runs

Controlling lamp over Internet using Raspberry Pi

Raspberry is a great small computer that allows us easy control and internet access with just few lines of code. Jack wrote a pretty simple project where he switches objects from anywhere in the world. For his implementation he uses a remotely controlled outlet where his lamp is plugged. So he hooks Raspberry Pi to remote control by using standard 2N2222A transistors as switches.


The rest is done within Raspberry Pi software. First of all he made a simple web template for turning ON and OFF. Then he set a web-server using Flask – a web development framework based on Python. It turned out pretty simple and effective solution. He set control page as home page on his Android device so he could instantly access and turn ON and OFF device.

[..Source link..]

Bookmark the permalink.

Comments are closed.