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
-
[SOLVED] s17021 vs HTU21
Hardware • 30 Apr 2021, 20:22 • 4994james 3 May 2021, 05:54 -
💬 Door/Window Sensor
OpenHardware.io • 26 Oct 2016, 19:53 • openhardware.io 4 Aug 2017, 13:47 -
MAX6675
Development • 26 Nov 2014, 21:15 • Mrlynx 31 Jan 2017, 15:09 -
💬 ESP8266 IoT Node
OpenHardware.io • 6 May 2018, 21:01 • openhardware.io 8 May 2018, 18:05 -
💬 Temperature-Humidity-Pressure Sensor
OpenHardware.io • 11 Jan 2019, 07:19 • openhardware.io 14 Jan 2019, 13:25 -
💬 Arduino Pro Mini Shield for RFM69(H)W
OpenHardware.io • 2 Nov 2016, 18:10 • openhardware.io 24 Mar 2018, 11:45 -
Welcome
Announcements • 23 Mar 2014, 08:24 • hek 2 Apr 2014, 14:39 -
💬 MDMSNode "Lighting X3" (based on ESP8266)
OpenHardware.io • 4 Jun 2020, 12:20 • openhardware.io 20 Jul 2020, 16:03