Review Request - Pool Controller
I've only been tinkering with breadboards, ESP32 and Raspberry PI GPIO for a year or so. My initial goal was/is to create a pool controller with a Raspberry PI hooked up to Home Assistant via MQTT over wifi, maybe try and replace the raspberry pi with an ESP32.
But my current mechanical timer stopped working a few weeks ago so instead of designing the final version of the board I want with the relays and mains voltage on the board and doing that safely, I figured I've got this 4 channel relay that's enough to handle some light 110v stuff (lights already on a gfci circuit) and a couple of these to handle the pump and heater.
So I tried to create a PCB to sit between my 5v 5a power supply and the raspberry pi gpio on one side, and the above relays on the other. I know I could eliminate some of this with a level converter but it was more fun to do it this way. The schematic and PCB design are below and I'd appreciate feedback. If there's some fundamental thing I'm missing feel free to just tell me to google something. I still need to do math about the resistor levels but also feel free to tell me if they just seem way off.
J1:
-
pin 1&2 come off of a 5v5a power supply
-
pin 3-8 are GPIO from the PI/ESP32
J2:
-
Connects to the 4-channel relay board and other relay mentioned above.
-
It also has ground and +5v connector.
I don't know if there's really any point in having the +5v on this board. It will make sense once I get around to making V2 of this board that has the relays on it and not a separate board but it does seem silly routing it through the board.
Schematic: https://i.imgur.com/bOWG4BK.png
Posted Jan 14, 2022, 10:24 PM UTC
Fundamental question: Why wouldn’t you just use a stripboard with THT components? It’s way cheaper, faster and easier to assemble.
Also take care with any mains power with water with humans nearby.
I'll definitely prototype it in a stripboard. Once working I may send it off to have the PCB made just to see the process. The Schematic and PCB were mainly me trying to capture what I'm looking for and learn KiCad.
And definitely understood about mains and water.
Thanks!