Good evening!
I have been doing some bits and pieces, built a few temperature sensor nodes that are happily collecting information throughout the house.
I wanted to turn my attention to designing some in-wall modules, as I have a specific light switch for my garage that the builders decided to put in a very odd spot, its on the wall right in the middle of where one of our car bonnets end up, so you have to lean across the car just to turn the lights on!
So this is the first module I have ever designed, its done in EAGLE, with a combination of imported libraries for things like the HLK-PM03, and I have modified a pro-mini 3v3 layout to remove some of the pins that I won't use in this project, to try and keep things a little easier to route.
This is also the first time I have done PCB work with 240V power, so I would appreciate any comments that you might have!
One thing to note is that currently there are just mounting holes for the Live and Neutral inputs, I haven't yet decided on the terminals for those, I'll have to pop down to Jaycar Electronics during the week and pick up some samples for measurement so that I can make a footprint for them. Also, the Serial Upload pins shown in the image are just because I didn't get around to removing them from the design, I would still have them on the end product, but I would spin them around so they run over the top of the pro-mini board.
Many thanks to everyone on the "Safe in wall ac/dc converters" thread, that has been very invaluable for research!
I know that I haven't got any voids in the board to section off the AC traces, that is my next learning experience too
Some things to consider, will be that I will have a capacitive switch sensor for the 3 pin header, I will mount that behind a blank faceplate, and have the LED lighting up the faceplate. Further versions will have more than one switch sensor and LED, this is just to get an idea of size and how well it fits behind a wallplate. I'm also using the HLK PM-03, which gives a 3v3 output, so I don't have to bother with voltage regulation for the RFM69, and the capacitive buttons are happy with a 3v3 input too, with no degradation in range/sensitivity.
image url)