My start into open source hardware

So I decided to get my feet wet on creating my first commercially manufactured circuit boards to release as open source hardware.  For one of my automation projects Prototype switch boardI had built some custom in-wall automation scene controllers based on MySensors.  The controller consisted of 3 boards; the power supply board, the computer board (Arduino Pro Mini) and the switch board (first prototype seen on the left).   30x70 proto boardAll three of the circuit boards were built on standard 30mm x 70mm prototyping circuit boards like these.   My first fully assembled version of the controller can be seen below.  Though the design seemed to work good, they were a bit of a pain to put together.  Prototype scene controllerBuilding one controller on prototyping boards and wiring it all up took 4 hours or more.  After building 3 of them and seeing how they worked, I wanted more, but I didn't want to spend all the time making them.  So, it was time to get my feet wet on PCB manufacturing.

The design

So I figured that if I was going to be making a number of these, I wanted the design to be flexible.  I wanted to be able to do more with it than just a scene controller.  Having the 3 separate boards made it modular.  I figured I would design it so that I could build more than just switch boards for the face of the CPU board.

The main board

Scene controller main boardFor the design of the main board I broke out all digital and analog IO lines from the pro mini except for A6 and A7.  I also have ground, raw 5 volt power plus the 3.3 volt regulated power from the pro mini available on 2 single inline header connectors.  A4 and A5 on J3 also provide I2C capabilities to the front board.  With all of these, the only limit to what can go on the front board is what you can fit in the small space..

The keypad board

Keypad board PCB design The design of the keypad board may look a bit crowded, but it was designed that way to make it flexible.  Many different keypad designs can be made from this one board.   I had gotten the idea for this type of design from a video I had seen by a guy in Australia named Jonathan Oxer.  He had designed light switches for his house and designed a single universal circuit board that allowed him to use that one board for building different switch configurations.  You can find the video here http://www.superhouse.tv/arduino-light-switches/ .  His other videos on home automation are well worth watching.  Check out his website here.   The keypads can be made with or without indicator LEDs.
4 button keypad2 button keypadStandard paddle keypadThe buttons can have any text embossed on them, or they can just be left blank. Here are just 3 examples of the many different wall switch designs that can be made using this board.  No need to have separate boards printed when you want to put together a new switch.  Just grab a board, print the switch layout on your favorite 3D printer and screw it together.  Done!

The power supply

Power supply boardThere is nothing fancy with the power supply board.  It is based on the standard HLK-PM01 power supply module that will take a wide input voltage (90 ~ 264V AC) and convert it down to the 5 volts needed to power the controller.  The output is filtered with a 0.1uf ceramic capacitor as well as a 10uf electrolytic to help stabilize the voltage supplied to the controller.  On the AC input side, a standard 0.75A glass fuse as well as a 73°C (163°F) thermal fuse is used for maximum protection since this will be used in wall.  You can never be too careful.

Conclusion

In the future, I will design  other sensor boards to be used with this controller.  This is an open source design, so feel free to take the gerbers and design your own sensors for it.  I hope you like the design.  Let me know your thoughts.

Related Images:

My Home Automation Setup

The start

So over the years I have mostly used X10 for my home automation hardware. I used it because it was pretty much the cheapest solution out there. The hardware worked, but it had it's problems and limitations. So last year when my Raspberry Pi had died that I had running a PERL based automation software called MisterHouse, I wanted to explore other solutions. I ended up stumbling on the MySensors website. MySensors is an open source DIY home automation hardware platform that works with a good number of automation controller softwares, many of which are open source themselves. Orange Pi PC Board I started with a software called Domoticz and had it running on a new kind of development board that I picked up cheap ($18 US). The board is the Orange Pi PC.  The board is roughly the same size as a Raspberry Pi and it runs a similar version of embedded linux.   All I needed to do to get started with MySensors was to build a gateway node that  would talk to the sensors.  There were a few different options for communications hardware.  nRF24L01+ BoardI ended up choosing the nRF24L01+ radio boards.  The main reason was because hey were wireless which meant that I could put sensors in places that before were near impossible.  But they were also cheap.  I was hooked.  I could build whatever sensors I wanted, and there were plenty of examples to get me started.  My goal was to completely replace my old X10 hardware and upgrade it to MySensors as much as possible.  I started with a node for controlling and monitoring my garage door opener.  From there I was hooked.  I wanted to MySensorize everything.  So it continued.

Changing controllers yet again

So after using Domoticz for a while, I ended up finding a few limitations.  Being a member of the MySensors forum for a while, I decided to do some searching.  I noticed that a few of the people on the site were using a platform called Vera.  Vera is a hardware device type of automation controller and it has a plugin architecture that can support many different types of hardware, one of them being MySensors.  I ended up requesting and getting a Vera Plus controller as a gift.  It is a great platform and is very customizable with LUA scripting.   The plugins for it are pretty much all built with LUA script.  I have yet to find a problem I can't solve with it.

My current setup

I currently have 40 plus home automation nodes and it keeps growing.  From MySensors nodes to WiFi controlled relays to my Amazon Echo and more, my system continues to grow.  I am always looking for new ways to automate my life.  I don't think I will ever stop.

Conclusion

I encourage you to go out and automate your life.  It is a lot of fun.  Check back to see other posts from me about my journey through my automated life.

Related Images: