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 635.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.
  • scalzS Offline
    scalzS Offline
    scalz
    Hardware Contributor
    wrote on last edited by scalz
    #1272

    @NeverDie
    I would use 100 to 200uf like said above. That's what i'm doing with all my coincell nodes too.
    This is regarding the internal resistance of coincells which is not great >5mA, especially when coincell will be more aged. So it is recommanded to increase lifetime.

    But not too strong capacitor value, else that won't be better (you don't want to waste energy, and increase internal coincell res, by charging caps, else you would need a current limiting resistor lol).

    I would not be too cheap by omitting decoupling and buffering capa, on my boards I prefer to have footprints (optional or not) because sure it can work well at the beginning but as soon as lifetime goes, it can change..

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

      Thank you @nca78 and @scalz . Per your suggestions, I added a 100uF ceramic cap to version 8 of the multi-sensor board:
      https://www.openhardware.io/view/510/Multi-Sensor-TempHumidity-LeakMagnetLightAccel

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

        Anyone tried building a bluetooth stack on the nRF5x from within the Arduino IDE? I can see how running it simultaneously with the mySensors code would be tricky, but maybe one could switch back and forth between the two? e.g. if you want to output debug text to a terminal window on your smart phone via bluetooth If so, anyone have any demo code for doing that?

        For that matter, has anyone here tried the Arduino Primo? And if so, how did it go?

        Nca78N d00616D 2 Replies Last reply
        0
        • NeverDieN NeverDie

          Anyone tried building a bluetooth stack on the nRF5x from within the Arduino IDE? I can see how running it simultaneously with the mySensors code would be tricky, but maybe one could switch back and forth between the two? e.g. if you want to output debug text to a terminal window on your smart phone via bluetooth If so, anyone have any demo code for doing that?

          For that matter, has anyone here tried the Arduino Primo? And if so, how did it go?

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

          @NeverDie said in nRF5 Bluetooth action!:

          Anyone tried building a bluetooth stack on the nRF5x from within the Arduino IDE? I can see how running it simultaneously with the mySensors code would be tricky, but maybe one could switch back and forth between the two?

          From what I understand this is not possible, the NRF5 Core used by @d00616 is not using the soft device to have better access to the hardware, while the Arduino IDE version is using soft device to run bluetooth stack. So you have to flash one or the other, not the two at the same time.

          1 Reply Last reply
          0
          • NeverDieN NeverDie

            Anyone tried building a bluetooth stack on the nRF5x from within the Arduino IDE? I can see how running it simultaneously with the mySensors code would be tricky, but maybe one could switch back and forth between the two? e.g. if you want to output debug text to a terminal window on your smart phone via bluetooth If so, anyone have any demo code for doing that?

            For that matter, has anyone here tried the Arduino Primo? And if so, how did it go?

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

            @NeverDie said in nRF5 Bluetooth action!:

            Anyone tried building a bluetooth stack on the nRF5x from within the Arduino IDE? I can see how running it simultaneously with the mySensors code would be tricky, but maybe one could switch back and forth between the two? e.g. if you want to output debug text to a terminal window on your smart phone via bluetooth If so, anyone have any demo code for doing that?

            The parts of the SDK to disable and enable the SoftDevice are not included into the arduino-nrf5 port, but on the Primo port.

            For that matter, has anyone here tried the Arduino Primo? And if so, how did it go?

            The Arduino-NVM library is not compatible. This results in a crash. My first try to use the SoftDevice API was not successful.

            T 1 Reply Last reply
            3
            • d00616D d00616

              @NeverDie said in nRF5 Bluetooth action!:

              Anyone tried building a bluetooth stack on the nRF5x from within the Arduino IDE? I can see how running it simultaneously with the mySensors code would be tricky, but maybe one could switch back and forth between the two? e.g. if you want to output debug text to a terminal window on your smart phone via bluetooth If so, anyone have any demo code for doing that?

              The parts of the SDK to disable and enable the SoftDevice are not included into the arduino-nrf5 port, but on the Primo port.

              For that matter, has anyone here tried the Arduino Primo? And if so, how did it go?

              The Arduino-NVM library is not compatible. This results in a crash. My first try to use the SoftDevice API was not successful.

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

              @d00616 have you looked at https://mynewt.apache.org/?

              NeverDieN d00616D scalzS 3 Replies Last reply
              0
              • T Toyman

                @d00616 have you looked at https://mynewt.apache.org/?

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

                @Toyman said in nRF5 Bluetooth action!:

                @d00616 have you looked at https://mynewt.apache.org/?

                Does it have any worthwhile demo apps running on it?

                1 Reply Last reply
                0
                • T Toyman

                  @d00616 have you looked at https://mynewt.apache.org/?

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

                  @Toyman said in nRF5 Bluetooth action!:

                  @d00616 have you looked at https://mynewt.apache.org/

                  Yes, I have seen the documentation and some parts of the source code. It's a good project. I like the concepts.

                  1 Reply Last reply
                  0
                  • T Toyman

                    @d00616 have you looked at https://mynewt.apache.org/?

                    scalzS Offline
                    scalzS Offline
                    scalz
                    Hardware Contributor
                    wrote on last edited by
                    #1280

                    @Toyman said in nRF5 Bluetooth action!:

                    @d00616 have you looked at https://mynewt.apache.org/?

                    on my side, i tested it. agree with d00616, it's interesting.
                    yes there are examples.

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

                      How would you all rate the mynewt's stage of development? Pre-alpha? Or, is it already fairly well tested and production ready?

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

                        latest release is 1.2.0, it's not prealpha. for production I think, easiest is to read docs and try ;)

                        Note it's an OS (which means shared resources etc..), not arduino integrated, nor mysensors compatible actually. If you want to use MySensors, you would need to port the code and check what's in use by the OS etc..

                        If I would like to use a RTOS+BLE with NRF5, I would use this one.
                        For other mcus, not sure, there are others nice OS.
                        Hard to find one fits for all, and not very handy to have x toolchains&libraries to handle (I already have arduino, espressif, apache, TI.. OS&frameworks installed and this can be too much!). And i don't mention rpi/linux stuff..

                        That depends on the project.
                        But for my HA project, as MySensors targets arduino actually, and I prefer the NRF5 ESB driver than BLE for multiple reasons (security etc), it's easier to stick to arduino environment and I can use all mcus for that in Visual Studio.

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

                          How are people here preferring to connect to their nRF5x node for programming/debugging? I had been using a 10-pin IDE boxed connector on the PCB's I was making, but I just recently tried a micro-USB OTG connector (just as a 5-pin connector, not for anything truly USB protocol related), and I find that I like it a lot. For one thing, it's a lot more compact:
                          0_1511483028982_usbcon_2.jpg
                          0_1511483048204_usbcon_1.jpg

                          It does require making an adapter, but once you've made it (once and done), it's easy.

                          Any thoughts on this? I'm tentatively leaning toward switching over to it for everything.

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

                            The other cool thing is that the side access allows me to make a very compact PIR motion sensor that's still re-programmable:
                            0_1511485705122_compact_PIR.jpg
                            :)

                            1 Reply Last reply
                            1
                            • NeverDieN NeverDie

                              How are people here preferring to connect to their nRF5x node for programming/debugging? I had been using a 10-pin IDE boxed connector on the PCB's I was making, but I just recently tried a micro-USB OTG connector (just as a 5-pin connector, not for anything truly USB protocol related), and I find that I like it a lot. For one thing, it's a lot more compact:
                              0_1511483028982_usbcon_2.jpg
                              0_1511483048204_usbcon_1.jpg

                              It does require making an adapter, but once you've made it (once and done), it's easy.

                              Any thoughts on this? I'm tentatively leaning toward switching over to it for everything.

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

                              @NeverDie I think it's ok only if you keep those only for yourself, and/or make an enclosure hiding this plug.
                              Because if you give to someone like a friend and an USB plug is visible one day or another they'll plug it and fry the board with 5V :)

                              NeverDieN 1 Reply Last reply
                              2
                              • Nca78N Nca78

                                @NeverDie I think it's ok only if you keep those only for yourself, and/or make an enclosure hiding this plug.
                                Because if you give to someone like a friend and an USB plug is visible one day or another they'll plug it and fry the board with 5V :)

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

                                Good point. To avoid that as a potential problem then, can anyone suggest a better connector to use?

                                NeverDieN JokgiJ 2 Replies Last reply
                                0
                                • NeverDieN NeverDie

                                  Good point. To avoid that as a potential problem then, can anyone suggest a better connector to use?

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

                                  I suppose if/when OTA updates are developed for the nRF5x's, then the issue would go away. Then you'd only need the connector when first setting it up, and then later work could be uploaded OTA. After the initial setup, one could simply sabotage the USB connector (fill it with epoxy maybe, or perhaps just cut the traces) to prevent the friend from plugging the node into an actual USB charger or the like.

                                  1 Reply Last reply
                                  0
                                  • gohanG Offline
                                    gohanG Offline
                                    gohan
                                    Mod
                                    wrote on last edited by
                                    #1288

                                    I'd say to make something with pogo pins if you really need it once

                                    1 Reply Last reply
                                    4
                                    • NeverDieN NeverDie

                                      Good point. To avoid that as a potential problem then, can anyone suggest a better connector to use?

                                      JokgiJ Offline
                                      JokgiJ Offline
                                      Jokgi
                                      wrote on last edited by
                                      #1289

                                      @NeverDie check out a product called "TAG-CONNECT". It is perfect for programming. It is used on the Nordic Semiconductor Beacon Reference Design.

                                      d00616D 1 Reply Last reply
                                      2
                                      • JokgiJ Jokgi

                                        @NeverDie check out a product called "TAG-CONNECT". It is perfect for programming. It is used on the Nordic Semiconductor Beacon Reference Design.

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

                                        @Jokgi said in nRF5 Bluetooth action!:

                                        @NeverDie check out a product called "TAG-CONNECT". It is perfect for programming. It is used on the Nordic Semiconductor Beacon Reference Design.

                                        Thank you. Here is an programmer with this connector: http://aconno.de/acnprog/
                                        I don't know if this is compatible to the Beacon Reference Design, but its compatible with the nRF52 boards provided by aconno.

                                        JokgiJ 1 Reply Last reply
                                        1
                                        • d00616D d00616

                                          @Jokgi said in nRF5 Bluetooth action!:

                                          @NeverDie check out a product called "TAG-CONNECT". It is perfect for programming. It is used on the Nordic Semiconductor Beacon Reference Design.

                                          Thank you. Here is an programmer with this connector: http://aconno.de/acnprog/
                                          I don't know if this is compatible to the Beacon Reference Design, but its compatible with the nRF52 boards provided by aconno.

                                          JokgiJ Offline
                                          JokgiJ Offline
                                          Jokgi
                                          wrote on last edited by Jokgi
                                          #1291

                                          @d00616 not familiar with the USB interface / tag connect. The ones I have used have the connector type that plugs onto the nRF5x-DK, uLinks, jlink lite, etc. a ten pin Micro Cortex connector to six or ten pin "pogo pin" tag-connect connector. There is also a clip that allows the connector to stay attached for debugging purposes.

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


                                          22

                                          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