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 649.2k Views 44 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • NeverDieN NeverDie

    @Mike_Lemo said in nRF5 Bluetooth action!:

    I just made the antenna on my PCB stick out so there is no fiber glass under the antenna even.

    Yeah, that's what I opted for on Version 2 of my breakout board for the Ebyte nRF52832 module. Seems like the cleanest solution.

    The MDBT42Q is a lot smaller than the Ebyte module, so although I was bashing it for its performance on the Adafruit (which in their case may turn out to be ground plane related), that might be an acceptable trade-off for the smaller size.

    You have lots of good questions. Keep asking! I'm hoping to learn from the answers too.

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

    @NeverDie said in nRF5 Bluetooth action!:

    @Mike_Lemo said in nRF5 Bluetooth action!:

    I just made the antenna on my PCB stick out so there is no fiber glass under the antenna even.

    Yeah, that's what I opted for on Version 2 of my breakout board for the Ebyte nRF52832 module. Seems like the cleanest solution.

    The MDBT42Q is a lot smaller than the Ebyte module, so although I was bashing it for its performance on the Adafruit (which in their case may turn out to be ground plane related), that might be an acceptable trade-off for the smaller size.

    You have lots of good questions. Keep asking! I'm hoping to learn from the answers too.

    Yeah well at least I managed to flash a blink program to my pcb and confirm that it works but now I'm planning to abanded from Arduino anyways sins alot of functionality isn't supported.

    NeverDieN 1 Reply Last reply
    0
    • M Mike_Lemo

      @NeverDie said in nRF5 Bluetooth action!:

      @Mike_Lemo said in nRF5 Bluetooth action!:

      I just made the antenna on my PCB stick out so there is no fiber glass under the antenna even.

      Yeah, that's what I opted for on Version 2 of my breakout board for the Ebyte nRF52832 module. Seems like the cleanest solution.

      The MDBT42Q is a lot smaller than the Ebyte module, so although I was bashing it for its performance on the Adafruit (which in their case may turn out to be ground plane related), that might be an acceptable trade-off for the smaller size.

      You have lots of good questions. Keep asking! I'm hoping to learn from the answers too.

      Yeah well at least I managed to flash a blink program to my pcb and confirm that it works but now I'm planning to abanded from Arduino anyways sins alot of functionality isn't supported.

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

      @Mike_Lemo said in nRF5 Bluetooth action!:

      sins alot of functionality isn't supported

      If your abandoning from Arduino, what will you be abandoning to?

      M 1 Reply Last reply
      0
      • NeverDieN NeverDie

        @Mike_Lemo said in nRF5 Bluetooth action!:

        sins alot of functionality isn't supported

        If your abandoning from Arduino, what will you be abandoning to?

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

        @NeverDie said in nRF5 Bluetooth action!:

        @Mike_Lemo said in nRF5 Bluetooth action!:

        sins alot of functionality isn't supported

        If your abandoning from Arduino, what will you be abandoning to?

        Probably eclipse

        NeverDieN 1 Reply Last reply
        0
        • M Mike_Lemo

          @NeverDie said in nRF5 Bluetooth action!:

          @Mike_Lemo said in nRF5 Bluetooth action!:

          sins alot of functionality isn't supported

          If your abandoning from Arduino, what will you be abandoning to?

          Probably eclipse

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

          @Mike_Lemo said in nRF5 Bluetooth action!:

          @NeverDie said in nRF5 Bluetooth action!:

          @Mike_Lemo said in nRF5 Bluetooth action!:

          sins alot of functionality isn't supported

          If your abandoning from Arduino, what will you be abandoning to?

          Probably eclipse

          I'm rather hazy on the differences. I guess that way you can use all the Nordic libraries the way they were intended?

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

            Eclipse is just an IDE ;) like Arduino IDE, or VS etc.
            I think he means he wants to leave arduino core (mysensors rely on arduino core) to use nordic sdk with other ide (like eclipse, mbed, keil etc..). Because using eclipse with arduino core won't unlock features. It still needs coding.

            T 1 Reply Last reply
            0
            • scalzS scalz

              Eclipse is just an IDE ;) like Arduino IDE, or VS etc.
              I think he means he wants to leave arduino core (mysensors rely on arduino core) to use nordic sdk with other ide (like eclipse, mbed, keil etc..). Because using eclipse with arduino core won't unlock features. It still needs coding.

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

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

                Bluetooth is everywhere, and that's great, but I'm developing the impression that Bluetooth is rather arduous to program in its "native" format. Maybe this is an opportunity to build something simpler/easier that runs on top of Bluetooth, and yet can still interact with normal bluetooth devices in the native bluetooth that they understand? I think the Arduino's wide acceptance more or less proves that "easy is good."

                T 1 Reply Last reply
                0
                • NeverDieN NeverDie

                  Bluetooth is everywhere, and that's great, but I'm developing the impression that Bluetooth is rather arduous to program in its "native" format. Maybe this is an opportunity to build something simpler/easier that runs on top of Bluetooth, and yet can still interact with normal bluetooth devices in the native bluetooth that they understand? I think the Arduino's wide acceptance more or less proves that "easy is good."

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

                  @NeverDie fully agree

                  1 Reply Last reply
                  0
                  • NeverDieN NeverDie

                    OK, here's my plan:

                    1. It's possible the connections on my first attempt were a bit dodgy. I'll try again, but this time soldering a fresh new module to a prototype PCB so that they won't be mechanically stressed as I interconnect wires. Not as ideal as my breakout board will be, but I'll have to make do until it arrives.

                    2. If it still fails to program after step #1, then I'll check to confirm whether or not the oscillators are, uh, oscillating, at the proper frequency by using an oscilliscope after powering it up. I'm assuming they are, but it's at least easy to check and then cross off the list of suspects.

                    3. If still no clues, then what's next? Logic probe on the two SW lines for a compare/contrast against a successful programming of a sparkfun nRF52832 board? That's sure to generate at least some palpable data as to where the problem is occurring.

                    I welcome other suggestions though on how to proceed. The above is just my best guess, and I'm sure others here are better at troubleshooting this than I am.

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

                    @NeverDie said in nRF5 Bluetooth action!:

                    OK, here's my plan:

                    1. It's possible the connections on my first attempt were a bit dodgy. I'll try again, but this time soldering a fresh new module to a prototype PCB so that they won't be mechanically stressed as I interconnect wires. Not as ideal as my breakout board will be, but I'll have to make do until it arrives.

                    2. If it still fails to program after step #1, then I'll check to confirm whether or not the oscillators are, uh, oscillating, at the proper frequency by using an oscilliscope after powering it up. I'm assuming they are, but it's at least easy to check and then cross off the list of suspects.

                    3. If still no clues, then what's next? Logic probe on the two SW lines for a compare/contrast against a successful programming of a sparkfun nRF52832 board? That's sure to generate at least some palpable data as to where the problem is occurring.

                    I welcome other suggestions though on how to proceed. The above is just my best guess, and I'm sure others here are better at troubleshooting this than I am.

                    I executed step #1 of my plan with no change in results on the second attempt of programming. The module is definitely getting 3.3v power on the VCC pin.

                    So, I executed step #2. I don't see any oscillation at all on the 32.7khz oscillator. The faster oscillator is mostly quiet, but it periodically gives short little bursts of activity--here's a screenshot of one:
                    0_1500851438333_NewFile1.jpg
                    Not sure if this is normal or not, but that's what is going on.

                    1 Reply Last reply
                    0
                    • 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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          15

                                          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