Tag: smart home Python

1 articles found.

Raspberry Pi 5 Home Automation with Relays - Proteus Simulation

Raspberry Pi 5 Home Automation with Relays - Proteus Simulation: the Raspberry Pi 5, the 4-channel relay, the lamps, the fan and the wall switches

Hello friends, I hope you all are doing great. Today, I am going to share the Raspberry Pi 5 Home Automation with Relays - Proteus Simulation, project 102 of our IoT Projects series. Raspberry Pi home automation is one of the most popular projects there is: switch the lights and the fan from your phone. Here is a complete one with the circuit, the Python code and a Proteus simulation, and with the part most tutorials skip: the normal switches on the wall keep working too. A Raspberry Pi 5 drives a 4-channel relay module for four loads of a small house: the living room light, the bedroom light, the ceiling fan and the porch light. Each load can be switched from a web dashboard on a laptop or a phone, and from its own rocker switch on the wall. The wall switches work as two-way switches: every flip changes the light, no matter what the web did before, so nobody in the house is ever locked out by the automation. On top of that the fan has a sleep timer, the porch light follows a schedule, and the Pi keeps count of how long each load ran and the energy it used. In this tutorial, we will go through the circuit, how a relay module switches a load, how the wall switches are read with pull-ups and interrupts, the two-way switching logic, the timer and the schedule, and the Python code. Then we live through an evening in the simulation. At the end, you can download the project with the program and every library file. NOTICE: Our team has put a lot of effort into this project: the ...