US decora style wall switch
-
There are various captive touch sensors available on the market, so more and some less sensitive. Sensitivity is related to the capacitor value the touch contact is attached to.
The commercial available touch sensors can all be configured to either work as toggle or as on/off switch. The more expensive ones also have time delay feature.
You can get little touch sensor boards like this 4 way Touch Sensor. These sensors are very small, less than half the size as shown on the pictue. With these you must create toutch plates on the outside of the decora wall plate and solder these to the touch pads on the sensor. I've done this as one of my experimental designs and it works well. I ended up going for a completely slick look Dual Touch Sensor + Custom Node.
-
That looks fantastic! I looked at the capacitive solutions and while they're neat, I don't like them from a user interface perspective. I want tactile feedback in a switch - a rocker would be even better but this is a close second. It would be nice if you could take those of us who use RFM69's into account if that isn't too difficult.
You might want to look at the SwitchMote for packaging and board ideas. Another thought: Just my opinion but I think it would look nicer if it was symmetrical. Could the LED's be moved into the center between the switches?
-
If getting the laser cut blank doesn't work out, another option you could consider is using pre-cut keystone plates. It's probably possible to modify a blank keystone jack by cutting the mounting tabs off and have it sit flush or a little proud of the plate and use that to press a switch on the pcb behind it.


-
That looks fantastic! I looked at the capacitive solutions and while they're neat, I don't like them from a user interface perspective. I want tactile feedback in a switch - a rocker would be even better but this is a close second. It would be nice if you could take those of us who use RFM69's into account if that isn't too difficult.
You might want to look at the SwitchMote for packaging and board ideas. Another thought: Just my opinion but I think it would look nicer if it was symmetrical. Could the LED's be moved into the center between the switches?
@TD22057 I like the thought of having the LEDs in the center giving it a more symetrical look. I happened to be at the hardware store today and saw a switch made by leviton that had a series of LEDs on the side much like my design that were used to indicate brightness level. Like I mentioned, the possibilities for the switch/sensor board are limited by your imagination.
You mention using the RFM69's for your radios, that would simply be a matter of designing a different processor board that you could switch on to the setup. I can look into designing the board to take either type of radio, but I will have to see if there is space enough and enough data lines. My setup uses all nRF24L01 modules, so I am not familiar with the wiring of the RFM69s.
The keystone style faceplates like you showed are something that I use at work a lot, and originally thought of using those until I came up with the laser engraved faceplate idea.
-
I like this one too. I am playing with a Low Power Labs Switchmote at the moment. This switch plate is a lot more elegant. Are the arrows for dimming?
@nagelc The arrows would be for dimming, bu they could easily be changed to on/off buttons like the others. The idea behind the design is to be modular and flexible. How it operates is all in the sketch that you write to handle the devices on the faceplate, be it switches, lights or sensors.
-
The switch design I have shown in the original post is based off of the 3 button on/off + dimming XPT switch from X10:

I have a few of these in my house already. The dimming buttons operate dimming functions for the last on/off button pressed. So if you turn button 2 on and then use the dimming buttons, it will dim whatever device that corresponds to switch 2. You then turn on button 1. Dimming will then operate the device on button 1. -
So I did some checking on getting the blank wall plates laser cut, but not having much luck. One local company said they couldn't do it, the other says that the plastic is polycarbonate and their equipment will not cut poly. One other thing I found when researching this is:
"Polycarbonate sheet can be cut with industrial cutting lasers however, edges may become amber or brown when laser cut and a clean edge is difficult to obtain. In fact, some laser cutters are not able to cut it because it ruins the lens and requires frequent stopping and cleaning. Please contact your equipment’s manufacture to see if your laser is able to cut polycarbonate and for recommendations on the process."So I am now looking into having these possibly CNC cut. I'll post my findings on that.
-
So I did some checking on getting the blank wall plates laser cut, but not having much luck. One local company said they couldn't do it, the other says that the plastic is polycarbonate and their equipment will not cut poly. One other thing I found when researching this is:
"Polycarbonate sheet can be cut with industrial cutting lasers however, edges may become amber or brown when laser cut and a clean edge is difficult to obtain. In fact, some laser cutters are not able to cut it because it ruins the lens and requires frequent stopping and cleaning. Please contact your equipment’s manufacture to see if your laser is able to cut polycarbonate and for recommendations on the process."So I am now looking into having these possibly CNC cut. I'll post my findings on that.
-
So I decided to work more on this old project I started a while back, and I finally have a prototype of the switch/LED board finished. It is far from pretty, but it is functional as far as I can tell with the tests I have done with my volt meter.
This is a picture of the switch board assembly opened up:
And here is 3 views of the switch board fully assembled:
The idea I am working on is to layer the boards using the header connectors, making it modular. The next board would be the computer/MySensors board. It would be the same size as the switch board and stack with a set of female headers. This switch board would pretty much max out the pins on a pro mini. The switches would take 6 pins ( D3 - D8), and the LEDs would take 4 (A0 - A3). There would then be a third board stacked yet on top if these two which would be the power supply board. The power supply board would contain the HLK 5 volt power converter and a 3.3 volt regulator.
My issue now is to see if I can get everything to fit in the small amount of space with header connectors to stack the boards. I may have to get creative with the arduino/radio board and mount one on each side of the board. Wiring it will also be a challenge. Then I will have to see if it will fit in a standard wall box or if I will need a deep box
In the end, if I can get everything figured out, I could make a number of these and attach different switch boards for different configurations. I may even design a PCB for this, but if I do, that would be in the distant future.
-
So here is my latest update. I now have the controller board made that the switch board will stack on to. It currently uses all analog and digital pins of the pro mini except pins A4, A5, A6 and A7 which are not in the standard header rows. This is the board as it is right now.
And this is the controller board stacked with the switch board.
I wrote a simple sketch to test the keypad which is just a 2x4 matrix. One thing that I realized that I forgot which I will fix in the next couple days is the current limiting resistors for the 4 LEDs.
For testing until I figure out the design of the power supply board, I am just powering this using the supply from my UNO as it has both the 3.3 and 5 volt outputs.
My plan for now is to use each row as an OFF and an ON button with a corresponding status LED, but the possibilities for this are much greater. This could be used as a controller for 8 individual scenes, bright/dim controls, or whatever you can think of. This could be used to talk directly to other nodes for lighting control or any number of things. You could build other switch boards for this that would maybe contain more switches (eliminating the LEDs of course), or any number of combinations of switches and sensors.
The final setup is going to be quite bulky and will need a deep US wall box to fit everything, and even that might be tight. For now this is a proof of concept design to test the feasibility of this as a controller. Eventually if things work out, I may seek help from the forum to create a dedicated PCB for this which could be stacked into a smaller package.
I welcome any thoughts, comments and feedback on this design.
-
So here is my latest update. I now have the controller board made that the switch board will stack on to. It currently uses all analog and digital pins of the pro mini except pins A4, A5, A6 and A7 which are not in the standard header rows. This is the board as it is right now.
And this is the controller board stacked with the switch board.
I wrote a simple sketch to test the keypad which is just a 2x4 matrix. One thing that I realized that I forgot which I will fix in the next couple days is the current limiting resistors for the 4 LEDs.
For testing until I figure out the design of the power supply board, I am just powering this using the supply from my UNO as it has both the 3.3 and 5 volt outputs.
My plan for now is to use each row as an OFF and an ON button with a corresponding status LED, but the possibilities for this are much greater. This could be used as a controller for 8 individual scenes, bright/dim controls, or whatever you can think of. This could be used to talk directly to other nodes for lighting control or any number of things. You could build other switch boards for this that would maybe contain more switches (eliminating the LEDs of course), or any number of combinations of switches and sensors.
The final setup is going to be quite bulky and will need a deep US wall box to fit everything, and even that might be tight. For now this is a proof of concept design to test the feasibility of this as a controller. Eventually if things work out, I may seek help from the forum to create a dedicated PCB for this which could be stacked into a smaller package.
I welcome any thoughts, comments and feedback on this design.
I'm currently working on the following PCB design for US Decora Wall Plate.
It's designed to have some components/ connections on the back, but most of the components on the front of the PCB.
It has provisions for connecting:
4 x Switch (A0, A1, A2, A3)
4 x LED (A4, A5, A6, A7)
4 x Relay/SSR (D5, D6, D7, D8 connected to NPN transistor)
2 x sensor (pin D3 and D4)Designed for using an Arduino Pro Mini 5V with A4 to A7
I can share the gerbers once completed

I'm also working on a Dual Decora style wall plate switch containing 4 x 8Amp SSR

-
Very interesting designs @enterprised and @dbemowsk. I've also been working on my own version of decora switch and relay system. It's designed to use empty keystone switch plates with 1, 2, or 3 switches and uses keystone jack fillers as the switch covers so they look almost commercial. It's a 3 PCB system. The front PCB has the switches, LED's, reset button, CPU, and an RFM69 or NRF radio. The middle PCB has a MeanWell IRM-02 or HLK AC->DC converter (with fuse, thermal fuse, and varistor), a replaceable fused 10A AC relay with opto-coupler isolation, 5V and 3.3V rails and a 2 wire temperature probe to measure the temp of the PSU module. The back PCB is just a cover to insure no sharp solder points are in an electrical box. I decided that since this will be in my walls, I would only use name brand parts (from digikey and mouser) on the high voltage side which increases costs but should reduce the risk of fire (or at least make me feel better).
I've designed the PCB and checked them over but we're in the middle of buying a house and moving so I haven't ordered any yet. Here's the 3D rendering of the PSU and CPU boards together and a one of the PSU board.


-
I'm currently working on the following PCB design for US Decora Wall Plate.
It's designed to have some components/ connections on the back, but most of the components on the front of the PCB.
It has provisions for connecting:
4 x Switch (A0, A1, A2, A3)
4 x LED (A4, A5, A6, A7)
4 x Relay/SSR (D5, D6, D7, D8 connected to NPN transistor)
2 x sensor (pin D3 and D4)Designed for using an Arduino Pro Mini 5V with A4 to A7
I can share the gerbers once completed

I'm also working on a Dual Decora style wall plate switch containing 4 x 8Amp SSR

@enterprised For my design, I am hoping to use an HLK-PM01 power supply. Comparing to the one you have listed it has a few advantages:
- Enclosed components vs exposed components on yours
- Continuous output current of 600mA vs 200mA on yours
- 50mV or less of ripple on the output vs 100mA on yours
Having the components sealed will protect more against short circuits on the high voltage side. As for the current, I probably wouldn't need 600mA, but using a supply that is rated a bit higher I figure will be less stress on the components and cut down on heat. Plus I have to do 3.3 volt regulation for the radio, so I figure I am covered for that too. And last, the better the ripple on the output, the less filtering that will be needed for a more stable radio.
The other thing that I like about my design is that it is modular. You would be able to have a number of different switches, sensors or LEDs as the faceplate while having one arduino/radio board and one power supply board. As mentioned in one of my previous posts, the current design is a bit bulky, but with a better PCB design, I think I can compress the layers quite a bit more. Looking at your pics, yours looks like a nice design too.
-
Very interesting designs @enterprised and @dbemowsk. I've also been working on my own version of decora switch and relay system. It's designed to use empty keystone switch plates with 1, 2, or 3 switches and uses keystone jack fillers as the switch covers so they look almost commercial. It's a 3 PCB system. The front PCB has the switches, LED's, reset button, CPU, and an RFM69 or NRF radio. The middle PCB has a MeanWell IRM-02 or HLK AC->DC converter (with fuse, thermal fuse, and varistor), a replaceable fused 10A AC relay with opto-coupler isolation, 5V and 3.3V rails and a 2 wire temperature probe to measure the temp of the PSU module. The back PCB is just a cover to insure no sharp solder points are in an electrical box. I decided that since this will be in my walls, I would only use name brand parts (from digikey and mouser) on the high voltage side which increases costs but should reduce the risk of fire (or at least make me feel better).
I've designed the PCB and checked them over but we're in the middle of buying a house and moving so I haven't ordered any yet. Here's the 3D rendering of the PSU and CPU boards together and a one of the PSU board.


@TD22057 Excellent design. I like the fact that you used the Recom PSU. I have used the Recom ones and they are very well built, but they are slightly larger than the HLK-PM01s. The price is a bit higher too, but I figured for what mine would be doing, the HLK-PM01 will be sufficient. I plan to also use a thermal fuse with an MOV and fuse for good protection. Mine at this point is a bit bulky to fit relays in right now, but it would work well for a nice scene controller node or a direct control for another node.
-
@enterprised For my design, I am hoping to use an HLK-PM01 power supply. Comparing to the one you have listed it has a few advantages:
- Enclosed components vs exposed components on yours
- Continuous output current of 600mA vs 200mA on yours
- 50mV or less of ripple on the output vs 100mA on yours
Having the components sealed will protect more against short circuits on the high voltage side. As for the current, I probably wouldn't need 600mA, but using a supply that is rated a bit higher I figure will be less stress on the components and cut down on heat. Plus I have to do 3.3 volt regulation for the radio, so I figure I am covered for that too. And last, the better the ripple on the output, the less filtering that will be needed for a more stable radio.
The other thing that I like about my design is that it is modular. You would be able to have a number of different switches, sensors or LEDs as the faceplate while having one arduino/radio board and one power supply board. As mentioned in one of my previous posts, the current design is a bit bulky, but with a better PCB design, I think I can compress the layers quite a bit more. Looking at your pics, yours looks like a nice design too.
Oops, attached the wrong link.
I'm using the 400ma version of this PSU. The design uses 200ma max with 4 switches/LED's/SSR's, so plenty of overhead. I actually stepped away from the HLK-PM01 due to the very poor reliability of these modules, too many that failed within a few months.
I use an LE33 in TO92 package to create and regulate the 3.3v for the radio
The ripple is a non issue as I have 7 module of the previous design installed and working around the house.
I'm enclosing the entire module with a hot vacuum formed custom enclosure, so the entire circuit is fully protected. Amazing what you can do with a sheet of plastic, some wood, vacuum cleaner and a oven.
My design is also using multiple PCB's. There is a second PCB sitting on top containing 2 SSR's and related components
This was my previous design using relays not SSR but all other components are the same.


-
So for my latest update on this, I have finished the power supply board. One thing I learned in making this that I didn't even think of at first was that when I soldered on the thermal relay, the heat from the soldering was enough to blow the relay. Thus, my initial test did not work. I was finally able to get a fuse installed and working. I would have preferred it to be more centered on the side of the Hi-Link module, but I am thinking that it should still be effective.

On the bottom side of the board you can see the LM1117 3.3v regulator. For the high voltage side, I have hot glue over all traces for safety in testing.

I used a 22uf cap on the 5 volt output and a 10uf cap on the 3.3 volt output. I have also added hot glue to the incoming hot and neutral leads to provide some strain relief on the wire as it attaches to the board.


The last thing I want to do is fabricate a plastic cover to put over everything that will fit into the wall box. I think I am going to need a deep wall box to house the connections and the module.
I did connect this and have it paired with my Vera. Each row is OFF, ON and status LED to indicate the ON state. I have debated on having the LED on when the switch is off to give better visibility to the switch when it is dark. In Vera, I can tie the switches to devices using scenes.
Overall, this proof of concept design is working well.
-
So for my latest update on this, I have finished the power supply board. One thing I learned in making this that I didn't even think of at first was that when I soldered on the thermal relay, the heat from the soldering was enough to blow the relay. Thus, my initial test did not work. I was finally able to get a fuse installed and working. I would have preferred it to be more centered on the side of the Hi-Link module, but I am thinking that it should still be effective.

On the bottom side of the board you can see the LM1117 3.3v regulator. For the high voltage side, I have hot glue over all traces for safety in testing.

I used a 22uf cap on the 5 volt output and a 10uf cap on the 3.3 volt output. I have also added hot glue to the incoming hot and neutral leads to provide some strain relief on the wire as it attaches to the board.


The last thing I want to do is fabricate a plastic cover to put over everything that will fit into the wall box. I think I am going to need a deep wall box to house the connections and the module.
I did connect this and have it paired with my Vera. Each row is OFF, ON and status LED to indicate the ON state. I have debated on having the LED on when the switch is off to give better visibility to the switch when it is dark. In Vera, I can tie the switches to devices using scenes.
Overall, this proof of concept design is working well.
@dbemowsk
I think that with a little effort the switch and middle PCB can become one in a custom designed PCB. You'll end up with switches and LED's on one side and the Arduino and radio etc on the other side. That's what I did. This will make your design a lot more compact.I used https://easyeda.com/ to design and manufacture my PCB's.
-
So for my latest update on this, I have finished the power supply board. One thing I learned in making this that I didn't even think of at first was that when I soldered on the thermal relay, the heat from the soldering was enough to blow the relay. Thus, my initial test did not work. I was finally able to get a fuse installed and working. I would have preferred it to be more centered on the side of the Hi-Link module, but I am thinking that it should still be effective.

On the bottom side of the board you can see the LM1117 3.3v regulator. For the high voltage side, I have hot glue over all traces for safety in testing.

I used a 22uf cap on the 5 volt output and a 10uf cap on the 3.3 volt output. I have also added hot glue to the incoming hot and neutral leads to provide some strain relief on the wire as it attaches to the board.


The last thing I want to do is fabricate a plastic cover to put over everything that will fit into the wall box. I think I am going to need a deep wall box to house the connections and the module.
I did connect this and have it paired with my Vera. Each row is OFF, ON and status LED to indicate the ON state. I have debated on having the LED on when the switch is off to give better visibility to the switch when it is dark. In Vera, I can tie the switches to devices using scenes.
Overall, this proof of concept design is working well.
@dbemowsk - Nice work!
Here is a discussion and more links about safety in designing a PCB with AC power that might come in handy:
https://forum.mysensors.org/topic/4175/clearance-creepage-and-other-safety-aspects-in-mysensors-pcbs.Also if you dont want to completley redesign a PCB you can take some of my designs and redesign them to your purpose.
-
So I have had my prototype version of this switch installed for a few weeks now and it seems to be performing well with my Vera setup. This week I added a new tool to my arsenal. I purchased an Anet A8 3D printer kit. I just got it put together yesterday. I ordered a roll of ABS which came yesterday. It was supposed to be white, but they sent transparent (Grrrr....). Trying to work with the ebay seller on this.
Anyway, I wanted a project to try that would be useful, but not super difficult. I decided to build a better switch plate to improve my prototype of this switch. I knew that one of the big places to go for 3D stuff to print was thingiverse.com. I did a search on the site and someone had a 3d file for a decora blank wall plate. I decided to download the files and see what I could do. I had never done anything in any kind of CAD program, but thought, how bad can it be. I ended up finding OpenSCAD. Drawing objects in the software is done much like a structured programming language. Within a day of teaching myself some things in it, I came up with this:


I have not printed this yet since I am still trying to resolve my filament issue with the ebay seller,. but as soon as I get that figured out, I will give this a test. Before printing I may still look at adding some reliefs in the 4 corner tabs to save at least a little bit of plastic, but overall I think it looks good. I'll post more here as I get it done.