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 631.3k 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.
  • scalzS scalz

    @Mike_Lemo @Toyman
    BLEPeripheral lib from sandeep is working fine with nrf52832, as i'm using it ;)

    Regarding the sch above, it looks like a classic circuit (in LDO mode, not surprising as DCDC mode is optional). I'm not using same values but this should work..

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

    @scalz said in nRF5 Bluetooth action!:

    @Mike_Lemo @Toyman

    Regarding the sch above, it looks like a classic circuit (in LDO mode, not surprising as DCDC mode is optional). I'm not using same values but this should work..

    From what little I've read in the nRF52832 datasheet (and please do correct me if I'm wrong), the LDO mode is the "default", and is not as power efficient as the DCDC mode. Not good, as most of us probably want this for battery operation. Therefore, even if it were to work in LDO mode, what we should probably want is the DCDC mode. So, are we screwed? Or, can DCDC mode be easily applied on top of whatever they've already hardwired in the module by just adding a few more components?

    mtiutiuM 1 Reply Last reply
    0
    • T Toyman

      @Mike_Lemo

      http://www.arduino.org/learning/reference/ble

      This is their "homework" in anticipation of Primo launch. It does support nrf52

      M Offline
      M Offline
      Mike_Lemo
      wrote on last edited by
      #343

      @Toyman said in nRF5 Bluetooth action!:

      @Mike_Lemo

      http://www.arduino.org/learning/reference/ble

      This is their "homework" in anticipation of Primo launch. It does support nrf52

      @scalz said in nRF5 Bluetooth action!:

      @Mike_Lemo @Toyman
      BLEPeripheral lib from sandeep is working fine with nrf52832, as i'm using it ;)

      Regarding the sch above, it looks like a classic circuit (in LDO mode, not surprising as DCDC mode is optional). I'm not using same values but this should work..

      If you say so that's great I've downloaded that BLEPeripheral library opened one of the test and led examples and there are a few things I don't understand why would I have to define those IRQ pins and include SPI library to use the BLE on board?

      If order to send data back and forth between peripheral and central you have to use this function:?

      to read: switchCharacteristic.value();
      to write:characteristic.setValue(value, length);

      do you maybe have a little simple example to establish a connecting between central and peripheral with sending random data and peripheral and a smartphone?

      1 Reply Last reply
      0
      • NeverDieN NeverDie

        @scalz said in nRF5 Bluetooth action!:

        @Mike_Lemo @Toyman

        Regarding the sch above, it looks like a classic circuit (in LDO mode, not surprising as DCDC mode is optional). I'm not using same values but this should work..

        From what little I've read in the nRF52832 datasheet (and please do correct me if I'm wrong), the LDO mode is the "default", and is not as power efficient as the DCDC mode. Not good, as most of us probably want this for battery operation. Therefore, even if it were to work in LDO mode, what we should probably want is the DCDC mode. So, are we screwed? Or, can DCDC mode be easily applied on top of whatever they've already hardwired in the module by just adding a few more components?

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

        @NeverDie

        For DC-DC converter you need to add some external inductor(s) and some capacitor to the DCC pin if I remember correctly. This can be observed here:
        0_1500899991486_nrf52832_dc_dc.png

        And more than that it needs to be enabled from the SDK also.

        I didn't read the official datasheet and the recommendations from it yet...so I don't know all the implications.

        From what I've read so far this needs to be added before anything else(I think a good place is the before hook from MySensors):

        void before() {
          NRF_POWER->DCDCEN = 1;
        }
        

        And maybe this will shed some light too: https://devzone.nordicsemi.com/question/69091/a-question-about-nrf52832s-dcdc-and-ldo/

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

          @mtiutiu there is a little confusion :) this is the reference sch for nrf51. It is a bit different for nrf52.

          @Mike_Lemo no you dont need to set these pins which could be removed from the init function.
          Yes these functions are used for ble comm.
          I think sharing my unfinished code is useless (arduino & phone) if you have troubles with arduino examples. I have no time for an howto actually and little bit out of mysensors scope imho .

          The arduino examples are working fine.
          There are already written howtos at sparkfun, adafruit, blogs etc
          If you need more infos, maybe you can get more help on arduino forum too..
          And for general understanding of ble and its mechanisms (providers, services, characteristics..), you can take a look at bluetooth sig.
          Finally for custom phone app, you have to code with your preferred techno or use nordics app for simple debug

          mtiutiuM 1 Reply Last reply
          0
          • scalzS scalz

            @mtiutiu there is a little confusion :) this is the reference sch for nrf51. It is a bit different for nrf52.

            @Mike_Lemo no you dont need to set these pins which could be removed from the init function.
            Yes these functions are used for ble comm.
            I think sharing my unfinished code is useless (arduino & phone) if you have troubles with arduino examples. I have no time for an howto actually and little bit out of mysensors scope imho .

            The arduino examples are working fine.
            There are already written howtos at sparkfun, adafruit, blogs etc
            If you need more infos, maybe you can get more help on arduino forum too..
            And for general understanding of ble and its mechanisms (providers, services, characteristics..), you can take a look at bluetooth sig.
            Finally for custom phone app, you have to code with your preferred techno or use nordics app for simple debug

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

            @scalz

            My bad. I corrected the initial post. Hope is all well now.

            I'm going to try this one too when I have time wt51822-s4at

            This is the cheapest of all that I found so far and yes it's not a nrf52832 but a nrf51822 - for my purpose this one is very good too. It doesn't have all the pins exposed - only 7 of them but again it should fit my general usage. I'm curious about its performance though. I'll see that when I get my hands on it. This is the official datasheet(or so it seems): https://4tronix.co.uk/picobot2/WT51822-S4AT.pdf

            Nca78N 1 Reply Last reply
            0
            • NeverDieN NeverDie

              They sent me two files, but I have no idea what they are, or how to open them. Maybe someone here recognizes them or can open them?
              0_1500890784640_E73-2G4M04S-PCBLIB.PCBLIB
              0_1500890793687_E73-2G4M04S-PCB-V1.0.PCBDOCPreview

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

              @NeverDie said in nRF5 Bluetooth action!:

              They sent me two files, but I have no idea what they are, or how to open them. Maybe someone here recognizes them or can open them?
              0_1500890784640_E73-2G4M04S-PCBLIB.PCBLIB
              0_1500890793687_E73-2G4M04S-PCB-V1.0.PCBDOCPreview

              Opening the first file in notepad, I notice that it says, "PCB 6.0 Binary Library File ". I had asked Ebyte for either the module schematic or a reference design using their part, so I'm guessing this is it, in some sort of PCB CAD file.

              mtiutiuM 2 Replies Last reply
              0
              • NeverDieN NeverDie

                @NeverDie said in nRF5 Bluetooth action!:

                They sent me two files, but I have no idea what they are, or how to open them. Maybe someone here recognizes them or can open them?
                0_1500890784640_E73-2G4M04S-PCBLIB.PCBLIB
                0_1500890793687_E73-2G4M04S-PCB-V1.0.PCBDOCPreview

                Opening the first file in notepad, I notice that it says, "PCB 6.0 Binary Library File ". I had asked Ebyte for either the module schematic or a reference design using their part, so I'm guessing this is it, in some sort of PCB CAD file.

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

                @NeverDie

                I think they use Altium Designer and that those are files generated with it.

                T 1 Reply Last reply
                1
                • mtiutiuM mtiutiu

                  @NeverDie

                  I think they use Altium Designer and that those are files generated with it.

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

                  @mtiutiu if so, the free viewer is available at their site

                  1 Reply Last reply
                  0
                  • mtiutiuM mtiutiu

                    @scalz

                    My bad. I corrected the initial post. Hope is all well now.

                    I'm going to try this one too when I have time wt51822-s4at

                    This is the cheapest of all that I found so far and yes it's not a nrf52832 but a nrf51822 - for my purpose this one is very good too. It doesn't have all the pins exposed - only 7 of them but again it should fit my general usage. I'm curious about its performance though. I'll see that when I get my hands on it. This is the official datasheet(or so it seems): https://4tronix.co.uk/picobot2/WT51822-S4AT.pdf

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

                    @mtiutiu I have ordered a few of those modules too, the big question is antenna performance as it seems rather small.
                    It's incredibly cheap and has enough pins to drive most of the MySensors nodes, too bad it's missing the 32K crystal for low power Bluetooth :(

                    mtiutiuM NeverDieN 2 Replies Last reply
                    1
                    • Nca78N Nca78

                      @mtiutiu I have ordered a few of those modules too, the big question is antenna performance as it seems rather small.
                      It's incredibly cheap and has enough pins to drive most of the MySensors nodes, too bad it's missing the 32K crystal for low power Bluetooth :(

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

                      @Nca78

                      I think that if we use a serial gw based on nrf24l01 pa lna variant should help cover a regular house. At least this is my intent but until then I need to prepare some test environment. And if using nrf5 repeater nodes also should help with coverage - this doesn't work for battery powered nodes I know. But I think there should be some nrf5 nodes that are powered permanently - like actuators for example.

                      1 Reply Last reply
                      0
                      • NeverDieN NeverDie

                        @NeverDie said in nRF5 Bluetooth action!:

                        They sent me two files, but I have no idea what they are, or how to open them. Maybe someone here recognizes them or can open them?
                        0_1500890784640_E73-2G4M04S-PCBLIB.PCBLIB
                        0_1500890793687_E73-2G4M04S-PCB-V1.0.PCBDOCPreview

                        Opening the first file in notepad, I notice that it says, "PCB 6.0 Binary Library File ". I had asked Ebyte for either the module schematic or a reference design using their part, so I'm guessing this is it, in some sort of PCB CAD file.

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

                        @NeverDie

                        Can you upload those files somewhere so that I can download them? I can't do that from the links you pasted here in this forum.

                        I also found this altium -> kicad online converter but I don't know how well it works.

                        NeverDieN 1 Reply Last reply
                        0
                        • mtiutiuM mtiutiu

                          @NeverDie

                          Can you upload those files somewhere so that I can download them? I can't do that from the links you pasted here in this forum.

                          I also found this altium -> kicad online converter but I don't know how well it works.

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

                          @mtiutiu said in nRF5 Bluetooth action!:

                          Can you upload those files somewhere so that I can download them? I can't do that from the links you pasted here in this forum.

                          https://spaces.hightail.com/space/WMbime1pXn

                          mtiutiuM 1 Reply Last reply
                          0
                          • NeverDieN NeverDie

                            @mtiutiu said in nRF5 Bluetooth action!:

                            Can you upload those files somewhere so that I can download them? I can't do that from the links you pasted here in this forum.

                            https://spaces.hightail.com/space/WMbime1pXn

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

                            @NeverDie

                            Doesn't work for me so maybe it would be best to obtain a pdf or something readable for all of us from the manufacturer.

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

                              Is no one else able to download the files either?

                              mfalkviddM 1 Reply Last reply
                              0
                              • Nca78N Nca78

                                @NeverDie how many GND pins did you connect ?
                                It might be a stupid suggestion but maybe all GND pins are not connected together ?

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

                                @Nca78 said in nRF5 Bluetooth action!:

                                @NeverDie how many GND pins did you connect ?
                                It might be a stupid suggestion but maybe all GND pins are not connected together ?

                                Good question. I connected to just one GND pin. However, I just now checked with a DMM, and all the exposed GND pins on the module have continuity to one another. So, based on that, I'm assuming any additional outside connections would be redundant anyway?

                                1 Reply Last reply
                                1
                                • NeverDieN NeverDie

                                  Is no one else able to download the files either?

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

                                  @NeverDie said in nRF5 Bluetooth action!:

                                  Is no one else able to download the files either?

                                  From the forum, no. From hightail, yes.
                                  I don't know which program to open them in though.

                                  NeverDieN Nca78N 2 Replies Last reply
                                  1
                                  • mfalkviddM mfalkvidd

                                    @NeverDie said in nRF5 Bluetooth action!:

                                    Is no one else able to download the files either?

                                    From the forum, no. From hightail, yes.
                                    I don't know which program to open them in though.

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

                                    @mfalkvidd said in nRF5 Bluetooth action!:

                                    I don't know which program to open them in though

                                    The current theory (see above) is that maybe it's Altium Designer, which has a free viewer.

                                    1 Reply Last reply
                                    0
                                    • NeverDieN NeverDie

                                      One thing I notice on the Ebyte module is that no RESET pin is exposed. Isn't that a bit odd?

                                      Also, there appears to be a typo on the silkscreen, where there are two pin 7's on the silkscreen, but probably one of them is actually pin 6.

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

                                      @NeverDie said in nRF5 Bluetooth action!:

                                      One thing I notice on the Ebyte module is that no RESET pin is exposed. Isn't that a bit odd?

                                      Correction: According to the Nordic datasheet, PO.21, which is exposed on the Ebyte modle, can also serve as the reset pin. I was thrown off because Sparkfun labeled it RESET on their board's silkscreen, not "PO.21".

                                      1 Reply Last reply
                                      0
                                      • Nca78N Nca78

                                        @mtiutiu I have ordered a few of those modules too, the big question is antenna performance as it seems rather small.
                                        It's incredibly cheap and has enough pins to drive most of the MySensors nodes, too bad it's missing the 32K crystal for low power Bluetooth :(

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

                                        @Nca78 said in nRF5 Bluetooth action!:

                                        I have ordered a few of those modules too,

                                        Do let us know if either of you are able to program it. After this Ebyte experience, I won't be taking it for granted anymore.

                                        mfalkviddM 1 Reply Last reply
                                        0
                                        • NeverDieN NeverDie

                                          @Nca78 said in nRF5 Bluetooth action!:

                                          I have ordered a few of those modules too,

                                          Do let us know if either of you are able to program it. After this Ebyte experience, I won't be taking it for granted anymore.

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

                                          @NeverDie not sure if it applies to this case, but at 18:04 in https://youtu.be/JXQLI-nXqmQ it is mentioned that the chip's identifier needs to be included in some list when the softdevice is compiled (or something along those lines, I am not yet familiar with the vocabulary).

                                          NeverDieN 1 Reply Last reply
                                          0
                                          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