Module was created at http://forum.mysensors.org/topic/2511/in-wall-light-switch-node-custom-pcb by myself and many inputs from yourselves.
This ATmega328p-au based board has been created to enable you to have what is essentially a extremely low powered, low current wireless switch. It was designed with the use as a light switch in the primary driving seat, however you can use it as any switch you would like. The Micro Controller, when not in sleep mode, is running at 8MHz, using the internal crystal to bring the power consumption right down to what is supposedly around the same power consumption as the self discharge rate of the 3v3 coin cell battery power supply. The only disadvantage of this is that Atmel themselves do not support the use of Serial connections when using the internal crystal, however we do have it working perfect. We are able to upload through the serial connection and also monitor the serial communication through a FTDI programmer. This requires us to use a baud rate of 9600 with a copy of Gertsanders bootloader.
I have done no power consumption tests as of yet due to lack of testing equipment. If anyone would like to perform these test before I can get my hands on some testing equipment, please don't hesitate and report back with your findings so I can further optimize the module for its battery usage.
3v3 Coin Cell Battery. Other variations of this board may be available in the future but currently we only have a working battery version.
With special thanks to forum and community member 'GertSanders' for providing the branch of OptiBoot's bootloader with an upload speed of 9600.
PLEASE NOTE THE FOLLOWING FUSE CHANGES FOR CORRECT BATTERY CONSUMPTION
The current software that runs on the module is that of BinarySwitchSleepSensor, at the time of creating this module this software is located in the development branch (V1.6). The code is as shown on Source Code tab of this project.
This module can be used as a generic switch that relays a 1/0 ON/OFF to your gateway.
The monitoring method that would suit this module would be a software version, specifically that of 'secret voltmeter'. This is perfect for this module because the module gets its VCC straight from the battery without any step-ups or voltage regulators to filter its power. This enables us to have battery monitoring at virtually no extra power consumption unlike the conventional hardware monitoring variations. I'm currently working on getting this integrated with the module. Soon as I get it in a working, in a stable sense I will upload added information regarding this. However, as with all open source projects, feel free to experiment and implement this beautiful feature yourselves!
I'm very interested in all of your variations, improvements and applications of this module, please add them to the comments with pictures and videos if you can.
|Qty||Value||Device||Package||Parts||Description||MF||MPN||Aliexpress or ebay link|
|7||0.1uF||B0603R104KCT||CAPC1608X85N||C2, C3, C4, C5, C6, C7, C9||CAPACITOR, 0603||MULTICOMP||MCB0603R104KCT|
|1||FTDI||Header Pins||FTDI||FTDI - Generic 2.54mm pin pitched header pins||HARWIN||M20-9990446|
|1||AVR_SPI_PRG_6PTH||Header Pins||JP1||ISP - Generic 2.54mm pin pitched header pins||HARWIN||M20-9990446|
|1||WIRELESS-NRF24L01||WIRELESS-NRF24L01||WIRELESS-NRF24L01||M1||2.4 GHz Wireless Module based on NRF24L01 chip|
|1||M04SCREW||SCREWTERMINAL-3.5MM-4||SWITCHES||Screw Terminal||METZ CONNECT||31059104|
|1||ATMEGA328P-AU||QFP80P900X900X120-32N||U1||8-bit Microcontroller with In-System Programmable Flash ATMEL||ATMEL||ATMEGA328P-AU|