My first working Switch with Battery and Temperature ..
-
Hi all.
I make my first project (thanks to all for help) Switch , with battery and temperature monitoring..
and project :
BinSwitchBatSleep_ACK.zipThis project use two button INT0 and INT1 . if change state then send packet with ACK request .
if no ACK received then generate sound .. from piezoelectric generator .
Battery is in volate *10 - if received value is for example 28 it s 2.8V .now working good .. power consumption is 7uA .
PS> I need help with pin change interupt .. I now use two button only .. but want support 4x button.. then need litle help how to use it ..
regards..
-
@dzairo: Nice piece of work and looking at the schematics with enough attention to decoupling and powering the device!
power consumption is 7uA .
I assume that is sleep current. Do you know anything about the average consumption over say one hour?
but want support 4x button.. then need litle help how to use it ..
I think I can not directly help you with this but it would be good to know to which pins the buttons are connected, that is not readable from the schematics above.
-
Nick Gammon did an example of four pins 'sharing' one interrupt pin. Perhaps this will be workable for you.
It may be tough to squeeze the 4 diodes onto your board, though!
-
I know how to do it by diode.. but I want by interrupt only.. I do it my self..
-
there is a nice PinChangeInterrupt library that you may want to look at.
Suggested Topics
-
Step-up / Boost regulator PCBs
Hardware • 3 Feb 2015, 19:27 • bjornhallberg 9 Sept 2017, 06:04 -
💬 Uniflächentaster PCB
OpenHardware.io • 2 Jul 2017, 12:52 • openhardware.io 2 Jan 2018, 16:56 -
Refrigeration Datta Logger (A Non MySensors Project)
My Project • 8 Nov 2014, 22:23 • RJ_Make 9 Dec 2014, 14:13 -
pool/spa temperature sensor for VeraLite???
Vera • 28 Oct 2014, 07:57 • callagga 31 Oct 2014, 06:30 -
Basement Monitor
My Project • 3 Apr 2016, 21:27 • micah 8 Apr 2016, 16:43 -
Home Assistant v 0.12
Home Assistant • 30 Jan 2016, 13:57 • martinhjelmare 30 Jan 2016, 15:05 -
💬 NModule Temperature, Humidity, Light, Door sensor shield
OpenHardware.io • 28 May 2017, 16:09 • openhardware.io 27 May 2018, 12:32 -
💬 Sensebender Micro mk2
OpenHardware.io • 16 Nov 2016, 22:30 • openhardware.io 10 Jul 2018, 19:37