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 654.0k 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.
  • T Toyman

    @NeverDie it looks like we found an ideal gateway.
    What about the code they provide to activate PA+LNA?
    Can it be used in mysensors?

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

    @Toyman said in nRF5 Bluetooth action!:

    it looks like we found an ideal gateway.

    Agreed. :)

    @Toyman said in nRF5 Bluetooth action!:

    What about the code they provide to activate PA+LNA?

    I only extracted the needed info from their code to make it work. It works just fine with mysensors. For instance, here's mysensors code to activate the PA:

    #define PA_PIN 17
    #define CPS_PIN 6
    #define LNA_PIN 19 
    
      myNrf5_pinMode(CPS_PIN,OUTPUT_H0H1);
      digitalWrite(CPS_PIN,HIGH);  //disable.  Active LOW
      //while (!(digitalRead(CPS_PIN)==HIGH)) {} //wait until confirmed
       
      myNrf5_pinMode(LNA_PIN,OUTPUT_H0H1);
      digitalWrite(PA_PIN,LOW);  //disable.  active HIGH
      //while (!(digitalRead(LNA_PIN)==LOW)) {} //wait until confirmed
      
      myNrf5_pinMode(PA_PIN,OUTPUT_H0H1);  
      digitalWrite(PA_PIN,HIGH);  //enable.  active HIGH
      //while (!(digitalRead(PA_PIN)==HIGH)) {} //wait until confirmed
    
      //myNrf5_pinMode(CPS_PIN,OUTPUT_H0H1);  
      digitalWrite(CPS_PIN,LOW);  //enable.  active LOW
      //while (!(digitalRead(CPS_PIN)==LOW)) {} //wait until confirmed
    

    I've tested it, and it works. From my testing it appears that the pins are write-only (which is why the while loops are now commented out).

    1 Reply Last reply
    0
    • Nca78N Nca78

      @NeverDie said in nRF5 Bluetooth action!:

      In fact, both the Fanstel BT832 and the BT832X (with no LNA turned on) have much better receive range than an Ebyte module. They are head and shoulders better. In turn the BT832X (again, even with no LNA turned on) has a noticeably better receive range than the BT832.

      So, at this point, I'm sold on the Fanstel modules for the most common uses. The Fanstel modules also have a smaller footprint than the Ebyte modules. The Ebyte modules might be better for those cases where you need a lot of easily accessible pins to do something, but that's about it I think.

      Now we need to convince Fanstel to find another shipping method outside the US :D

      JokgiJ Offline
      JokgiJ Offline
      Jokgi
      wrote on last edited by Jokgi
      #1240

      @Nca78 How about sending a email to the company and ask if there is a distributor / Rep in your area?
      Dr. Yuan Fan
      Fanstel Corp.
      Trusted Name Since 1990
      7466 E. Monte Cristo Ave., Scottsdale AZ 85260 USA
      Tel. 1480-948-4928 x101;
      email: yfan@fanstel.com http://www.fanstel.com

      1 Reply Last reply
      2
      • T Toyman

        @NeverDie it looks like we found an ideal gateway.
        What about the code they provide to activate PA+LNA?
        Can it be used in mysensors?

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

        @Toyman said in nRF5 Bluetooth action!:

        it looks like we found an ideal gateway.

        Yup, here's my gateway:
        https://www.openhardware.io/view/491/PA-LNA-nRF52832-ESP-LINK-Shield-for-Wemos-D1-Mini-ESP8266

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

          @Toyman Have you received your Fanstels yet? I'd like to compare notes with someone on the LNA part of it.

          T 1 Reply Last reply
          0
          • NeverDieN NeverDie

            @Toyman Have you received your Fanstels yet? I'd like to compare notes with someone on the LNA part of it.

            T Offline
            T Offline
            Toyman
            wrote on last edited by
            #1243

            @NeverDie I haven't ordered yet. Waiting for my paycheck.

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

              When you combine my BT832XE gateway with the LNA on this external "booster," the result is really great reception range, even at 2Mbps:
              0_1509558101829_awesome.jpg
              I think this combo will be hard to beat. In fact, I can receive even from nRF24L01's that are far away (further away than a nRF24L01 with PA+LNA can receive). :)

              U 1 Reply Last reply
              0
              • rmtuckerR Offline
                rmtuckerR Offline
                rmtucker
                wrote on last edited by rmtucker
                #1245

                Well my NRF51822 has been running 25days approx sending every 60secs on a cr2032.
                No signs of problems yet.
                0_1509561715247_upload-e21e5fcc-113b-4d47-bd54-7d7d89841bf9

                NeverDieN 1 Reply Last reply
                2
                • rmtuckerR rmtucker

                  Well my NRF51822 has been running 25days approx sending every 60secs on a cr2032.
                  No signs of problems yet.
                  0_1509561715247_upload-e21e5fcc-113b-4d47-bd54-7d7d89841bf9

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

                  @rmtucker I don't recall whether you already have, but would you mind posting a photo of your node?

                  rmtuckerR NeverDieN 2 Replies Last reply
                  0
                  • NeverDieN NeverDie

                    @rmtucker I don't recall whether you already have, but would you mind posting a photo of your node?

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

                    @NeverDie
                    Its just the waveshare ble400 board but i have cut one of the tracks to prevent the residual drain from the on board regulator.
                    And i have an external cr2032 battery holder feeding it.
                    I would love to make a small pcb for the NRF core to plug in to instead of the big motherboard as below, but i failed dismally at the design side of things.

                    0_1509571898531_upload-00d6665f-f065-4ed7-927d-2a5e27224fc6

                    1 Reply Last reply
                    0
                    • NeverDieN NeverDie

                      @rmtucker I don't recall whether you already have, but would you mind posting a photo of your node?

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

                      @rmtucker said in nRF5 Bluetooth action!:

                      I would love to make a small pcb for the NRF core to plug in to instead of the big motherboard as below

                      Here you go: https://www.openhardware.io/view/510/Button-cell-Temperature-Humidity-sensor#tabs-bom

                      This should be even smaller and less expensive than what you wished for. I made it for the Si7021 because I had some extras laying around. The BME280 would also be a good choice.

                      rmtuckerR NeverDieN 2 Replies Last reply
                      1
                      • NeverDieN NeverDie

                        @rmtucker said in nRF5 Bluetooth action!:

                        I would love to make a small pcb for the NRF core to plug in to instead of the big motherboard as below

                        Here you go: https://www.openhardware.io/view/510/Button-cell-Temperature-Humidity-sensor#tabs-bom

                        This should be even smaller and less expensive than what you wished for. I made it for the Si7021 because I had some extras laying around. The BME280 would also be a good choice.

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

                        @NeverDie
                        That would be perfect but i would have to order everything from china.
                        Well maybe not the led and resistor.
                        I also prefer the si7021 also it has far less consumption and quite accurate.

                        NeverDieN 1 Reply Last reply
                        0
                        • rmtuckerR rmtucker

                          @NeverDie
                          That would be perfect but i would have to order everything from china.
                          Well maybe not the led and resistor.
                          I also prefer the si7021 also it has far less consumption and quite accurate.

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

                          @rmtucker said in nRF5 Bluetooth action!:

                          I also prefer the si7021 also it has far less consumption and quite accurate

                          As long as the humidity is less than 80%. Otherwise, you need to turn on its "heater" to avoid permanently ruining its humidity accuracy.

                          Nca78N 1 Reply Last reply
                          0
                          • NeverDieN NeverDie

                            @rmtucker said in nRF5 Bluetooth action!:

                            I also prefer the si7021 also it has far less consumption and quite accurate

                            As long as the humidity is less than 80%. Otherwise, you need to turn on its "heater" to avoid permanently ruining its humidity accuracy.

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

                            @NeverDie it's not that quick, it happened only to the one I put in bathroom with very high humidity for a long time.
                            Other sensors reached over 90% humidity sometimes and spent many days in the 75-85 range but just a nightly use of aircon seems to have maintained their hability to measure humidity.
                            So my feeling is unless you are in a very humid environment you should have no problem with the si7021.

                            I'm in a tropical country and problem happened during rainy season, >80% humidity at 30°C makes a lot of humity in the air, I don't think you get close to that level in European countries or most of the US.

                            NeverDieN 1 Reply Last reply
                            1
                            • Nca78N Nca78

                              @NeverDie it's not that quick, it happened only to the one I put in bathroom with very high humidity for a long time.
                              Other sensors reached over 90% humidity sometimes and spent many days in the 75-85 range but just a nightly use of aircon seems to have maintained their hability to measure humidity.
                              So my feeling is unless you are in a very humid environment you should have no problem with the si7021.

                              I'm in a tropical country and problem happened during rainy season, >80% humidity at 30°C makes a lot of humity in the air, I don't think you get close to that level in European countries or most of the US.

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

                              @Nca78 I'm just taking what the datasheet says at face value. In practical terms, I think it's fairly rare to see >80% humidity in an indoor "conditioned space" (well, maybe a bathroom is an exception to that sweeping generality) but outdoors it happens by definition anytime the air temperature approaches the dew point. That certainly does occur in quite a lot of geographies.

                              So, for that reason, I think of the si7021 as more of an indoor TH sensor. From what I can tell, the BME280 doesn't have this issue, so it would therefore seem to be a good choice for outdoors.

                              Of course, the si7021 sensor modules are made in Asia, and if it's tropical asia (Thailand for instance?), it may have already been exposed to high humidity. So, that's a bit of an unknown factor hanging in the background.

                              Anyhow, thanks for the additional insight that maybe the si7021 really needs to soak in high humidity for a long time before it gets ruined. Otherwise, it can spring back from brief exposures. I certainly hope that's the case. Running its heater does consume a significant amount of current.

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

                                It turns out that on the nRF52832, pins 9 and 10 are assigned to NFC by default. The following code allows them to behave "almost" like regular GPIO pins:

                                  //Make pins 9 and 10 usable as GPIO pins.
                                  NRF_NFCT->TASKS_DISABLE=1;  //disable NFC
                                  NRF_NVMC->CONFIG=1;  // Write enable the UICR
                                  NRF_UICR->NFCPINS=0; //Make pins 9 and 10 usable as GPIO pins.
                                  NRF_NVMC->CONFIG=0;  // Put the UICR back into read-only mode.
                                

                                Well, good enough for a blink demo anyway.

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

                                  Is there some particular trick to reading the built-in temperature sensor? I've tried it a number of ways, but after doing

                                  NRF_TEMP->TASKS_START
                                  

                                  I can never get NRF_TEMP->DATARDY to return true, no matter how long I wait. If I just try reading NRF_TEMP->TEMP anyway, it always returns zero.

                                  [Edit: Nevermind. The answer was right in front of me. It obviously should have been:

                                  NRF_TEMP->TASKS_START=1;
                                  

                                  Because the PPI uses the former syntax, and the regular code uses the later syntax for the same thing, I sometimes interchange the syntax by mistake.

                                  Anyhow, problem solved. :)

                                  1 Reply Last reply
                                  0
                                  • NeverDieN NeverDie

                                    When you combine my BT832XE gateway with the LNA on this external "booster," the result is really great reception range, even at 2Mbps:
                                    0_1509558101829_awesome.jpg
                                    I think this combo will be hard to beat. In fact, I can receive even from nRF24L01's that are far away (further away than a nRF24L01 with PA+LNA can receive). :)

                                    U Offline
                                    U Offline
                                    Uhrheber
                                    wrote on last edited by
                                    #1255

                                    @NeverDie said in nRF5 Bluetooth action!:

                                    BT832XE

                                    What booster is it?

                                    1 Reply Last reply
                                    0
                                    • NeverDieN NeverDie

                                      @rmtucker said in nRF5 Bluetooth action!:

                                      I would love to make a small pcb for the NRF core to plug in to instead of the big motherboard as below

                                      Here you go: https://www.openhardware.io/view/510/Button-cell-Temperature-Humidity-sensor#tabs-bom

                                      This should be even smaller and less expensive than what you wished for. I made it for the Si7021 because I had some extras laying around. The BME280 would also be a good choice.

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

                                      @NeverDie said in nRF5 Bluetooth action!:

                                      @rmtucker said in nRF5 Bluetooth action!:

                                      I would love to make a small pcb for the NRF core to plug in to instead of the big motherboard as below

                                      Here you go: https://www.openhardware.io/view/510/Button-cell-Temperature-Humidity-sensor#tabs-bom

                                      This should be even smaller and less expensive than what you wished for. I made it for the Si7021 because I had some extras laying around. The BME280 would also be a good choice.

                                      I'm realizing now that I can get a decent temperature reading from just the nRF5x chip itself. With calibration it should get even better.

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

                                        Today I finally received the PTR9618PA that I ordered a while back:
                                        0_1510110556809_ptr1.jpg
                                        0_1510110572062_ptr2.jpg

                                        Like the Fanstel modules, it lacks a 32.768Khz crystal oscillator. Also, as you can see from the second photo, the PA/LNA chip is the 2401C: http://www.skyworksinc.com/Product/3213/RFX2401C

                                        1 Reply Last reply
                                        0
                                        • NeverDieN NeverDie

                                          @NeverDie said in nRF5 Bluetooth action!:

                                          @rmtucker said in nRF5 Bluetooth action!:

                                          I would love to make a small pcb for the NRF core to plug in to instead of the big motherboard as below

                                          Here you go: https://www.openhardware.io/view/510/Button-cell-Temperature-Humidity-sensor#tabs-bom

                                          This should be even smaller and less expensive than what you wished for. I made it for the Si7021 because I had some extras laying around. The BME280 would also be a good choice.

                                          I'm realizing now that I can get a decent temperature reading from just the nRF5x chip itself. With calibration it should get even better.

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

                                          @NeverDie said in nRF5 Bluetooth action!:

                                          @NeverDie said in nRF5 Bluetooth action!:

                                          I'm realizing now that I can get a decent temperature reading from just the nRF5x chip itself. With calibration it should get even better.

                                          I used the internal temperature in the past but i can not remember how i did it?
                                          Do you have some example code to remind me?

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


                                          19

                                          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