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
-
💬 MySensor RFM69HCW micro pcb for DHT, Si7021, CNY70, ...
OpenHardware.io • 14 Mar 2017, 09:41 • openhardware.io 13 May 2017, 21:35 -
Sudden battery drain - Pro-mini + RFM69
Troubleshooting • 6 Apr 2023, 10:58 • Oumuamua 13 Oct 2023, 23:49 -
RGBW LED Controller
OpenHardware.io • 26 Jan 2016, 14:35 • openhardware.io 20 Mar 2016, 16:51 -
💬 BlackCircle Sensor - High "WAF" Temp/Hum. sensor
OpenHardware.io • 31 May 2017, 16:47 • openhardware.io 3 Feb 2018, 18:04 -
💬 APRS GPS Tracker
OpenHardware.io • 23 Jan 2019, 09:16 • openhardware.io 23 Jan 2019, 14:25 -
Mys Interposer NRF/Arduino Pro Mini
OpenHardware.io • 23 Mar 2016, 20:45 • openhardware.io 25 May 2017, 15:59 -
Binary / Temp sensor help - sleep time
Development • 16 Nov 2014, 05:21 • niccodemi 17 Nov 2014, 05:08 -
Relay with switch
Development • 26 Jul 2015, 17:16 • oded00 2 Dec 2015, 16:12