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. nRF5 action!

nRF5 action!

Scheduled Pinned Locked Moved My Project
1.9k Posts 49 Posters 630.9k Views 44 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.
  • d00616D d00616

    I have checked the current with my nRF52 board with integrated shunt. I have measured 6.5µA while sleeping until timeout or sleeping until interrupt. It doesn't matter if RX/TX are connected but after flashing the firmware a reset by removing the voltage is required.

    There was an bug, with any type of sleep(0) which is fixed by this PR https://github.com/mysensors/MySensors/pull/909

    rmtuckerR Offline
    rmtuckerR Offline
    rmtucker
    wrote on last edited by rmtucker
    #623

    @d00616 said in nRF5 Bluetooth action!:

    I have checked the current with my nRF52 board with integrated shunt. I have measured 6.5µA while sleeping until timeout or sleeping until interrupt. It doesn't matter if RX/TX are connected but after flashing the firmware a reset by removing the voltage is required.

    Does the onboard regulator on this board not draw any current when not being used?
    ie when feeding the board with 3.3v and bypassing the regulator?

    1 Reply Last reply
    0
    • NeverDieN Offline
      NeverDieN Offline
      NeverDie
      Hero Member
      wrote on last edited by NeverDie
      #624

      I should be receiving my nRF51 modules a few days from now. Since they lack a 32K oscillator on the module, which "board" should I program it as?

      https://www.aliexpress.com/store/product/NRF51822-04-BLE4-0-Wireless-Bluetooth-Module-TTL-Low-Power-Consumption-3-3V-New/2174074_32821044213.html?spm=2114.12010612.0.0.5bdadf47Dp5sL1

      1 Reply Last reply
      0
      • d00616D Offline
        d00616D Offline
        d00616
        Contest Winner
        wrote on last edited by
        #625

        @NeverDie said in nRF5 Bluetooth action!:

        I should be receiving my nRF51 modules a few days from now. Since they lack a 32K oscillator on the module, which "board" should I program it as?

        With the Generic nRF51822 or the MySensors nRF5 boards, you can switch the oscillator via the tools menu. You have to choose the RC oscillator.

        NeverDieN 1 Reply Last reply
        1
        • d00616D d00616

          @NeverDie said in nRF5 Bluetooth action!:

          I should be receiving my nRF51 modules a few days from now. Since they lack a 32K oscillator on the module, which "board" should I program it as?

          With the Generic nRF51822 or the MySensors nRF5 boards, you can switch the oscillator via the tools menu. You have to choose the RC oscillator.

          NeverDieN Offline
          NeverDieN Offline
          NeverDie
          Hero Member
          wrote on last edited by
          #626

          @d00616 said in nRF5 Bluetooth action!:

          @NeverDie said in nRF5 Bluetooth action!:

          I should be receiving my nRF51 modules a few days from now. Since they lack a 32K oscillator on the module, which "board" should I program it as?

          With the Generic nRF51822 or the MySensors nRF5 boards, you can switch the oscillator via the tools menu. You have to choose the RC oscillator.

          If I were to choose RC oscillator in a case where the module (such as the Ebyte nRF52832 module) actually does have an external oscillator, will it no longer spend any power on the external oscillator?

          1 Reply Last reply
          0
          • NeverDieN Offline
            NeverDieN Offline
            NeverDie
            Hero Member
            wrote on last edited by NeverDie
            #627

            @NeverDie said in nRF5 Bluetooth action!:

            MY_PASSIVE_NODE,

            I found a shlocky workaround for the current problems with MY_PASSIVE_NODE. It turns out that if you have the gateway up and running before the passive node power up, then the passive node often gets stuck in a loop trying to register itself. However, for whatever reason, if you first power up the passive node, let it run for a bit trying to register and failing, and then power on the gateway, the loop is avoided. Then the passive node will broadcast one packet per cycle and the gateway will receive it and send it to the serial port.

            Unfortunately, Domoticz can't really deal with it.

            Soooooo... For now, I'm using Termite on the serial port to capture the packets and time stamp them. That at least allows me to continue with measurements as to whether MY_PASSIVE_NODE saves significant energy or not. It also has 1 second resolution, not the 5 minute time resoluton of Domoticz.

            NeverDieN 1 Reply Last reply
            0
            • NeverDieN Offline
              NeverDieN Offline
              NeverDie
              Hero Member
              wrote on last edited by
              #628

              @d00616

              The specification for the nRF52832 advertises: "Fast wake-up using 64 MHz internal oscillator."

              However, there's not a menu item in the tool menu to set that. So, how is it done?

              1 Reply Last reply
              0
              • NeverDieN NeverDie

                @NeverDie said in nRF5 Bluetooth action!:

                MY_PASSIVE_NODE,

                I found a shlocky workaround for the current problems with MY_PASSIVE_NODE. It turns out that if you have the gateway up and running before the passive node power up, then the passive node often gets stuck in a loop trying to register itself. However, for whatever reason, if you first power up the passive node, let it run for a bit trying to register and failing, and then power on the gateway, the loop is avoided. Then the passive node will broadcast one packet per cycle and the gateway will receive it and send it to the serial port.

                Unfortunately, Domoticz can't really deal with it.

                Soooooo... For now, I'm using Termite on the serial port to capture the packets and time stamp them. That at least allows me to continue with measurements as to whether MY_PASSIVE_NODE saves significant energy or not. It also has 1 second resolution, not the 5 minute time resoluton of Domoticz.

                NeverDieN Offline
                NeverDieN Offline
                NeverDie
                Hero Member
                wrote on last edited by
                #629

                @NeverDie said in nRF5 Bluetooth action!:

                @NeverDie said in nRF5 Bluetooth action!:

                MY_PASSIVE_NODE,

                I found a shlocky workaround for the current problems with MY_PASSIVE_NODE. It turns out that if you have the gateway up and running before the passive node power up, then the passive node often gets stuck in a loop trying to register itself. However, for whatever reason, if you first power up the passive node, let it run for a bit trying to register and failing, and then power on the gateway, the loop is avoided. Then the passive node will broadcast one packet per cycle and the gateway will receive it and send it to the serial port.

                Unfortunately, Domoticz can't really deal with it.

                Soooooo... For now, I'm using Termite on the serial port to capture the packets and time stamp them. That at least allows me to continue with measurements as to whether MY_PASSIVE_NODE saves significant energy or not. It also has 1 second resolution, not the 5 minute time resoluton of Domoticz.

                Good news! Using the above method, I've established that the EByte nRF52832 module consumes an order of magnitude less current if "MY_PASSIVE_NODE" is defined. :) :) :)

                Nca78N 1 Reply Last reply
                2
                • NeverDieN NeverDie

                  @NeverDie said in nRF5 Bluetooth action!:

                  @NeverDie said in nRF5 Bluetooth action!:

                  MY_PASSIVE_NODE,

                  I found a shlocky workaround for the current problems with MY_PASSIVE_NODE. It turns out that if you have the gateway up and running before the passive node power up, then the passive node often gets stuck in a loop trying to register itself. However, for whatever reason, if you first power up the passive node, let it run for a bit trying to register and failing, and then power on the gateway, the loop is avoided. Then the passive node will broadcast one packet per cycle and the gateway will receive it and send it to the serial port.

                  Unfortunately, Domoticz can't really deal with it.

                  Soooooo... For now, I'm using Termite on the serial port to capture the packets and time stamp them. That at least allows me to continue with measurements as to whether MY_PASSIVE_NODE saves significant energy or not. It also has 1 second resolution, not the 5 minute time resoluton of Domoticz.

                  Good news! Using the above method, I've established that the EByte nRF52832 module consumes an order of magnitude less current if "MY_PASSIVE_NODE" is defined. :) :) :)

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

                  @NeverDie said in nRF5 Bluetooth action!:

                  Good news! Using the above method, I've established that the EByte nRF52832 module consumes an order of magnitude less current if "MY_PASSIVE_NODE" is defined. :) :) :)

                  Does that mean you are reaching consumption levels as low as atmega+nrf24 ?

                  NeverDieN 1 Reply Last reply
                  0
                  • Nca78N Nca78

                    @NeverDie said in nRF5 Bluetooth action!:

                    Good news! Using the above method, I've established that the EByte nRF52832 module consumes an order of magnitude less current if "MY_PASSIVE_NODE" is defined. :) :) :)

                    Does that mean you are reaching consumption levels as low as atmega+nrf24 ?

                    NeverDieN Offline
                    NeverDieN Offline
                    NeverDie
                    Hero Member
                    wrote on last edited by NeverDie
                    #631

                    @Nca78 said in nRF5 Bluetooth action!:

                    @NeverDie said in nRF5 Bluetooth action!:

                    Good news! Using the above method, I've established that the EByte nRF52832 module consumes an order of magnitude less current if "MY_PASSIVE_NODE" is defined. :) :) :)

                    Does that mean you are reaching consumption levels as low as atmega+nrf24 ?

                    Not for all cases, but maybe for this case, provided I can run it off of both of its internal resonators (the 32Khz and the 64Mhz). The datasheet promises a "fast wakeup" if run off the internal 64mHz resonator, and its access to the radio should be a lot faster through DMA, which is automatic.

                    Presently, running it all night long (12 hours), it lost less than 50mv off the supercap, and some of that is probably just self-discharge by the supercap.

                    Also, getting the DCDC to work would no doubt help...

                    1 Reply Last reply
                    1
                    • NeverDieN Offline
                      NeverDieN Offline
                      NeverDie
                      Hero Member
                      wrote on last edited by NeverDie
                      #632

                      Maybe using the internal oscillator doesn't matter. Thge datasheet says, "The HFXO must be running to use the RADIO..."

                      i.e. without the external 64Mhz oscillator, the radio can't be used. So, if that's true, then I guess from my point of view the 64Mhz external oscillator isn't optional after all. Perhaps that explains why there is one on literaly every module I've seen so far.

                      1 Reply Last reply
                      0
                      • NeverDieN Offline
                        NeverDieN Offline
                        NeverDie
                        Hero Member
                        wrote on last edited by NeverDie
                        #633

                        I'm ordering today some AVX supercaps with smaller Farad values so that I can get more resolution on the amount of energy (at least relatively) being consumed in different configurations.

                        1 Reply Last reply
                        0
                        • NeverDieN Offline
                          NeverDieN Offline
                          NeverDie
                          Hero Member
                          wrote on last edited by NeverDie
                          #634

                          I received the nRF51822 modules I had ordered (center of photograph):
                          0_1502986163619_nRF51822.jpg
                          Small enough to fit almost anywhere!

                          1 Reply Last reply
                          0
                          • NeverDieN Offline
                            NeverDieN Offline
                            NeverDie
                            Hero Member
                            wrote on last edited by
                            #635

                            @Nca78
                            Did you ever figure out how to reset the MCU on the Ebyte module?

                            Nca78N 1 Reply Last reply
                            0
                            • NeverDieN NeverDie

                              @rmtucker said in nRF5 Bluetooth action!:

                              I tried my nrf24l01 pa lna sma but it seemed to be only working every now and again so waiting on a new one being delivered.

                              According to hackaday, there's a certain very common model which doesn't perform well unless you wrap it first in saran wrap (as an electrical insulator) and then in aluminum foil (except for the antenna, obviously).

                              rmtuckerR Offline
                              rmtuckerR Offline
                              rmtucker
                              wrote on last edited by
                              #636

                              @NeverDie
                              I connected a new amplified nrf24 to the gateway with the tin foil as mentioned and it is reading -60dB compared to -89dB with the non amplified version.
                              Now lets see how far it goes past the original test.😉

                              rmtuckerR NeverDieN 2 Replies Last reply
                              1
                              • rmtuckerR rmtucker

                                @NeverDie
                                I connected a new amplified nrf24 to the gateway with the tin foil as mentioned and it is reading -60dB compared to -89dB with the non amplified version.
                                Now lets see how far it goes past the original test.😉

                                rmtuckerR Offline
                                rmtuckerR Offline
                                rmtucker
                                wrote on last edited by
                                #637

                                @rmtucker
                                Well outside of the garden now no problem.😊
                                On to supercaps now i think.😉

                                1 Reply Last reply
                                0
                                • rmtuckerR rmtucker

                                  @NeverDie
                                  I connected a new amplified nrf24 to the gateway with the tin foil as mentioned and it is reading -60dB compared to -89dB with the non amplified version.
                                  Now lets see how far it goes past the original test.😉

                                  NeverDieN Offline
                                  NeverDieN Offline
                                  NeverDie
                                  Hero Member
                                  wrote on last edited by NeverDie
                                  #638

                                  @rmtucker said in nRF5 Bluetooth action!:

                                  @NeverDie
                                  I connected a new amplified nrf24 to the gateway with the tin foil as mentioned and it is reading -60dB compared to -89dB with the non amplified version.

                                  Did the tin foil make a difference? Hackaday seemed to think it made a big difference. I haven't tried it yet.

                                  rmtuckerR 1 Reply Last reply
                                  0
                                  • NeverDieN NeverDie

                                    @rmtucker said in nRF5 Bluetooth action!:

                                    @NeverDie
                                    I connected a new amplified nrf24 to the gateway with the tin foil as mentioned and it is reading -60dB compared to -89dB with the non amplified version.

                                    Did the tin foil make a difference? Hackaday seemed to think it made a big difference. I haven't tried it yet.

                                    rmtuckerR Offline
                                    rmtuckerR Offline
                                    rmtucker
                                    wrote on last edited by
                                    #639

                                    @NeverDie said in nRF5 Bluetooth action!:

                                    @rmtucker said in nRF5 Bluetooth action!:

                                    @NeverDie
                                    I connected a new amplified nrf24 to the gateway with the tin foil as mentioned and it is reading -60dB compared to -89dB with the non amplified version.

                                    Did the tin foil make a difference? Hackaday seemed to think it made a big difference. I haven't tried it yet.

                                    I think it did but what do you have to lose😉

                                    1 Reply Last reply
                                    0
                                    • NeverDieN Offline
                                      NeverDieN Offline
                                      NeverDie
                                      Hero Member
                                      wrote on last edited by
                                      #640

                                      Here's the Hackaday article: http://hackaday.com/2016/05/31/fixing-the-terrible-range-of-your-cheap-nrf24l01-palna-module/

                                      1 Reply Last reply
                                      0
                                      • NeverDieN NeverDie

                                        @Nca78
                                        Did you ever figure out how to reset the MCU on the Ebyte module?

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

                                        @NeverDie said in nRF5 Bluetooth action!:

                                        @Nca78
                                        Did you ever figure out how to reset the MCU on the Ebyte module?

                                        Sorry didn't touch my NRF5 in the last weeks. A bit busy on other things...

                                        1 Reply Last reply
                                        0
                                        • NeverDieN Offline
                                          NeverDieN Offline
                                          NeverDie
                                          Hero Member
                                          wrote on last edited by NeverDie
                                          #642

                                          What's the best way to make a "receive only" gateway? i.e. one that cannot transmit? Then I wouldn't need to worry about whether the gateway is turned on before powering up a MY_PASSIVE_NODE sensor mote. Is there a way to do it simply in hardware, or do I have to sabotage the gateway library code?

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


                                          7

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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