NRF52 GPIOTE with 2 inputs
-
Re: nRF5 action!
I'm trying to modify @Nca78 GPIOTE example for the NRF51 for use on the nrf52 motion sensor I made with an optional reed/switch input for monitoring the door and motion in a bedroom.
I've gotten it to work on the NRF52 well enough and I can get an update when I close or open the reed OR motion sensor but I don't know how to separate them so I know WHICH one of the two triggered. I've tried for the past week but the nrf functions inside of arduino confuse me and I can't say i understand the NRF stuff all that well anyway.
@Nca78 could you please help? Based on the script you've already written I'm guessing it would take very little modification but I don't know what I'm doing :\
-
Re: nRF5 action!
I'm trying to modify @Nca78 GPIOTE example for the NRF51 for use on the nrf52 motion sensor I made with an optional reed/switch input for monitoring the door and motion in a bedroom.
I've gotten it to work on the NRF52 well enough and I can get an update when I close or open the reed OR motion sensor but I don't know how to separate them so I know WHICH one of the two triggered. I've tried for the past week but the nrf functions inside of arduino confuse me and I can't say i understand the NRF stuff all that well anyway.
@Nca78 could you please help? Based on the script you've already written I'm guessing it would take very little modification but I don't know what I'm doing :\
It's post 1515 in nrf action
https://forum.mysensors.org/topic/6961/nrf5-action/1515In particular I download the zip file from post 1543
https://forum.mysensors.org/topic/6961/nrf5-action/1543# -
Re: nRF5 action!
I'm trying to modify @Nca78 GPIOTE example for the NRF51 for use on the nrf52 motion sensor I made with an optional reed/switch input for monitoring the door and motion in a bedroom.
I've gotten it to work on the NRF52 well enough and I can get an update when I close or open the reed OR motion sensor but I don't know how to separate them so I know WHICH one of the two triggered. I've tried for the past week but the nrf functions inside of arduino confuse me and I can't say i understand the NRF stuff all that well anyway.
@Nca78 could you please help? Based on the script you've already written I'm guessing it would take very little modification but I don't know what I'm doing :\
-
@waspie why do you want to use this script with NRf52 ?
GPIOTE is useful with nrf51 only because it has a hardware bug that makes it use 100uA with "normal" interrupt.
With NRF52 the sleep code from MySensors should run fine.
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