Question about sleep until interrupt
-
I'm trying to create a sensor that sleeps until an interrupt occurs on either pin 2 or pin 3 of the Arduino. I just can't get it to work. Is it possible or does sleep only supports one interrupt pin at the time?
Also, will message received from the gateway awaken the node?
Thanx in advance.
Theo -
I'm trying to create a sensor that sleeps until an interrupt occurs on either pin 2 or pin 3 of the Arduino. I just can't get it to work. Is it possible or does sleep only supports one interrupt pin at the time?
Also, will message received from the gateway awaken the node?
Thanx in advance.
Theo -
@TheoL
You can read here, under Sleeping
http://www.mysensors.org/download/sensor_api_15 -
I'm trying to create a sensor that sleeps until an interrupt occurs on either pin 2 or pin 3 of the Arduino. I just can't get it to work. Is it possible or does sleep only supports one interrupt pin at the time?
Also, will message received from the gateway awaken the node?
Thanx in advance.
Theo -
@TheoL said:
Also, will message received from the gateway awaken the node?
Unfortunately not. The radio uses as much power as the rest of the chip so it is shut down in sleep mode.
@mfalkvidd Thank you for your reply. I'll have to make some changes to my original plan. I was planning on using the sleep mode in my doorbell. Just to save some on the energy bill ;-)
But it's okay, I want a motion sensor in my hall way. I'll just combine it in the doorbell. Thanx again.
-
@mfalkvidd Thank you for your reply. I'll have to make some changes to my original plan. I was planning on using the sleep mode in my doorbell. Just to save some on the energy bill ;-)
But it's okay, I want a motion sensor in my hall way. I'll just combine it in the doorbell. Thanx again.
-
@mfalkvidd at the moment only the muting state of the doorbell chime. But once my digital potentionometer arrives I'll be sending a volume level as well.
Update: I also want to trigger to chime remotely. My thinking is that I can solder a second one (but without switch) as a doorbell extender. I can mount that one in my living room.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login