Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. NRF52 GPIOTE with 2 inputs

NRF52 GPIOTE with 2 inputs

Scheduled Pinned Locked Moved My Project
4 Posts 2 Posters 512 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    waspie
    wrote on last edited by
    #1

    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 :\

    W Nca78N 2 Replies Last reply
    0
    • W waspie

      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 :\

      W Offline
      W Offline
      waspie
      wrote on last edited by
      #2

      It's post 1515 in nrf action
      https://forum.mysensors.org/topic/6961/nrf5-action/1515

      In particular I download the zip file from post 1543
      https://forum.mysensors.org/topic/6961/nrf5-action/1543#

      1 Reply Last reply
      0
      • W waspie

        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 :\

        Nca78N Offline
        Nca78N Offline
        Nca78
        Hardware Contributor
        wrote on last edited by
        #3

        @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.

        W 1 Reply Last reply
        0
        • Nca78N Nca78

          @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.

          W Offline
          W Offline
          waspie
          wrote on last edited by
          #4

          @nca78 If you're talking about the basic motion sketch - I've tried it and it doesn't work

          The node checks in when initially powered but i can't seem to trigger it...

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          39

          Online

          11.7k

          Users

          11.2k

          Topics

          113.1k

          Posts


          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • MySensors
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular