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 635.1k 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.
  • 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
    • NeverDieN Offline
      NeverDieN Offline
      NeverDie
      Hero Member
      wrote on last edited by NeverDie
      #643

      It's getting too baroque. What I'd really like to have is a short nRF5 library of just the bare essentials (like the MIRF library is for the RF24).

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

        Hmmm... it looks like radiohead may be such a library: http://www.airspayce.com/mikem/arduino/RadioHead/classRH__NRF52.html

        1 Reply Last reply
        0
        • NeverDieN NeverDie

          It's getting too baroque. What I'd really like to have is a short nRF5 library of just the bare essentials (like the MIRF library is for the RF24).

          d00616D Offline
          d00616D Offline
          d00616
          Contest Winner
          wrote on last edited by
          #645

          @NeverDie said in nRF5 Bluetooth action!:

          It's getting too baroque. What I'd really like to have is a short nRF5 library of just the bare essentials (like the MIRF library is for the RF24).

          You can take a look into the actual Nordic NRF SDK. There are the ESB library for nRF24 compatible communication.

          NeverDieN 1 Reply Last reply
          1
          • d00616D d00616

            @NeverDie said in nRF5 Bluetooth action!:

            It's getting too baroque. What I'd really like to have is a short nRF5 library of just the bare essentials (like the MIRF library is for the RF24).

            You can take a look into the actual Nordic NRF SDK. There are the ESB library for nRF24 compatible communication.

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

            @d00616 said in nRF5 Bluetooth action!:

            @NeverDie said in nRF5 Bluetooth action!:

            It's getting too baroque. What I'd really like to have is a short nRF5 library of just the bare essentials (like the MIRF library is for the RF24).

            You can take a look into the actual Nordic NRF SDK. There are the ESB library for nRF24 compatible communication.

            The RadioHead library seems very easy to pickup and start using. Maybe it's me, but I can't say the same for the Nordic SDK.

            Interestingly, it looks as though @Yveaux may (?) have written the nRF51 part of the RadioHead library.

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

              I was able to program the tiny nRF51822 (earlier photograph above) by programming it as an xxaa Generic nRF51 with an RC oscillator.

              Nice!

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

                Here's a close-up photo:
                0_1503098146155_tinynRF51.jpg

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

                  FWIW, range on the tiny nRF51822 does seem compromised when compared against larger sized nRF52832 modules. Not really surprising, but I had hoped it might be a little better than it is.

                  d00616D 1 Reply Last reply
                  0
                  • NeverDieN NeverDie

                    FWIW, range on the tiny nRF51822 does seem compromised when compared against larger sized nRF52832 modules. Not really surprising, but I had hoped it might be a little better than it is.

                    d00616D Offline
                    d00616D Offline
                    d00616
                    Contest Winner
                    wrote on last edited by
                    #650

                    @NeverDie said in nRF5 Bluetooth action!:

                    FWIW, range on the tiny nRF51822 does seem compromised when compared against larger sized nRF52832 modules. Not really surprising, but I had hoped it might be a little better than it is.

                    This is an idea, I don't know if this helps. The two pins near the antenna are GND. Try to solder an 3cm isolated wire to the pin near your PCB and route it parallel of your pcb away from the nRF51 board. The extends the GND pane size.

                    NeverDieN 1 Reply Last reply
                    1
                    • rmtuckerR Offline
                      rmtuckerR Offline
                      rmtucker
                      wrote on last edited by
                      #651

                      Just in case anyone uses the waveshare ble400 board.
                      The board was consuming 150uA when fed with 3.3v bypassing the regulator.
                      I have cut through one of the tracks and now it is only consuming 4-5uA and it can still be used normally with the usb lead 5v as long as i place a dupont link across 2 pins.
                      If anyone needs photo's let me know.

                      1 Reply Last reply
                      0
                      • d00616D d00616

                        @NeverDie said in nRF5 Bluetooth action!:

                        FWIW, range on the tiny nRF51822 does seem compromised when compared against larger sized nRF52832 modules. Not really surprising, but I had hoped it might be a little better than it is.

                        This is an idea, I don't know if this helps. The two pins near the antenna are GND. Try to solder an 3cm isolated wire to the pin near your PCB and route it parallel of your pcb away from the nRF51 board. The extends the GND pane size.

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

                        @d00616 said in nRF5 Bluetooth action!:

                        @NeverDie said in nRF5 Bluetooth action!:

                        FWIW, range on the tiny nRF51822 does seem compromised when compared against larger sized nRF52832 modules. Not really surprising, but I had hoped it might be a little better than it is.

                        This is an idea, I don't know if this helps. The two pins near the antenna are GND. Try to solder an 3cm isolated wire to the pin near your PCB and route it parallel of your pcb away from the nRF51 board. The extends the GND pane size.

                        I'll give it a try. Is your idea to make it like a dipole antenna?

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

                          @d00616
                          Is this what you had in mind?
                          0_1503148850641_bipolar.jpg

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

                            Also, there are a couple of what look like large solder pads on the back of the PCB. I have no idea what they're for. Anyone know or care to guess?
                            0_1503149224079_pads.jpg

                            NeverDieN 1 Reply Last reply
                            0
                            • scalzS scalz

                              I don't think sendSignalStrength function is implemented yet, but you should be able to get this info with:

                              int16_t transportGetSendingRSSI(void)
                              int16_t transportGetReceivingRSSI(void)
                              
                              rmtuckerR Offline
                              rmtuckerR Offline
                              rmtucker
                              wrote on last edited by
                              #655

                              @scalz said in nRF5 Bluetooth action!:

                              I don't think sendSignalStrength function is implemented yet, but you should be able to get this info with:

                              int16_t transportGetSendingRSSI(void)
                              int16_t transportGetReceivingRSSI(void)
                              

                              Just wondering what both of these mean?
                              I assumed the transportGetReceivingRSSI(void) was the strength of signal from my Gateway ?
                              But what is the transportGetSendingRSSI(void)?

                              d00616D 1 Reply Last reply
                              0
                              • rmtuckerR rmtucker

                                @scalz said in nRF5 Bluetooth action!:

                                I don't think sendSignalStrength function is implemented yet, but you should be able to get this info with:

                                int16_t transportGetSendingRSSI(void)
                                int16_t transportGetReceivingRSSI(void)
                                

                                Just wondering what both of these mean?
                                I assumed the transportGetReceivingRSSI(void) was the strength of signal from my Gateway ?
                                But what is the transportGetSendingRSSI(void)?

                                d00616D Offline
                                d00616D Offline
                                d00616
                                Contest Winner
                                wrote on last edited by
                                #656

                                @rmtucker said in nRF5 Bluetooth action!:

                                But what is the transportGetSendingRSSI(void)?

                                This is the RSSI of the receiver. With nRF5 it's part of the ACK payload.

                                1 Reply Last reply
                                1
                                • rmtuckerR Offline
                                  rmtuckerR Offline
                                  rmtucker
                                  wrote on last edited by rmtucker
                                  #657

                                  Out of curiosity i stuck a cake tin over the top of the node and it just carried on transmitting,so i put it behind 4 walls and 1 floor down then behind the fuse box and consumer unit and eventually got it to drop to -68dB for received rssi but send rssi stayed at -45dB so it seems to be booming out and in.😉

                                  1 Reply Last reply
                                  0
                                  • NeverDieN NeverDie

                                    @d00616
                                    Is this what you had in mind?
                                    0_1503148850641_bipolar.jpg

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

                                    0_1503148850641_bipolar.jpg

                                    Results: I don't think it made the link worse, but it's not obvious that it made the link better either. Range seems about the same.

                                    Even more surprising: prior to adding this piece of wire, I didn't notice much improvement when I went from 2Mbps at Tx 0db to 250kbps at Tx 4db either. I had really thought it would be a tangible improvement in range, but if there was any improvement (and I'm not sure that there was), it seemed like only a modest amount.

                                    Conclusions/recommendations/suggestions/comments?

                                    mfalkviddM 1 Reply Last reply
                                    0
                                    • NeverDieN NeverDie

                                      0_1503148850641_bipolar.jpg

                                      Results: I don't think it made the link worse, but it's not obvious that it made the link better either. Range seems about the same.

                                      Even more surprising: prior to adding this piece of wire, I didn't notice much improvement when I went from 2Mbps at Tx 0db to 250kbps at Tx 4db either. I had really thought it would be a tangible improvement in range, but if there was any improvement (and I'm not sure that there was), it seemed like only a modest amount.

                                      Conclusions/recommendations/suggestions/comments?

                                      mfalkviddM Offline
                                      mfalkviddM Offline
                                      mfalkvidd
                                      Mod
                                      wrote on last edited by
                                      #659

                                      @NeverDie I don't know how much work is needed to make this work with nrf5, but @Yveaux has created a range tester that might be useful. https://github.com/Yveaux/MySensorsRangeTest

                                      It does use MySensors though, so it might provide more overhead than the bare-bone functionality you are looking for.

                                      1 Reply Last reply
                                      1
                                      • scalzS Offline
                                        scalzS Offline
                                        scalz
                                        Hardware Contributor
                                        wrote on last edited by scalz
                                        #660

                                        @NeverDie is your wire soldered to gnd?? if so, i would have soldered it to the antenna transmission line, as a monopole, with taking care of disabling the pcb antenna. i guess you're trying sort of dipole, but one branch is meandered/"coiled" so not sure if that would improve a lot like you noticed..

                                        NeverDieN 1 Reply Last reply
                                        1
                                        • scalzS scalz

                                          @NeverDie is your wire soldered to gnd?? if so, i would have soldered it to the antenna transmission line, as a monopole, with taking care of disabling the pcb antenna. i guess you're trying sort of dipole, but one branch is meandered/"coiled" so not sure if that would improve a lot like you noticed..

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

                                          @scalz said in nRF5 Bluetooth action!:

                                          @NeverDie is your wire soldered to gnd?? if so, i would have soldered it to the antenna transmission line, as a monopole, with taking care of disabling the pcb antenna. i guess you're trying sort of dipole, but one branch is meandered/"coiled" so not sure if that would improve a lot like you noticed..

                                          In this instance, I don't see a way to attach to the actual antenna. On some boards I see a little hole where a wire can be attached. On this one, I guess maybe it could be done by carefully scraping off the solder mask and then soldering to the trace.... Its a gamble though: t would be all too easy to scrape off the trace in the process.

                                          Anyhow, enlarging the footprint of the board kinda defeats the purpose of its small size. I think maybe it just is what it is, and the relatively poor performance explains its relatively low price.

                                          Maybe what would rescue it is an adequate ground plane on whatever PCB it attaches to. For instance, I'm thinking it might be a nice match for a "Chirp" soil moisture sensor, which maybe (I'd have to look) has a long--though narrow--ground plane. Making the Chirp wireless would be a nice upgrade. :) It has an attiny MCU, which (unless someone knows differently) isn't enough to control, say, an SMD nRF24l01. I suppose it could be redesigned to use an atmega328p (which would be preferable), but you can already buy cheap pre-made attiny Chirps from China, so there's an argument for leveraging that instead by attaching maybe this cheap wireless module to it.

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


                                          12

                                          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