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

    @scalz arduino.org ble library that's based on sandeepmistry's one seems very extensive.
    I believe one need pretty substantial reasons to migrate from arduino unless you are a professional developer

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

    @Toyman what is that libray? I think of you refer to bel peripheral v0.3 it might not support the nrf52832 as I was asking before.

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

      So, for comparison, I measured the Sparkfun nRF52832 board, because (unlike the adafruit with its Raytac module), both oscillators are exposed for measurement. Unfortunately, it is already programmed, so it is not a true apples-to-apples comparison, but, anyway, the measurements were definitely different. First of all, the 32.7Khz oscillator was continuously oscillating at around 32.9Khz:
      0_1500854931082_NewFile2.jpg
      and the faster oscillator was also continuously oscillating:
      0_1500854967843_NewFile3.jpg
      I guess to have an apples-to-apples I would have to completely erase the firmware on the Sparkfun board.

      Anyhow, I think I'm getting the urge to order some Raytac modules.... It sounds as though they are not such a mystery.

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

        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 1 Reply Last reply
        0
        • NeverDieN Offline
          NeverDieN Offline
          NeverDie
          Hero Member
          wrote on last edited by
          #336

          By the way, those short bursts on activity on the Ebyte module's fast oscillator happen pretty regularly, about every 22ms or so:
          0_1500866108971_NewFile4.jpg

          1 Reply Last reply
          0
          • Nca78N Offline
            Nca78N Offline
            Nca78
            Hardware Contributor
            wrote on last edited by
            #337

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

            NeverDieN 1 Reply Last reply
            0
            • M Mike_Lemo

              @Toyman what is that libray? I think of you refer to bel peripheral v0.3 it might not support the nrf52832 as I was asking before.

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

              @Mike_Lemo

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

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

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

                Ok, so after posting some questions to CDSENET Aliexpress store(in regards to the E73-2G4M04S module):

                1. Is the nrf52832 IC DEC1 pin decoupled with a 100nF capacitor as per Nordic datasheet recommendations?
                2. Is the nrf52832 IC  DEC2 pin decoupled with a 100pF capacitor as per Nordic datasheet recommendations?
                3. Are all the power pins of the nrf52832 IC decoupled as per  Nordic datasheet recommendations?
                4. Are the external components already provided so that the internal DC-DC converter can be used?
                

                I received this part of schematic:

                0_1500878901299_E73-2G4M04S.png

                The module that I bought is this one: CDSENET E73-2G4M04S

                I hope that it helps demystify some things in regards to this module. Maybe @NeverDie can confirm this by checking his module connections as seen in the above schematic. I'm saying this because Chinese support is well..not so user friendly in my experience and I don't know if the above schematic is indeed what they used on their module or they just provided me an example schematic of how to use the NRF52832 IC in general instead.

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

                  @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 1 Reply Last reply
                  0
                  • NeverDieN Offline
                    NeverDieN Offline
                    NeverDie
                    Hero Member
                    wrote on last edited by
                    #341

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