This project demonstrates the use of Raspberry Pi as an IoT device. We control the turning ON/OFF of LEDs using a webpage that can be accessed from any device over the same network onto which Raspberry Pi is connected. The concepts of this project can be used to further implement various home automation projects.
2. Demonstration>> Make the connections as shown in circuit schematics.
>> In raspberry pi, create a new folder named "Web Server" (or as per your choice). Inside the folder create another folder named "Templates" (the name should be Templates otherwise the webpage won't open during execution).
>> Create the python file and save it in the Web Server folder.
>> Create the HTML file and save it in the Templates folder.
>> In the python program, mention your respective IP address assigned to your raspberry pi. This can be found by opening the command prompt and write "ifconfig" and press enter. A list of connections will be shown and see the IP mentioned under "lan" (for LAN connection) or "wlan" (for WiFi connection).
>> First run the python program on Raspberry Pi, then enter the IP address in your web browser to access the web page.
Comments