Skip to main content

Posts

Showing posts with the label IRF540N

Smart home with Raspberry PI

My first home automation system was based on Arduino and Raspberry PI . All the relays I wanted to control, the switches from which I received signals and temperature sensors that I used, were connected to the arduino mega with ethernet shield. Arduino was responsible for storing the states of individual devices. I had the MQTT server installed on Raspberry PI. Arduino sent all signals to the MQTT  they were downloaded by OpenHAB and made available to the user via a web GUI or a mobile application.  In addition, OpenHab could send user commands to MQTT. Arduino read messages from MQTT queue and updated the status of home appliances. The solution had one basic advantage: it worked :) However, there were a few problems that I mentioned in previous posts. These included: - complicated architecture - in case of problems there were many places to verify. - problems with power failures - arduino with ethernet shield has problems with proper boot after power outage. The system c

Raspberry PI and additional GPIO pins on several mcp23017 chips and a transistor switch

Some time ago I came to the conclusion that the home automation control system I made before was too complicated. I've been using a Raspberry PI + arduino + ethernet shield + additional connector board.  Arduino together with ethernet shield sometimes causes problems, especially after power outages. It has problems with restarting and requires manual restart. So this was the element I wanted to get rid of. It seems that the raspberry PI itself should definitely be enough. The only limitation is the number of GPIO pins and current efficiency. To avoid that problem I have already started designing the PCB which, when connected to raspberry, will provide us with additional pins and the ability use more power consumng devices. The easiest way to gain additional pins is to use the mcp23017 chip. It uses I2C bus to connect to the raspberry PI. Each chip will provide us with 16 additional pins. The chips can be connected together in chain, so you can have even more pins. I calculated t