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 637.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.
  • NeverDieN NeverDie

    Received a new module. Here's a size comparison with the Ebyte Module:
    0_1501544794710_size1.jpg
    0_1501544805955_size2.jpg

    mtiutiuM Offline
    mtiutiuM Offline
    mtiutiu
    Hardware Contributor
    wrote on last edited by mtiutiu
    #450

    @NeverDie
    Where did you get that small nrf52832 module?

    NeverDieN 1 Reply Last reply
    0
    • mtiutiuM mtiutiu

      @NeverDie
      Where did you get that small nrf52832 module?

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

      @mtiutiu said in nRF5 Bluetooth action!:

      @NeverDie
      Where did you get that small nrf52832 module?

      Here: https://www.aliexpress.com/item/NRF52832-Bluetooth-4-2-module-Bluetooth-5-program-PCBA-serial-transmission-cost-effective/32818791344.html?spm=a2g0s.9042311.0.0.jWh9gH

      Nca78N 1 Reply Last reply
      0
      • NeverDieN NeverDie

        @mtiutiu said in nRF5 Bluetooth action!:

        @NeverDie
        Where did you get that small nrf52832 module?

        Here: https://www.aliexpress.com/item/NRF52832-Bluetooth-4-2-module-Bluetooth-5-program-PCBA-serial-transmission-cost-effective/32818791344.html?spm=a2g0s.9042311.0.0.jWh9gH

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

        @NeverDie I guess you don't need to make a breakout board for those, your spare NModules will do if you use the "PA/LNA" radio footprint ;)

        NeverDieN 1 Reply Last reply
        1
        • Nca78N Nca78

          @NeverDie I guess you don't need to make a breakout board for those, your spare NModules will do if you use the "PA/LNA" radio footprint ;)

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

          @Nca78
          Thanks! Good to know.

          1 Reply Last reply
          0
          • Nca78N Offline
            Nca78N Offline
            Nca78
            Hardware Contributor
            wrote on last edited by
            #454

            Just realized it has 2 extra I/O on the side, and the SWD are only pads on top, which makes 8 I/O available, it's much more interesting than the NRF51822 version.

            NeverDieN 1 Reply Last reply
            0
            • Nca78N Nca78

              Just realized it has 2 extra I/O on the side, and the SWD are only pads on top, which makes 8 I/O available, it's much more interesting than the NRF51822 version.

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

              @Nca78
              Is there even a way to program the nRF51822 version? I'd have to check, but I don't recall the two SWD pins being on its pinout.

              Nca78N 1 Reply Last reply
              0
              • NeverDieN NeverDie

                @Nca78
                Is there even a way to program the nRF51822 version? I'd have to check, but I don't recall the two SWD pins being on its pinout.

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

                @NeverDie said in nRF5 Bluetooth action!:

                @Nca78
                Is there even a way to program the nRF51822 version? I'd have to check, but I don't recall the two SWD pins being on its pinout.

                They are on the pinout, so you only have 4 I/Os available.

                1 Reply Last reply
                1
                • d00616D d00616

                  @NeverDie said in nRF5 Bluetooth action!:

                  I tried this function call on an nRF52 DK, and it seems to work. I then tried it on an Ebyte module, treated as an nRF52 DK "board", and it reported zero voltage.

                  I have tried the hwCPUVoltage() function with an Ebyte and an RedBear module. Both modules are reporting the voltage.

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

                  @d00616 said in nRF5 Bluetooth action!:

                  I have tried the hwCPUVoltage() function with an Ebyte and an RedBear module. Both modules are reporting the voltage.

                  That's good news. There must be something wrong with how I'm doing it. Which board type are you using for the Ebyte module?

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

                    From what I understand the NRF52832 has some kind of enforcer that allows different serial hardwares to be assigned to different pins

                    Now using the arduino IDE I want to use the I2C pins that are assigned hardwarely to different pins here is the situation

                    I have one PCB that has SCL connected to pin 20 and SDA to 21

                    and another PCB that has SCL connected to pin 11 and SDA to pin 12

                    I want to define the enforcer for the pins within their dedicated sketches without running around to the internal arduino files and change the pin assignment for each upload to each board.

                    How'd I do that? I assume you'd have to do some thing like that in the upper side of the personal code.

                    #define SDL...(Something else I don't know ) 11
                    #define SDA...(Something else I don't know ) 12

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

                      I think I have a better hypothesis as to what's going on in my situation: the ebyte module is getting hung-up trying to establish communication with the serial gateway. Looking at the output of the serial gateway, it looks as though it is receiving packets from the Ebyte module. However, looking at the Ebyte output, it thinks it is failing. So, the Ebyte never quite gets out of the "establish communication link" mode.

                      This doesn't occur, though, if I use an nRF52 DK, instead of an Ebyte module.

                      So, what might explain this is maybe the MISO pin on the Ebyte module isn't mapped right.

                      @d00616 Would you please share the pin mappings and board type that you are using for your ebyte module? Since you are having success, I think that will fix the problem.

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

                        Does anybody know why the function tone() doesn't work for the nrf52?

                        mfalkviddM d00616D 2 Replies Last reply
                        0
                        • M Mike_Lemo

                          Does anybody know why the function tone() doesn't work for the nrf52?

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

                          @Mike_Lemo could you be slightly more specific than "doesn't work"?

                          M 1 Reply Last reply
                          0
                          • mfalkviddM mfalkvidd

                            @Mike_Lemo could you be slightly more specific than "doesn't work"?

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

                            @mfalkvidd said in nRF5 Bluetooth action!:

                            @Mike_Lemo could you be slightly more specific than "doesn't work"?

                            apparently it doesn't recognize it says tone wasn't declared in this scope

                            That's how the line looks tone(BUZZER_PIN, BUZZER_TONE);
                            BUZZER_PIN = 26
                            BUZZER_TONE = 3000

                            mfalkviddM 1 Reply Last reply
                            0
                            • M Mike_Lemo

                              @mfalkvidd said in nRF5 Bluetooth action!:

                              @Mike_Lemo could you be slightly more specific than "doesn't work"?

                              apparently it doesn't recognize it says tone wasn't declared in this scope

                              That's how the line looks tone(BUZZER_PIN, BUZZER_TONE);
                              BUZZER_PIN = 26
                              BUZZER_TONE = 3000

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

                              @Mike_Lemo if you mean the stuff described at https://www.arduino.cc/en/Reference/Tone it's because it only supports the following mcus:
                              ATmega8
                              ATmega168/328
                              ATmega1280

                              M 1 Reply Last reply
                              0
                              • mfalkviddM mfalkvidd

                                @Mike_Lemo if you mean the stuff described at https://www.arduino.cc/en/Reference/Tone it's because it only supports the following mcus:
                                ATmega8
                                ATmega168/328
                                ATmega1280

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

                                @mfalkvidd said in nRF5 Bluetooth action!:

                                @Mike_Lemo if you mean the stuff described at https://www.arduino.cc/en/Reference/Tone it's because it only supports the following mcus:
                                ATmega8
                                ATmega168/328
                                ATmega1280

                                How is it possible to make it copatible with the NRF52?

                                mfalkviddM 1 Reply Last reply
                                0
                                • M Mike_Lemo

                                  @mfalkvidd said in nRF5 Bluetooth action!:

                                  @Mike_Lemo if you mean the stuff described at https://www.arduino.cc/en/Reference/Tone it's because it only supports the following mcus:
                                  ATmega8
                                  ATmega168/328
                                  ATmega1280

                                  How is it possible to make it copatible with the NRF52?

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

                                  @Mike_Lemo it (the tone library) would need to be ported

                                  M 1 Reply Last reply
                                  0
                                  • mfalkviddM mfalkvidd

                                    @Mike_Lemo it (the tone library) would need to be ported

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

                                    @mfalkvidd said in nRF5 Bluetooth action!:

                                    @Mike_Lemo it would need to be ported

                                    No idea what you are talking about.

                                    mfalkviddM 1 Reply Last reply
                                    0
                                    • M Mike_Lemo

                                      @mfalkvidd said in nRF5 Bluetooth action!:

                                      @Mike_Lemo it would need to be ported

                                      No idea what you are talking about.

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

                                      @Mike_Lemo look it up? https://en.wikipedia.org/wiki/Software_portability#Effort_to_port_source_code

                                      M 1 Reply Last reply
                                      0
                                      • NeverDieN NeverDie

                                        I think I have a better hypothesis as to what's going on in my situation: the ebyte module is getting hung-up trying to establish communication with the serial gateway. Looking at the output of the serial gateway, it looks as though it is receiving packets from the Ebyte module. However, looking at the Ebyte output, it thinks it is failing. So, the Ebyte never quite gets out of the "establish communication link" mode.

                                        This doesn't occur, though, if I use an nRF52 DK, instead of an Ebyte module.

                                        So, what might explain this is maybe the MISO pin on the Ebyte module isn't mapped right.

                                        @d00616 Would you please share the pin mappings and board type that you are using for your ebyte module? Since you are having success, I think that will fix the problem.

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

                                        @NeverDie said in nRF5 Bluetooth action!:

                                        I think I have a better hypothesis as to what's going on in my situation: the ebyte module is getting hung-up trying to establish communication with the serial gateway. Looking at the output of the serial gateway, it looks as though it is receiving packets from the Ebyte module. However, looking at the Ebyte output, it thinks it is failing. So, the Ebyte never quite gets out of the "establish communication link" mode.

                                        This doesn't occur, though, if I use an nRF52 DK, instead of an Ebyte module.

                                        So, what might explain this is maybe the MISO pin on the Ebyte module isn't mapped right.

                                        @d00616 Would you please share the pin mappings and board type that you are using for your ebyte module? Since you are having success, I think that will fix the problem.

                                        Some further evidence in support of this hypothesis (from: https://github.com/mysensors/ArduinoHwNRF5):

                                        Most components, like UART, SPI, Wire Bus, of the nRF5 series chips don't have a fixed pin mapping.

                                        NeverDieN 1 Reply Last reply
                                        0
                                        • mfalkviddM mfalkvidd

                                          @Mike_Lemo look it up? https://en.wikipedia.org/wiki/Software_portability#Effort_to_port_source_code

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

                                          @mfalkvidd said in nRF5 Bluetooth action!:

                                          @Mike_Lemo look it up? https://en.wikipedia.org/wiki/Software_portability#Effort_to_port_source_code

                                          Well apperantly this function uses a PWM pin at 50% duty but the frequency varies according to the functiong user parameter now I just know how to active a PWM pin at 50% duty but not how to acces the NRF52 registers to change the frequency of the PWM.

                                          I don't realy know how to access the registers you see at the product's PDF and the other process.

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


                                          32

                                          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