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.4k 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.
  • gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by
    #1557

    Is this an alternative programmer or is it STM32 only? https://www.aliexpress.com/store/product/CJMCU-JLINK-Support-for-SWD-s-JLINK-Simplified-Edition-Supports-STM32-SWD-Debugging-3-Wire/1245924_32792177272.html

    mfalkviddM 1 Reply Last reply
    0
    • gohanG gohan

      Is this an alternative programmer or is it STM32 only? https://www.aliexpress.com/store/product/CJMCU-JLINK-Support-for-SWD-s-JLINK-Simplified-Edition-Supports-STM32-SWD-Debugging-3-Wire/1245924_32792177272.html

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #1558

      @gohan J-Link is in the list of supported programmers at https://github.com/sandeepmistry/arduino-nRF5 so it should work

      1 Reply Last reply
      0
      • alowhumA alowhum

        @nagelc I am using a ST-Link V2 that I turned into a BMP. So i don't have a RX pin on that. But I do have these pins left:

        • RST
        • SWIM

        So you suppose any of these two pins are now RX?

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

        @alowhum just buy a real Blue Pill (around $2) and convert it into BMP.
        Then you''ll get both a programmer and an USB-serial that you can use to get data from NRF52 UART

        Nca78N 1 Reply Last reply
        2
        • T Toyman

          @alowhum just buy a real Blue Pill (around $2) and convert it into BMP.
          Then you''ll get both a programmer and an USB-serial that you can use to get data from NRF52 UART

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

          @toyman said in nRF5 Bluetooth action!:

          @alowhum just buy a real Blue Pill (around $2) and convert it into BMP.
          Then you''ll get both a programmer and an USB-serial that you can use to get data from NRF52 UART

          Thank you for this idea, I didn't receive my STM32 (got lost somewhere in transit) but I have 2 unused blue pills, I'll try that tomorrow.
          "Conversion" process is easy to find: https://medium.com/@paramaggarwal/converting-an-stm32f103-board-to-a-black-magic-probe-c013cf2cc38c

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

            Is the main (only?) advantage of the BMP that you have a single USB connection from your PC to your project instead of two (e.g. J-link plus an FTDI)? Or is there more to it that that?

            T 1 Reply Last reply
            0
            • Nca78N Nca78

              @toyman said in nRF5 Bluetooth action!:

              @alowhum just buy a real Blue Pill (around $2) and convert it into BMP.
              Then you''ll get both a programmer and an USB-serial that you can use to get data from NRF52 UART

              Thank you for this idea, I didn't receive my STM32 (got lost somewhere in transit) but I have 2 unused blue pills, I'll try that tomorrow.
              "Conversion" process is easy to find: https://medium.com/@paramaggarwal/converting-an-stm32f103-board-to-a-black-magic-probe-c013cf2cc38c

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

              @nca78 I used exactly this guide. Works like a charm.

              1 Reply Last reply
              1
              • NeverDieN NeverDie

                Is the main (only?) advantage of the BMP that you have a single USB connection from your PC to your project instead of two (e.g. J-link plus an FTDI)? Or is there more to it that that?

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

                @neverdie for us - yes. For other folks, I think the advantage is the number of targets it supports and the license. Equivalent Segger costs hundreds of $
                BTW, Sandeep added BMP support into his core after I raised the issue :-)

                1 Reply Last reply
                3
                • T Offline
                  T Offline
                  Toyman
                  wrote on last edited by
                  #1564
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • Nca78N Nca78

                    @korttoma said in nRF5 Bluetooth action!:

                    @nca78 still not getting anywhere with this. Would you mind ziping your sketch folder, then I should have all the correct files (right?). If I still have issues to compile I must be missing some library or are using the wrong version of something.

                    Sure, but unfortunately I cannot upload a zip file here, please send me your email by private message.

                    Ok here is a google drive link, it should be easier:
                    https://drive.google.com/open?id=1IhLIx0nHd5KZR9dJ9qA0-_SMGmjEpbKj

                    korttomaK Offline
                    korttomaK Offline
                    korttoma
                    Hero Member
                    wrote on last edited by
                    #1565

                    @nca78 I have now measured the current consumption of the small bluetooth beacon device (N51822 QFABC0) using your code and the results are encouraging.

                    With your code I get around 4uA sleep current compared to 800-4000uA with my old code :D

                    Measurements done with an Micro (nano) ampere meter (double) that has not been calibrated against a reliable meter so do not take the measured values so seriously but more as a comparison.

                    Device

                    • Tomas
                    Nca78N 1 Reply Last reply
                    3
                    • korttomaK korttoma

                      @nca78 I have now measured the current consumption of the small bluetooth beacon device (N51822 QFABC0) using your code and the results are encouraging.

                      With your code I get around 4uA sleep current compared to 800-4000uA with my old code :D

                      Measurements done with an Micro (nano) ampere meter (double) that has not been calibrated against a reliable meter so do not take the measured values so seriously but more as a comparison.

                      Device

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

                      @korttoma I was going to ask you for some news. This is great news as it confirms the problem is solved even with older versions of the chip.
                      Time to start work on a clean library...

                      PS: I think you will have a reliable measurement with a simple multimeter, as the nrf51 by default is using an internal LDO, whether you feed it with 3.3V or (3.3V - burden voltage) in the end the chip will run at the same 1.8V voltage and use the same current. Of course it won't be the case if you have extra sensors on the board but it's not the case here.

                      T 1 Reply Last reply
                      1
                      • Nca78N Nca78

                        @korttoma I was going to ask you for some news. This is great news as it confirms the problem is solved even with older versions of the chip.
                        Time to start work on a clean library...

                        PS: I think you will have a reliable measurement with a simple multimeter, as the nrf51 by default is using an internal LDO, whether you feed it with 3.3V or (3.3V - burden voltage) in the end the chip will run at the same 1.8V voltage and use the same current. Of course it won't be the case if you have extra sensors on the board but it's not the case here.

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

                        @nca78 BTW, HolyIoT makes a similar beacon but nrf52 based. Should be much more energy efficient. The price is about $7

                        1 Reply Last reply
                        2
                        • Mars WarriorM Offline
                          Mars WarriorM Offline
                          Mars Warrior
                          wrote on last edited by
                          #1568

                          I see a lot of nice assembled PCB's on this forum, and just out of curiosity, but do you guys do your own SMT assembly?

                          I looked at the PCBA options, but just a small batch of 10 PCB's starts somewhere around $140 excluding components.
                          It would save me I think a lot of work, but on the other hand it feels expensive...

                          My ebyte modules & STM32 programmers are on there way from AliExpress, so no problem in that area.

                          T 2 Replies Last reply
                          0
                          • Mars WarriorM Mars Warrior

                            I see a lot of nice assembled PCB's on this forum, and just out of curiosity, but do you guys do your own SMT assembly?

                            I looked at the PCBA options, but just a small batch of 10 PCB's starts somewhere around $140 excluding components.
                            It would save me I think a lot of work, but on the other hand it feels expensive...

                            My ebyte modules & STM32 programmers are on there way from AliExpress, so no problem in that area.

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

                            @mars-warrior it depends on quantities of both PCBs and components on the PCBs.
                            If you have lets say 10 pcbs with 20 components and potentially will have to do it again, the best bet is get a small oven (kitchen type) with PID regulator.
                            If you just need 2-3 pcbs with 5-6 componets, hot air gun is your choice.
                            In my current project, I solder ebyte module by hand (very easy) and then LED, resisttors and capacitors with hot air and solder paste.
                            Looks pretty neat.

                            Mars WarriorM 1 Reply Last reply
                            1
                            • T Toyman

                              @mars-warrior it depends on quantities of both PCBs and components on the PCBs.
                              If you have lets say 10 pcbs with 20 components and potentially will have to do it again, the best bet is get a small oven (kitchen type) with PID regulator.
                              If you just need 2-3 pcbs with 5-6 componets, hot air gun is your choice.
                              In my current project, I solder ebyte module by hand (very easy) and then LED, resisttors and capacitors with hot air and solder paste.
                              Looks pretty neat.

                              Mars WarriorM Offline
                              Mars WarriorM Offline
                              Mars Warrior
                              wrote on last edited by
                              #1570

                              @toyman Thanx for that info!

                              Never worked (yet) with a hot air station/pencil.

                              Found some reviews here: https://wiki.ezvid.com/best-soldering-stations. Both the Kendal 853D and the Ayyue 968+ are stations I can afford to buy. I assume the cheaper ones ($50) are the ones to avoid...

                              Looking at some youtube vids about this subject, it seems doable, even for a novice like me ;-)

                              Of course, any recomendations about hot air stations are appreciated!

                              1 Reply Last reply
                              0
                              • Mars WarriorM Mars Warrior

                                I see a lot of nice assembled PCB's on this forum, and just out of curiosity, but do you guys do your own SMT assembly?

                                I looked at the PCBA options, but just a small batch of 10 PCB's starts somewhere around $140 excluding components.
                                It would save me I think a lot of work, but on the other hand it feels expensive...

                                My ebyte modules & STM32 programmers are on there way from AliExpress, so no problem in that area.

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

                                @mars-warrior

                                something like this:

                                https://store.reflowster.com/products/reflowster

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

                                  140$ it is quite expensive compared with a simple small oven
                                  https://www.youtube.com/watch?v=mjfnpjvw9jY

                                  T 1 Reply Last reply
                                  0
                                  • gohanG gohan

                                    140$ it is quite expensive compared with a simple small oven
                                    https://www.youtube.com/watch?v=mjfnpjvw9jY

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

                                    @gohan I am not telling you to buy this. Just a direction.
                                    I've created a PID sous vide machine. It's relatively easy project. SMD oven is absolutely the same. All you need is Arduino, thermoprobe and a relay.

                                    1 Reply Last reply
                                    0
                                    • alowhumA Offline
                                      alowhumA Offline
                                      alowhum
                                      Plugin Developer
                                      wrote on last edited by
                                      #1574

                                      Quick question: when programming the eByte module (or any module really):

                                      Should I select "reset enable or not? What does that do exactly?
                                      Should I select clock: "Crystal oscillator" for the eByte module?

                                      NeverDieN 2 Replies Last reply
                                      0
                                      • alowhumA alowhum

                                        Quick question: when programming the eByte module (or any module really):

                                        Should I select "reset enable or not? What does that do exactly?
                                        Should I select clock: "Crystal oscillator" for the eByte module?

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

                                        @alowhum "Reset enable" determines whether pin21 acts as a reset pin or not.

                                        1 Reply Last reply
                                        1
                                        • alowhumA alowhum

                                          Quick question: when programming the eByte module (or any module really):

                                          Should I select "reset enable or not? What does that do exactly?
                                          Should I select clock: "Crystal oscillator" for the eByte module?

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

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

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


                                          17

                                          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