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.
  • M Offline
    M Offline
    Mike_Lemo
    wrote on last edited by
    #281

    you should follow this schematic design if you want to get this module working.

    0_1500734955886_Schematic-MDBT42Q Demo Board.png

    NeverDieN 1 Reply Last reply
    1
    • M Mike_Lemo

      @NeverDie

      Oh yeah and forgot to mention I used the generic NRF52 settings.

      d00616D Offline
      d00616D Offline
      d00616
      Contest Winner
      wrote on last edited by
      #282

      @Mike_Lemo said in nRF5 Bluetooth action!:

      Oh yeah and forgot to mention I used the generic NRF52 settings.

      The "generic" settings haven't a good pin assignment. Pins P0.00 and P0.01 are reserved for the 32KHz crystal and defined as TX/RX pins. That's an conflict.

      NeverDieN 1 Reply Last reply
      0
      • d00616D d00616

        @Mike_Lemo said in nRF5 Bluetooth action!:

        Oh yeah and forgot to mention I used the generic NRF52 settings.

        The "generic" settings haven't a good pin assignment. Pins P0.00 and P0.01 are reserved for the 32KHz crystal and defined as TX/RX pins. That's an conflict.

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

        @d00616 said in nRF5 Bluetooth action!:

        @Mike_Lemo said in nRF5 Bluetooth action!:

        Oh yeah and forgot to mention I used the generic NRF52 settings.

        The "generic" settings haven't a good pin assignment. Pins P0.00 and P0.01 are reserved for the 32KHz crystal and defined as TX/RX pins. That's an conflict.

        What should we use instead?

        1 Reply Last reply
        0
        • d00616D Offline
          d00616D Offline
          d00616
          Contest Winner
          wrote on last edited by
          #284

          @NeverDie The "Taida Century nRF52 minidev" has a lot of pins mapped out:
          https://github.com/RIOT-OS/RIOT/wiki/Board%3A-nRF52-minidev you can select the programmer like your needs. The RedBear BLE Blend 2 has also a lot of pins mapped out, but the CMSIS-DAP is preselected.

          M 1 Reply Last reply
          1
          • d00616D d00616

            @NeverDie The "Taida Century nRF52 minidev" has a lot of pins mapped out:
            https://github.com/RIOT-OS/RIOT/wiki/Board%3A-nRF52-minidev you can select the programmer like your needs. The RedBear BLE Blend 2 has also a lot of pins mapped out, but the CMSIS-DAP is preselected.

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

            @d00616 It says there NFC is not useable but what if my board is NFC hardware ready? how would I use that?

            1 Reply Last reply
            0
            • d00616D Offline
              d00616D Offline
              d00616
              Contest Winner
              wrote on last edited by
              #286

              @Mike_Lemo said in nRF5 Bluetooth action!:

              @d00616 It says there NFC is not useable but what if my board is NFC hardware ready? how would I use that?

              It's simple. Use that. NFC isn't enabled or disabled by the board definition. Without SoftDevice, you have to enable the NFC functionality by flashing into the UICR.

              You can define your own Board. Look into the "boards.txt" file and the "variants" folder in ~/.arduino15/packages/sandeepmistry/hardware/nRF5/0.3.0/ Most pins can be assigned to roles like SPI, I2C, UART.... Pins like NFC, RESET are fixed and analog Pins an be ordered like your needs.

              M 1 Reply Last reply
              1
              • NeverDieN NeverDie

                @Mike_Lemo said in nRF5 Bluetooth action!:

                I'm tring to blink an led on a PCB I made not realy knowing how to program the IC before other than connection the SWD pins.

                I've followed the startup guide at github flashed the soft device probably successful using the ST link V2(while flashing the soft device it blinked the on board st link V2 led and at the end the blue led on my PCB stopped being on.)

                So I've got an RGB led connected to my PCB to pins:

                #define RGBL_RED_PIN P0.16
                #define RGBL_GREEN_PIN P0.15
                #define RGBL_BLUE_PIN P0.17

                now for a test to see if I got it right I want to blink each of them how would I do it?

                What is the arduino pin mapping?

                Isn't the arduino mapping generally handled by the boards.txt file? Which board that you're using are you telling the compiler that it is? i.e. which board under the board manager in the Arduino IDE are you selecting?

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

                @NeverDie where can that boards.txt file of the NRF52 thing be found?

                NeverDieN 1 Reply Last reply
                0
                • d00616D d00616

                  @Mike_Lemo said in nRF5 Bluetooth action!:

                  @d00616 It says there NFC is not useable but what if my board is NFC hardware ready? how would I use that?

                  It's simple. Use that. NFC isn't enabled or disabled by the board definition. Without SoftDevice, you have to enable the NFC functionality by flashing into the UICR.

                  You can define your own Board. Look into the "boards.txt" file and the "variants" folder in ~/.arduino15/packages/sandeepmistry/hardware/nRF5/0.3.0/ Most pins can be assigned to roles like SPI, I2C, UART.... Pins like NFC, RESET are fixed and analog Pins an be ordered like your needs.

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

                  @d00616 I meant is there a library or something for that? how do I approach it I'm relatively new for this 3rd party arduino programming thing and I'ts necessary for me sins I already made a PCB for a micro controller I want to use.

                  1 Reply Last reply
                  0
                  • M Mike_Lemo

                    @NeverDie where can that boards.txt file of the NRF52 thing be found?

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

                    @Mike_Lemo said in nRF5 Bluetooth action!:

                    @NeverDie where can that boards.txt file of the NRF52 thing be found?

                    On the Windows platform it's located in this directory: Program Files/Arduino/hardware/arduino/avr

                    M 1 Reply Last reply
                    0
                    • NeverDieN NeverDie

                      @Mike_Lemo said in nRF5 Bluetooth action!:

                      @NeverDie where can that boards.txt file of the NRF52 thing be found?

                      On the Windows platform it's located in this directory: Program Files/Arduino/hardware/arduino/avr

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

                      @NeverDie I can't see the Generic nrf52 board setting

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

                        I added the two caps that Scalz suggested for DEC1 and DEC2, but I'm still getting the same error message as before when I try to program it using the DK. Unless someone has further ideas, I may have to wait two weeks for my breakout board to arrive before I do more, as right now I'm just deadbugging this by soldering wires directly to the module.

                        1 Reply Last reply
                        0
                        • M Mike_Lemo

                          @NeverDie I can't see the Generic nrf52 board setting

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

                          @Mike_Lemo said in nRF5 Bluetooth action!:

                          @NeverDie I can't see the Generic nrf52 board setting

                          That's all I know, so hopefully someone who knows more can chime in and offer you guidance.

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

                            BTW, here's a picture of how the silkscreen looks and which shows DEC1 in the "DEC5" location:
                            alt text

                            1 Reply Last reply
                            0
                            • NeverDieN NeverDie

                              @Mike_Lemo said in nRF5 Bluetooth action!:

                              @NeverDie I can't see the Generic nrf52 board setting

                              That's all I know, so hopefully someone who knows more can chime in and offer you guidance.

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

                              @NeverDie said in nRF5 Bluetooth action!:

                              @Mike_Lemo said in nRF5 Bluetooth action!:

                              @NeverDie I can't see the Generic nrf52 board setting

                              That's all I know, so hopefully someone who knows more can chime in and offer you guidance.

                              Oh, I see now that @d00616 already has. Sorry, my browser didn't refresh, so I missed seeing his post.

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                Mike_Lemo
                                wrote on last edited by
                                #295

                                Yeah he did I just preformed a local search for that arduino15 on my PC

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  Mike_Lemo
                                  wrote on last edited by
                                  #296

                                  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

                                  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?

                                  d00616D 1 Reply Last reply
                                  1
                                  • M Mike_Lemo

                                    you should follow this schematic design if you want to get this module working.

                                    0_1500734955886_Schematic-MDBT42Q Demo Board.png

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

                                    @Mike_Lemo said in nRF5 Bluetooth action!:

                                    you should follow this schematic design if you want to get this module working.

                                    0_1500734955886_Schematic-MDBT42Q Demo Board.png

                                    There's a bunch of similar looking schematics in the nRF52832 datasheet for the nRF52832 chip itself, but I'm not sure which of them, if any, is applicable to the Ebyte module. I guess maybe Ebyte needs a demo board schematic like Raytac has. Either that, or we need a schematic of what's on the Ebyte module itself. As it stands, I think maybe there's no enough info with which to move ahead on wiring up the Ebyte module. Am I wrong? Come to think of it, I think some of the other Chinese modules I ordered from Aliexpress may also be similar "mystery" modules. :(

                                    1 Reply Last reply
                                    0
                                    • M Mike_Lemo

                                      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

                                      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?

                                      d00616D Offline
                                      d00616D Offline
                                      d00616
                                      Contest Winner
                                      wrote on last edited by
                                      #298

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

                                        It looks as though raytec does make two modules for the nRF52832 that has a PCB antenna rather than a chip antenna: the MDBT42Q-P and the MDBT-42V-P:
                                        http://statics3.seeedstudio.com/assets/file/bazaar/product/MDBT42Q-Version_B.pdf
                                        alt text
                                        The MDBT-42V-P looks nice because of its small size. Anyone know where it can be purchased? All of a sudden, buying a module that comes with a proper datasheet seems appealing.

                                        M 1 Reply Last reply
                                        0
                                        • NeverDieN NeverDie

                                          It looks as though raytec does make two modules for the nRF52832 that has a PCB antenna rather than a chip antenna: the MDBT42Q-P and the MDBT-42V-P:
                                          http://statics3.seeedstudio.com/assets/file/bazaar/product/MDBT42Q-Version_B.pdf
                                          alt text
                                          The MDBT-42V-P looks nice because of its small size. Anyone know where it can be purchased? All of a sudden, buying a module that comes with a proper datasheet seems appealing.

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

                                          @NeverDie I had mine from seeed studio

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


                                          11

                                          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