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.
  • NeverDieN Offline
    NeverDieN Offline
    NeverDie
    Hero Member
    wrote on last edited by NeverDie
    #314

    So, to Scalz's earlier point, it looks like indeed there is no capacitor already on DEC1. Regarding DEC2, it appears that there are pads and solder paste for a capacitor, but the capacitor appears to be missing! Manufacturing error?

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

      @NeverDie
      cool. well you just have to check continuity.
      Yes this a 4layers. better for compact RF imho, else worse performance, EMI etc.. I think it's also easier to get FCC with 4layers design (not sure if this module is FCC though)

      My bad, i've just reread what i wrote. With nrf52 ic, I've rechecked, I'm using:

      • DEC1: 100nf
      • DEC2: nothing
      • DEC3: 100pf
      • DEC4: 1uF (and you add inductors with DCC, for DC/DC mode but it can decrease 1dB if i remember well)
      NeverDieN 1 Reply Last reply
      2
      • scalzS scalz

        @NeverDie
        cool. well you just have to check continuity.
        Yes this a 4layers. better for compact RF imho, else worse performance, EMI etc.. I think it's also easier to get FCC with 4layers design (not sure if this module is FCC though)

        My bad, i've just reread what i wrote. With nrf52 ic, I've rechecked, I'm using:

        • DEC1: 100nf
        • DEC2: nothing
        • DEC3: 100pf
        • DEC4: 1uF (and you add inductors with DCC, for DC/DC mode but it can decrease 1dB if i remember well)
        NeverDieN Offline
        NeverDieN Offline
        NeverDie
        Hero Member
        wrote on last edited by NeverDie
        #316

        @scalz
        Both DEC3 and DEC4 appear to have capacitors on them. So, maybe it was the missing capacitor on DEC2 that's the reason for the module not seeming to work. I suppose I could crack another one open to see if the missing cap was a fluke or instead likely missing on most/all of them.

        Obviously, short of removing and testing each smd cap, I can't be sure as to what values eByte is using. I hope it doesn't come to that.... On the other hand, I could possibly remove and test the 3 on scalz's list that are of interest.

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

          OK, I just pried off the lid on a different module and.... the same DEC2 cap is missing. However, according to scalz's new list that shouldn't matter.

          I'll need to check continuity to see if the DEC1 cap is really not there or rather simply appearing elsewhere due to the routing.

          NeverDieN 1 Reply Last reply
          0
          • NeverDieN NeverDie

            OK, I just pried off the lid on a different module and.... the same DEC2 cap is missing. However, according to scalz's new list that shouldn't matter.

            I'll need to check continuity to see if the DEC1 cap is really not there or rather simply appearing elsewhere due to the routing.

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

            It turns out DEC1 is connected to a capacitor: it's the one just south of the top left capacitor in the first photo.

            So, unless the cap values are just wrong, it seems that we don't need to add any more.

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

              What should I check next?

              1 Reply Last reply
              0
              • NeverDieN NeverDie

                I saw this in the MDBT42Q module datasheet, and perhaps it explains the relatively poor performance of the nRF52832 Adafruit Feather which uses the MDBT42Q.:
                0_1500781343573_MBDT42Q_RAYTAC_MODULE.png
                I believe the Adafruit may have a much smaller ground plane than what is being recommended here by Raytac.

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

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

                Also what is a good library for using NFC and the bluetooth peripheral of that MCU?
                I came across that library:

                https://github.com/sandeepmistry/arduino-BLEPeripheral

                but the page doesn't seem to support the BLE capability of the NRF52832
                and no luck for the NFC

                NeverDieN 1 Reply Last reply
                0
                • d00616D d00616

                  @Mike_Lemo said in nRF5 Bluetooth action!:

                  Also If I want to change the UART pins to other pins would it work without errors or If I want to use 2 or more UARTS? same with I2C

                  The Chip has a lot of periphery on it. You can connect most components to pins. There is only one hardware UART, which can be connected. Please look at the Infocenter The arduino-nrf5 port is limited to things are implemented with arduino-samd by the author. This is the reason I have implemented an extension for hwPinMode() in MySensors.

                  Another fine thing is the implementation of Shortcuts and the PPI. You can do a lot without using the CPU.

                  @Mike_Lemo said in nRF5 Bluetooth action!:

                  Also what are the debugging options available sins the RS232 is not connected to the MCU like in an arduino how would I set stop points or peek at variables values to see if the code runs as expected?

                  Debugging depends on your programmer and flashing tool. I think you can start by search for "openocd gdb". OpenOCD is the flashing tool in arduino-nrf5 for all supported programmers.

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

                  @d00616 said in nRF5 Bluetooth action!:

                  @Mike_Lemo said in nRF5 Bluetooth action!:

                  Also If I want to change the UART pins to other pins would it work without errors or If I want to use 2 or more UARTS? same with I2C

                  The Chip has a lot of periphery on it. You can connect most components to pins. There is only one hardware UART, which can be connected. Please look at the Infocenter The arduino-nrf5 port is limited to things are implemented with arduino-samd by the author. This is the reason I have implemented an extension for hwPinMode() in MySensors.

                  Another fine thing is the implementation of Shortcuts and the PPI. You can do a lot without using the CPU.

                  @Mike_Lemo said in nRF5 Bluetooth action!:

                  Also what are the debugging options available sins the RS232 is not connected to the MCU like in an arduino how would I set stop points or peek at variables values to see if the code runs as expected?

                  Debugging depends on your programmer and flashing tool. I think you can start by search for "openocd gdb". OpenOCD is the flashing tool in arduino-nrf5 for all supported programmers.

                  What is that MySensors thing you were talking about?

                  1 Reply Last reply
                  0
                  • M Mike_Lemo

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

                    Also what is a good library for using NFC and the bluetooth peripheral of that MCU?
                    I came across that library:

                    https://github.com/sandeepmistry/arduino-BLEPeripheral

                    but the page doesn't seem to support the BLE capability of the NRF52832
                    and no luck for the NFC

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

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

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


                                          14

                                          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