Testing has been put on hold - RECREATE AT YOUR OWN RISK
FURTHER IMAGES TO BE ADDED ASAP!
3D printed enclosure files to follow soon!
This ATmega328p based board has been created to enable wireless switching of 2 devices, was designed for lighting needs, but pretty much any 240v AC powered device will work. The finished product will be enclosed inside of a 3D Printed casing, allowing access to the screw terminals only, no chance of any accidental interference with it being High Voltage of 240/250VAC.
This device has been designed to be installed in ceilings for connection to ceiling lights, however you could use this outside of this application but either enclosure the device in a container that stops any access to the live power entering the board and even the screw terminals. Even though my finished enclosure will enclose this module, the input power cable will still be accessible along with the screw terminals. Not safe to be around personal, especially children as there will also be no strain relief on the cables.
As the module is running with an external 16MHz crystal, we are able to use MYSBootloader to enable us to use OTA Firmware Updates, saving you from having to physically get the module for a software/firmware update. The module has been designed to work with UK Mains, so it has a Live and a Neutral input. The module itself is self-powered from the mains power input and is fused with a slow blow and thermal fuse on the main input meaning any short on the board for any reason will cause the slow blow fuse to cut and any heat increase inside of the enclosure will cut the thermal fuse. Alongside of this, the relay channels are also protected with a 2A re-settable fuse themselves, meaning that any issues with the connected devices pulling any more than 2A will automatically cut out. We have also allowed the use of a ATSHA204 hardware signing and current sensing using a ACS712 chip. Lastly, we have the option to attach two switches to the device to switch the attached devices on-board rather than using wireless switches or automatically switching the devices. This allows us to route a switch to the device just like a normal light switch would.
This device is self-powered through an on-board transformer using the 240VAC Input to step down to 3.3V. DO NOT USE 5V, NOT EVEN FOR PROGRAMMING.
MYSBootloader running at 16MHz External Crystal to enable the use of OTA updates.
My primary controller is OpenHAB2 but as this does not support OTA for MySensors, we're able to install MyController alongside of your normal controller. For now, use the install instructions of MyController on their website with one slight difference, change the port that is used from 8443 to anything else you desire (probably safe to use 9443 or something alike).
Allowing the wireless switching of two AC powered devices. Maybe to switch Lighting, Ceiling Lights.
Jkandasa on Mysensors forum for developing the MyController software
Tekka on MySensors forum for developing the MYSBootloader files.
I'm very interested in all of your variations, improvements and applications of this module, please add them to the comments with pictures and/or Videos.
I do not advise you in any way to make/install this product into a property and therefore I take no responsibility for any issues, problems you have or even health implications that you endure while completing the installation or even using the product after installing. BUILD, USE and INSTALL ARE YOUR OWN RISK
This product is licensed under the CC-BY-SA OpenHardware certificate. For more information please see https://creativecommons.org/licenses/by-sa/4.0/
Qty | Value | Device | Package | Parts | Description | MF | MPN | Aliexpress or Ebay link |
---|---|---|---|---|---|---|---|---|
10 | 0.1uF | 0603 | C1, C2, C3, C4, C5, C6, C7, C9, C11, C13, | Capacitor | ||||
1 | 100uF | 6.3mm Radial | C8 | Capacitor | ||||
1 | 1nF | 0603 | C10 | Capacitor | ||||
1 | 10uF | 0603 | C12 | Capacitor | ||||
2 | 22pF | 0603 | C15, C16 | Capacitor | ||||
1 | 4.7uF | 0603 | C23 | Capacitor | ||||
1 | 73°C | Axial | F1 | Thermal Fuse | ||||
1 | 2A | Axial | F2 | Slow Blow Fuse | ||||
2 | 2A | 1206 | F3, F5 | Re-settable Fuse | ||||
1 | 2.54mm PTH | ISP2 | ISP Header | |||||
2 | 3.5mm PTH | JP1, JP7 | Switch Screw Terminal | |||||
1 | 2.54mm PTH | JP3 | FTDI Header | |||||
2 | 5.0mm PTH | JP4, JP6 | AC Output Screw Terminal | |||||
1 | 5.0mm PTH | JP8 | AC Input Screw Terminal | |||||
2 | 0805 | LED2, LED3 | Relay Active LED | |||||
1 | Module | M2 | nRF24L01 | |||||
1 | 0805 | PWR | Power LED | |||||
1 | 16MHz | HC-49S | Q1 | 16MHz Crystal | ||||
1 | 180R | 0603 | R1 | Resistor | ||||
5 | 10K | 0603 | R2, R5, R6, R9, R10 | Resistor | ||||
4 | 150R | 0603 | R3, R4, R7, R8 | Resistor | ||||
1 | 56K | 0603 | R11 | Resistor | ||||
2 | 2A | SSR1, SSR2 | 2A Solid State Relay | |||||
1 | 5x5x1.5mm | SW1 | Reset Switch | |||||
2 | SOT-23 | T1, T2 | N-Channel Mosfet | |||||
1 | SOIC-8Pin | U$1 | ACS712 Current Sensor | |||||
1 | U$2 | HLK-PM01 AC-DC Converter | ||||||
1 | QFP | U1 | ATMEGA328P-AU | |||||
1 | SOT23-3 | U2 | ATSHA204 | |||||
1 | Axial | V2 | 250V Varistor | |||||
1 | SOT-223 | VREG2 | LD1117 Voltage Regulator | |||||
1 | 8-Pin (2x4) 2.54mm Spacing Female Socket for Radio |
Name | Size | # Downloads |
---|---|---|
HominiACPoweredRelay(2)Module.GBL | 88.82 kB | 462 |
HominiACPoweredRelay(2)Module.GBO | 53.32 kB | 472 |
HominiACPoweredRelay(2)Module.GBS | 4.07 kB | 417 |
HominiACPoweredRelay(2)Module.GML | 105 B | 453 |
HominiACPoweredRelay(2)Module.GTO | 27.79 kB | 446 |
HominiACPoweredRelay(2)Module.GTL | 76.29 kB | 464 |
HominiACPoweredRelay(2)Module.GTS | 2.12 kB | 449 |
HominiACPoweredRelay(2)Module.brd | 141.96 kB | 610 |
HominiACPoweredRelay(2)Module.sch | 605.65 kB | 670 |
HominiACPoweredRelay(2)ModuleSchematic.pdf | 158.18 kB | 348 |