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
-
💬 NModule Two buttons capacitive touch switch shield
OpenHardware.io • 29 May 2017, 18:33 • openhardware.io 7 Jun 2017, 13:07 -
💬 EASY PIR multisensors box
OpenHardware.io • 14 Mar 2018, 20:53 • openhardware.io 13 Jun 2018, 20:54 -
💬 MyMultisensors
OpenHardware.io • 15 Apr 2016, 23:39 • openhardware.io 17 Feb 2023, 18:35 -
💬 EFEKTA WIRELESS TEMPERATURE & HUMIDITY SENSOR V1 | nRF52840
OpenHardware.io • 29 May 2020, 16:35 • openhardware.io 29 May 2020, 16:35 -
Sudden battery drain - Pro-mini + RFM69
Troubleshooting • 6 Apr 2023, 10:58 • Oumuamua 13 Oct 2023, 23:49 -
Calculate Delta T of two temperature sensors with lua
Domoticz • 5 Oct 2022, 10:06 • Mela 5 Oct 2022, 10:06 -
In wall light switch node - Custom PCB
Hardware • 4 Dec 2015, 09:05 • Samuel235 27 Feb 2017, 21:12 -
💬 Radio Node
OpenHardware.io • 30 May 2019, 08:13 • openhardware.io 30 May 2019, 11:37