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 NeverDie

    @omemanti said in nRF5 action!:

    Not sure if it is allowed, else I remove this post, but the nrf52832's at ebyte are for sale (50% off)the coming 2 days.cdebyte AliExpress I sure grab myself some (max 2 at a time, but last time I ordered multiple times :)) only €2,62 a piece

    Your post is perfectly fine, and I would even encourage it. It makes good sense to share tips like that.

    The funny thing is that the 50% price is, IIRC, close to what the original price was when it was first introduced. Then the price slowly crept up from there.

    O Offline
    O Offline
    Omemanti
    wrote on last edited by Omemanti
    #1707

    @neverdie well, July 2017 they were €4,15. So they went up around 1 euro in a year. FYI the last one I bought was about 5 months ago since then they went up from version 1,1 to 1,3.
    Also, the item number changed a bit (but the datasheet checks out).
    It went from E73-2G4M04S to E73-2G4M04S1B, and the introduced a nrf52810 E73-2G4M04S1A with the same footprint and pinout.

    NeverDieN Nca78N 2 Replies Last reply
    0
    • O Omemanti

      @neverdie well, July 2017 they were €4,15. So they went up around 1 euro in a year. FYI the last one I bought was about 5 months ago since then they went up from version 1,1 to 1,3.
      Also, the item number changed a bit (but the datasheet checks out).
      It went from E73-2G4M04S to E73-2G4M04S1B, and the introduced a nrf52810 E73-2G4M04S1A with the same footprint and pinout.

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

      @omemanti Ah, yes, you're right. It was on March 7, 2018 that they were on sale for $2.55.

      Well, regardless, it's a good price. :)

      1 Reply Last reply
      0
      • O Omemanti

        @neverdie well, July 2017 they were €4,15. So they went up around 1 euro in a year. FYI the last one I bought was about 5 months ago since then they went up from version 1,1 to 1,3.
        Also, the item number changed a bit (but the datasheet checks out).
        It went from E73-2G4M04S to E73-2G4M04S1B, and the introduced a nrf52810 E73-2G4M04S1A with the same footprint and pinout.

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

        @omemanti the A version is with NRF52810, be careful.

        O 1 Reply Last reply
        0
        • NeverDieN NeverDie

          @alowhum IIRC, the crystal oscillator is only required by Bluetooth. For everything else, the internal resonator is sufficient.

          S Offline
          S Offline
          smilvert
          wrote on last edited by
          #1710

          @neverdie Sorry, im a bit confused.

          If im are going to use the BT832 for a battery sensor do I need to connet a 32 khz crystal like you did on the 10+ years wireless PIR Sensor (on just one set of 3 AA's!) project? But you have also written:
          @neverdie said in nRF5 action!:

          @alowhum IIRC, the crystal oscillator is only required by Bluetooth. For everything else, the internal resonator is sufficient.

          How much more current are used if the crystal is not connected?

          Can I use P00/P01 as a data pin instead of using the crystal?

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

            You don't need the crystal. Not sure difference in current. Yes, to your last question.

            1 Reply Last reply
            0
            • Nca78N Nca78

              @omemanti the A version is with NRF52810, be careful.

              O Offline
              O Offline
              Omemanti
              wrote on last edited by
              #1712

              @nca78 yeah I noticed that, what is the downside of the NRF52810?

              Nca78N 1 Reply Last reply
              0
              • O Omemanti

                @nca78 yeah I noticed that, what is the downside of the NRF52810?

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

                @omemanti said in nRF5 action!:

                @nca78 yeah I noticed that, what is the downside of the NRF52810?

                At least lower memory (ram and flash) and I don't know for the peripherals. Not sure if the core for nrf52832 will work flawlessly or not. Given the tiny price difference it's better to stick to nrf52832.

                Low frequency crystal will make you save energy when you use Bluetooth, because it needs to wake up at precise time frames to send/receive data. Do in that case the internal oscillator is not precise enough and mcu has to wake up regularly to recalibrate it with high frequency clock.
                For MySensors, it's not useful.

                JokgiJ 1 Reply Last reply
                0
                • Nca78N Nca78

                  @omemanti said in nRF5 action!:

                  @nca78 yeah I noticed that, what is the downside of the NRF52810?

                  At least lower memory (ram and flash) and I don't know for the peripherals. Not sure if the core for nrf52832 will work flawlessly or not. Given the tiny price difference it's better to stick to nrf52832.

                  Low frequency crystal will make you save energy when you use Bluetooth, because it needs to wake up at precise time frames to send/receive data. Do in that case the internal oscillator is not precise enough and mcu has to wake up regularly to recalibrate it with high frequency clock.
                  For MySensors, it's not useful.

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

                  @nca78 There is no downside to using the nRF52810. It depends on your needs. If you can live with 192K Flash and 24K RAM and a stack that supports peripheral only (at this time) then you are good. The device can use the internal 32Khz RC osc for BTLE and there is a slight current consumption hit as the receive window will be longer. (+/- 500ppm) . No different then on the nRF52832. as stated, a 32Khz crystal will give you a tighter clock and lower current consumption.

                  This is a scaled down version of the nRF52832 so there are some peripherals that have been taken out or reduced. PWM for example, only one. No NFC, 1x SPI Master or Slave, (instead of 3), No I2s...... The full datasheet and product briefs are available on Nordic's website so you can A-B the features.

                  1 Reply Last reply
                  2
                  • NeverDieN NeverDie

                    @alowhum Thanks for your post. I just now looked on ebay, and there's an entire eco-system of little ad-ons for the micro bit! Lots of displays, buttons, sensors, power packs, etc.

                    I thought there would be a vast supply on ebay of cheap used BBC micro bits, but I didn't see any. Not sure, but maybe on the UK ebay they can be found. After all, I think a lot were given away for free initially by a magazine or something.

                    JokgiJ Offline
                    JokgiJ Offline
                    Jokgi
                    wrote on last edited by
                    #1715
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • NeverDieN Offline
                      NeverDieN Offline
                      NeverDie
                      Hero Member
                      wrote on last edited by
                      #1716

                      An amusing video, which nonetheless suggests the power of tapping into existing bluetooth devices:

                      https://www.youtube.com/watch?v=bS1tPp2-l2w

                      1 Reply Last reply
                      1
                      • O Offline
                        O Offline
                        Omemanti
                        wrote on last edited by
                        #1717

                        What are the options of getting OTA working? Is it supported? Or is it still work in progress? (If so, ia there an ETA?)

                        NeverDieN 1 Reply Last reply
                        0
                        • O Omemanti

                          What are the options of getting OTA working? Is it supported? Or is it still work in progress? (If so, ia there an ETA?)

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

                          @omemanti said in nRF5 action!:

                          What are the options of getting OTA working? Is it supported? Or is it still work in progress? (If so, ia there an ETA?)

                          https://devzone.nordicsemi.com/f/nordic-q-a/38936/is-there-an-easier-to-use-ota-firmware-uploader

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

                            These are a bit cheaper than the Ebyte modules, and the breakout board is already built-in: https://www.aliexpress.com/item/NRF52832-Bluetooth-Module-BLE-4-2-Low-Power-Bluetooth-External-Antenna-IPEX-Support-Multi-Protocol/32904197412.html?spm=2114.search0104.3.102.772c16a3Fm2Lp8&ws_ab_test=searchweb0_0,searchweb201602_2_10065_10068_10130_10547_10546_10059_10884_10548_315_10545_10887_10696_100031_10084_531_10083_10103_10618_10307_449,searchweb201603_60,ppcSwitch_0&algo_expid=f8654a20-dd6e-4042-987f-5bd9eaf3c58d-15&algo_pvid=f8654a20-dd6e-4042-987f-5bd9eaf3c58d&transAbTest=ae803_4&priceBeautifyAB=0

                            JokgiJ 1 Reply Last reply
                            0
                            • NeverDieN NeverDie

                              These are a bit cheaper than the Ebyte modules, and the breakout board is already built-in: https://www.aliexpress.com/item/NRF52832-Bluetooth-Module-BLE-4-2-Low-Power-Bluetooth-External-Antenna-IPEX-Support-Multi-Protocol/32904197412.html?spm=2114.search0104.3.102.772c16a3Fm2Lp8&ws_ab_test=searchweb0_0,searchweb201602_2_10065_10068_10130_10547_10546_10059_10884_10548_315_10545_10887_10696_100031_10084_531_10083_10103_10618_10307_449,searchweb201603_60,ppcSwitch_0&algo_expid=f8654a20-dd6e-4042-987f-5bd9eaf3c58d-15&algo_pvid=f8654a20-dd6e-4042-987f-5bd9eaf3c58d&transAbTest=ae803_4&priceBeautifyAB=0

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

                              @neverdie And it has the 32Khz crystal on it too which will reduce power consumption. And It looks like the DC/DC converter is also included?

                              T 1 Reply Last reply
                              0
                              • JokgiJ Jokgi

                                @neverdie And it has the 32Khz crystal on it too which will reduce power consumption. And It looks like the DC/DC converter is also included?

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

                                Guys, remind me pls: is CR2450 enough for the nrf52 Ebyte module acting as a Mysensors node?
                                Is it capable to handle tx current spikes?
                                Energizer datasheet states 9ma as max curent pulse. Is it sufficient?

                                1 Reply Last reply
                                0
                                • NeverDieN NeverDie

                                  @omemanti said in nRF5 action!:

                                  What are the options of getting OTA working? Is it supported? Or is it still work in progress? (If so, ia there an ETA?)

                                  https://devzone.nordicsemi.com/f/nordic-q-a/38936/is-there-an-easier-to-use-ota-firmware-uploader

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

                                  @neverdie I've setup the bootloader for my BT project and I confirm its much easier than it looks.
                                  Can it be used for MySensors? For BT, I create a hex file in Keil and then upload it via nrftoolbox app.
                                  Can the same procedure be used with MySensors? OTA needs Softdevice and Softdevice is not compatible with MySensors

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

                                    @toyman said in nRF5 action!:

                                    Guys, remind me pls: is CR2450 enough for the nrf52 Ebyte module acting as a Mysensors node?
                                    Is it capable to handle tx current spikes?
                                    Energizer datasheet states 9ma as max curent pulse. Is it sufficient?

                                    yes but you need some power buffer for the spikes. So put 100uF low leakage ceramic capa close to batt holder, and you could also add one more close to your nrf5 module.

                                    Can the same procedure be used with MySensors? OTA needs Softdevice and Softdevice is not compatible with MySensors

                                    You already have your answer I think ;)

                                    1 Reply Last reply
                                    2
                                    • T Toyman

                                      @neverdie I've setup the bootloader for my BT project and I confirm its much easier than it looks.
                                      Can it be used for MySensors? For BT, I create a hex file in Keil and then upload it via nrftoolbox app.
                                      Can the same procedure be used with MySensors? OTA needs Softdevice and Softdevice is not compatible with MySensors

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

                                      @toyman said in nRF5 action!:

                                      Can the same procedure be used with MySensors? OTA needs Softdevice and Softdevice is not compatible with MySensors

                                      Ouch. :astonished: That does seem like a gotcha. :confounded: Thanks for pointing that out!

                                      Let's enumerate the possible remedies: :thinking_face:

                                      1. I guess theoretically the bootloader could use softdevice to handle uploads and then revert to MySensors afterward. After all, with these devices there's so much flash and memory that there's nothing which says the bootloader needs to be tiny. In that case your code would need to force a reboot, and the bootloader would need to wait a period of time to see if an OTA upload is being requested before continuing. But this is all theoretical, and I don't know enough to know whether that would be easy or difficult to make work. Far from elegant to be sure. Maybe there's a better solution than that? Admittedly, this looks like a rabbit hole I'd rather not go down.

                                      2. Maybe (?) micropython is the the easier path out of this train wreck, assuming (?) it can assemble a string that it reads from OTA and then execute it (EVAL it) the way that. say, LISP, can. Then you could bypass softdevice entirely and use whatever radio communications you want. The relative ease of that might make it worth the added baggage of running an interpreter. Well, that might work for me, but for mysensors it would mean a major port to micropython, which, AFAIK, no one has yet done.

                                      3. That leaves writing your own wireless bootloader, like I guess others here have done for mysensors and the atmega328p, but that doesn't sound trivial either.

                                      4. Any other ideas?

                                      I'm just thinking out loud here and above, but I'm admittedly now both stymied and flummoxed. Being wireless without the ability to do wireless updates is not good.

                                      @scalz Does the TI platform have the same sort of issue, or does it handle OTA updates differently?

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

                                        For instance, this buttonless approach stays in DFU mode for 30 seconds after a reset: https://thingtype.com/blog/dfu-ota-updating-an-nrf52-application-over-the-air/

                                        I guess maybe that's the shortest path out of this dilemma.

                                        monteM 1 Reply Last reply
                                        0
                                        • NeverDieN NeverDie

                                          For instance, this buttonless approach stays in DFU mode for 30 seconds after a reset: https://thingtype.com/blog/dfu-ota-updating-an-nrf52-application-over-the-air/

                                          I guess maybe that's the shortest path out of this dilemma.

                                          monteM Offline
                                          monteM Offline
                                          monte
                                          wrote on last edited by
                                          #1726

                                          @neverdie but all those bootloaders rely on bluetooth (thus softdevice) for DFU, that means we need to write our custom bootloader which uses different transport.

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


                                          6

                                          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