16Connecting your Electronics to the Web
In this project you’ll create your own Internet of Things web server you can use to control a lamp remotely from your phone. The simple web server you’ll build can then be added to other projects so you can control other electronic appliances.
PARTS REQUIRED
Raspberry Pi
Relay module HL-52S
12 V lamp and holder
12 V power adapter
Male DC bar rel power jack
Plastic box enclosure
Jumper wires
SOFTWARE REQUIRED
Flask framework
In this project you’re going to create your own web server to control your electronics through a browser. You’ll control a 12 V lamp using a dynamic web page with buttons.
INTRODUCING ...
Get 20 Easy Raspberry Pi Projects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.