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

    Help needed!! I am trying to program nrf51822 with Black Magic Probe , but BMP is not recognized by Arduino IDE.
    I can do everything in gdb, e.g. do mass erase, upload soft device etc, but BMP is simply not listed in programmers' list in Arduino IDE so I can't upload sketches.

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

    Could anyone tell me why the waveshare board is pulling 140uA when sleeping with everything unpugged including the usb and all the header jumpers so only 3.3v and ground fed to the header pins so not using the regulator etc.
    I have attached a link to the schematic hoping some circuit wiz might be able to explain.
    link text

    If i unplug the core board and just power that with 3.3v and gnd it only uses 5uA when sleeping.

    mtiutiuM 1 Reply Last reply
    0
    • rmtuckerR rmtucker

      Could anyone tell me why the waveshare board is pulling 140uA when sleeping with everything unpugged including the usb and all the header jumpers so only 3.3v and ground fed to the header pins so not using the regulator etc.
      I have attached a link to the schematic hoping some circuit wiz might be able to explain.
      link text

      If i unplug the core board and just power that with 3.3v and gnd it only uses 5uA when sleeping.

      mtiutiuM Offline
      mtiutiuM Offline
      mtiutiu
      Hardware Contributor
      wrote on last edited by
      #577

      @rmtucker

      Even if you're not using the regulator and the CP2102 usb-serial converter there are some leakage currents which are caused by the output stages of those IC's. For example the output stage of the voltage regulator can draw some even if it's not powered. The CP2102 can draw also through the TXD1/RXD1/SUSPEND1 LEDs and the associated GPIO pins P0.11, P0.09, etc.

      So to prove and test that the above it's true you need to:

      1. Desolder the RT9193-33 or at least its output pin(Vout pin 5)
      2. Desolder R6, R7, R10

      This is what I can conclude by looking at that schematic. Any other opinions?

      NeverDieN 1 Reply Last reply
      0
      • mtiutiuM mtiutiu

        @rmtucker

        Even if you're not using the regulator and the CP2102 usb-serial converter there are some leakage currents which are caused by the output stages of those IC's. For example the output stage of the voltage regulator can draw some even if it's not powered. The CP2102 can draw also through the TXD1/RXD1/SUSPEND1 LEDs and the associated GPIO pins P0.11, P0.09, etc.

        So to prove and test that the above it's true you need to:

        1. Desolder the RT9193-33 or at least its output pin(Vout pin 5)
        2. Desolder R6, R7, R10

        This is what I can conclude by looking at that schematic. Any other opinions?

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

        @mtiutiu said in nRF5 Bluetooth action!:

        Any other opinions?

        Yes. If it really matters that much, RMTucker should buy or make a uCurrent Gold. Otherwise, he'll find hmself chasing phantoms. I have a Fluke 87V, and I don't trust it to do these types of measurements (I've tried, and the results are just wrong when compared to a uCurrent Gold). I would trust a crappy multimeter even less. Been there and tried that already.

        Just my two cents.

        NeverDieN Nca78N 2 Replies Last reply
        0
        • NeverDieN NeverDie

          @mtiutiu said in nRF5 Bluetooth action!:

          Any other opinions?

          Yes. If it really matters that much, RMTucker should buy or make a uCurrent Gold. Otherwise, he'll find hmself chasing phantoms. I have a Fluke 87V, and I don't trust it to do these types of measurements (I've tried, and the results are just wrong when compared to a uCurrent Gold). I would trust a crappy multimeter even less. Been there and tried that already.

          Just my two cents.

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

          BTW, uCurrent Gold is open source. I have an original, but you can buy clones. For instance, LowPowerLab sells a clone. You might get it faster than ordering from Australia.... unless you live in Australia. Dave Jones did a video for me once, and so I thought he deserved the profit instead of somebody else. :)

          1 Reply Last reply
          0
          • NeverDieN NeverDie

            @mtiutiu said in nRF5 Bluetooth action!:

            Any other opinions?

            Yes. If it really matters that much, RMTucker should buy or make a uCurrent Gold. Otherwise, he'll find hmself chasing phantoms. I have a Fluke 87V, and I don't trust it to do these types of measurements (I've tried, and the results are just wrong when compared to a uCurrent Gold). I would trust a crappy multimeter even less. Been there and tried that already.

            Just my two cents.

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

            @NeverDie said in nRF5 Bluetooth action!:

            @mtiutiu said in nRF5 Bluetooth action!:

            Any other opinions?

            Yes. If it really matters that much, RMTucker should buy or make a uCurrent Gold. Otherwise, he'll find hmself chasing phantoms. I have a Fluke 87V, and I don't trust it to do these types of measurements (I've tried, and the results are just wrong when compared to a uCurrent Gold). I would trust a crappy multimeter even less. Been there and tried that already.

            Just my two cents.

            It just depends on the burden voltage, no ? It's proportional to current in the circuit so in sleep mode when measuring around 10 uA it should be negligible.
            Anyway I measure when powered with 3.3V so I'm sure what I measure is higher than what I will get in reality when circuit is powered with a 3V battery.

            1 Reply Last reply
            1
            • mtiutiuM Offline
              mtiutiuM Offline
              mtiutiu
              Hardware Contributor
              wrote on last edited by
              #581

              For measuring small currents I'm using Texas Instruments EnergyTrace piece of technology and it works pretty well. You just need one of their development boards with energytrace special microcontroller embedded which is very cheap. More infos here: http://43oh.com/2015/09/how-to-measure-an-energia-applications-power-usage-with-energytrace/

              It can be used to measure other boards power usage also - you just need to take of some jumpers and plug in your external board.

              It gives you real time energy measurements and with plotting too(and battery life estimation is displayed real time too). No need to worry about burden voltage and other external factors which affect the measurements.

              NeverDieN 1 Reply Last reply
              1
              • mtiutiuM mtiutiu

                For measuring small currents I'm using Texas Instruments EnergyTrace piece of technology and it works pretty well. You just need one of their development boards with energytrace special microcontroller embedded which is very cheap. More infos here: http://43oh.com/2015/09/how-to-measure-an-energia-applications-power-usage-with-energytrace/

                It can be used to measure other boards power usage also - you just need to take of some jumpers and plug in your external board.

                It gives you real time energy measurements and with plotting too(and battery life estimation is displayed real time too). No need to worry about burden voltage and other external factors which affect the measurements.

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

                @mtiutiu
                I think maybe the nRF52 DK also has some energy measurement capability, but I haven't looked into it.

                T 1 Reply Last reply
                0
                • NeverDieN NeverDie

                  @mtiutiu
                  I think maybe the nRF52 DK also has some energy measurement capability, but I haven't looked into it.

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

                  @NeverDie
                  https://devzone.nordicsemi.com/tutorials/28/

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

                    Looks like I was wrong earlier about the voltage reference being Vcc when doing an analog read on a pin. Instead, it seems to be a fixed reference. In any case, I'm getting better results with an expression like this, which is independent of Vcc:

                    millivolts = (analogRead(PIN)*3000/4095)

                    What are others here doing in this case?

                    rmtuckerR 1 Reply Last reply
                    0
                    • NeverDieN NeverDie

                      Looks like I was wrong earlier about the voltage reference being Vcc when doing an analog read on a pin. Instead, it seems to be a fixed reference. In any case, I'm getting better results with an expression like this, which is independent of Vcc:

                      millivolts = (analogRead(PIN)*3000/4095)

                      What are others here doing in this case?

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

                      @NeverDie
                      As mentioned earlier by someone the nrf52 is preset to 0.6v internal ref and a 1/5 divider so 0 - 3v is the max input so your calculation is correct.
                      The nrf51 is different because the ref can be set to a few different settings but the default is vdd.

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

                        Is RSSI reporting implemented in the NRF5 setup yet?
                        If so how is it done?

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

                          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 2 Replies Last reply
                          1
                          • T Offline
                            T Offline
                            Toyman
                            wrote on last edited by
                            #588

                            How can I redefine UART pins in nrf51822? For example, if I want to have p13 as uart tx?

                            scalzS 1 Reply Last reply
                            0
                            • T Toyman

                              How can I redefine UART pins in nrf51822? For example, if I want to have p13 as uart tx?

                              scalzS Offline
                              scalzS Offline
                              scalz
                              Hardware Contributor
                              wrote on last edited by
                              #589

                              @Toyman
                              it has been explained above in the topic ;)
                              you have to follow

                              • https://github.com/mysensors/ArduinoBoards
                              • https://github.com/mysensors/ArduinoHwNRF5
                              T 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
                                #590

                                @scalz
                                Rssi works really well.
                                Thank you.

                                rmtuckerR 1 Reply Last reply
                                1
                                • rmtuckerR rmtucker

                                  @scalz
                                  Rssi works really well.
                                  Thank you.

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

                                  So range test.
                                  Using esp8266 with standard nrf24 not amplified gateway at one end of the house.
                                  Nrf51822 node in garage which is not fastened to house so at a guess 15m through 3 brick walls is reporting -86db.
                                  I think that is quite respectable.;-)

                                  1 Reply Last reply
                                  0
                                  • scalzS scalz

                                    @Toyman
                                    it has been explained above in the topic ;)
                                    you have to follow

                                    • https://github.com/mysensors/ArduinoBoards
                                    • https://github.com/mysensors/ArduinoHwNRF5
                                    T Offline
                                    T Offline
                                    Toyman
                                    wrote on last edited by
                                    #592

                                    @scalz thx.

                                    1 Reply Last reply
                                    0
                                    • O Offline
                                      O Offline
                                      Omemanti
                                      wrote on last edited by
                                      #593

                                      Regarding the PCB/KiCad comments.
                                      I was trying out KiCad and copied the NRF52832 DC/DC schematic from the datasheet.

                                      It might be of help for someone.
                                      https://github.com/Omemanti/KiCAD/tree/master/NRF52832

                                      PS. been at KiCad for a couple of hours, been used to Eagle, so please double check.

                                      1 Reply Last reply
                                      0
                                      • rmtuckerR rmtucker

                                        @NeverDie
                                        As mentioned earlier by someone the nrf52 is preset to 0.6v internal ref and a 1/5 divider so 0 - 3v is the max input so your calculation is correct.
                                        The nrf51 is different because the ref can be set to a few different settings but the default is vdd.

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

                                        @rmtucker said in nRF5 Bluetooth action!:

                                        @NeverDie
                                        As mentioned earlier by someone the nrf52 is preset to 0.6v internal ref and a 1/5 divider so 0 - 3v is the max input so your calculation is correct.
                                        The nrf51 is different because the ref can be set to a few different settings but the default is vdd.

                                        I've lately found that I seem to get a more accurate measurement if I multiply by 3131 instead of 3000. Just an empirical result with no real theory behind it.

                                        1 Reply Last reply
                                        0
                                        • gohanG Offline
                                          gohanG Offline
                                          gohan
                                          Mod
                                          wrote on last edited by
                                          #595

                                          I don't know if it is actually related, but I'll post the link to this programmer :)
                                          adafruit.com/product/3571

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


                                          9

                                          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