lilimike
Member
A long time ago, I was using Eagle to design my circuits. Then I moved to EasyEDA and then the Pro version but now I started working with Kicad 9 and so far so good. I figured I would make my next project on the later. I figured I would share and perhaps get some feedback. I didn't invent anything, just replicating readily available modules. I am not a pro at this, I am an IT consultant close to retirement and trying to keep busy.
The project
Version 1:
A simple D1-Mini ESP8266 connected to an LED and 2 reed switches. The switches are inside a pvc pipe and a magnet/foam float around the pipe triggers the switches as the water level goes up. The low switch indicate that water is going up. The second switch is just above the level where the pump should start. This device is configured under ESPHome, connected remotely at my son's house and via his Wifi it then connects to Wireguard VPN to my network where it reports to Home Assistant.
The down side is if the power goes out, so does the pump and the D1-Mini.
Version 2:
I replaved the D1-Mini with ESP32-S module and made it so that it is backed up with a battery. (note that his modem/wifi are on a UPS) Since my device have a battery it needs to keep the charge up so I am using the circuit from TP4056 with over charge/under voltage protection. Since my device will be plugged in all the time I added the P-chanel Mosfet to separate the load from the battery when plugged in as seen all over the net. Then I realised I needed to lower the voltage to 3.3 volts so at the end I figured I might as well create a full circuit with all the bits and pieces I could find on the Internet and make it a single PCB.
Version 3:
If all goes well with V2, V3 will integrate a miniature camera to look at the pit and possibly move this out of Home Assistant/ESPHome and create an APP for Android and Iphone.
But here is my circuit for version 2, I would appreciate some feedback, anything to prevent a fire... I'ld rather have a flood than a fire !
The project
Version 1:
A simple D1-Mini ESP8266 connected to an LED and 2 reed switches. The switches are inside a pvc pipe and a magnet/foam float around the pipe triggers the switches as the water level goes up. The low switch indicate that water is going up. The second switch is just above the level where the pump should start. This device is configured under ESPHome, connected remotely at my son's house and via his Wifi it then connects to Wireguard VPN to my network where it reports to Home Assistant.
The down side is if the power goes out, so does the pump and the D1-Mini.
Version 2:
I replaved the D1-Mini with ESP32-S module and made it so that it is backed up with a battery. (note that his modem/wifi are on a UPS) Since my device have a battery it needs to keep the charge up so I am using the circuit from TP4056 with over charge/under voltage protection. Since my device will be plugged in all the time I added the P-chanel Mosfet to separate the load from the battery when plugged in as seen all over the net. Then I realised I needed to lower the voltage to 3.3 volts so at the end I figured I might as well create a full circuit with all the bits and pieces I could find on the Internet and make it a single PCB.
Version 3:
If all goes well with V2, V3 will integrate a miniature camera to look at the pit and possibly move this out of Home Assistant/ESPHome and create an APP for Android and Iphone.
But here is my circuit for version 2, I would appreciate some feedback, anything to prevent a fire... I'ld rather have a flood than a fire !