Sensbender micro interrupts
-
Hello,
i currently have 4 Sensbender Micro and i am planning to build door/window sensors off them.
i already created 2 single sensors and they are working perfectly. I used a simple REED contact connected on GND and D3 as D3 is an interrupt i could use the BinarySwitchSleepSensor example to build it.(https://github.com/mysensors/MySensors/blob/development/examples/BinarySwitchSleepSensor/BinarySwitchSleepSensor.ino)
PS. a reed switch fits perfectly between the GND and D3, and rests on the extra PCB part of the sensbender!
Though, now i want to build 1 sensor with 2 reed contacts. normally the example sketch would be perfect for it. but i noticed that on the arduino the only pins that have intterupt are pin 2 and 3. And on the Sensbender micro there is no D2.
Is there a other pin on the board that supports intterupts? or should i build it like so that i use D3 as intterupt and also connect the senors to other digital in's to check the actual status of each sensor.
That way i use D3 as a wakeup call. And D4 and D5 for the actual switch status.
-
You'll have to modify it a bit.
Cut the IRQ leg off from the radio and solder (or if you have the space) plug in a wire into the socket.
-
@hek So the IRQ pin is connected to the Arduino D2?
AH nvm i checked the schematic and found it, thanks!
will try this!
Suggested Topics
-
Over the air updates
General Discussion • 23 Mar 2014, 21:38 • ToSa 1 Mar 2015, 11:21 -
Sensors and more
Hardware • 19 Jun 2023, 00:41 • Robert Leverett 19 Jun 2023, 00:41 -
hlk-pm01 are to noisy for rfm69?
Hardware • 5 Aug 2023, 21:16 • Tmaster 9 Aug 2023, 16:28 -
Newbie questions
Hardware • 14 Feb 2025, 20:03 • magwas 14 Feb 2025, 20:03 -
Best time of year to buy higher quality small project solar panels?
Hardware • 10 Jun 2021, 19:19 • NeverDie 30 Aug 2024, 14:01 -
Does MySensors require Arduino Timer 2?
Hardware • 6 Jan 2024, 19:39 • OldSurferDude 11 Jan 2024, 04:39