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.
  • scalzS scalz

    @Mike_Lemo said in nRF5 Bluetooth action!:

    Yes I did mean wirelessly like central and peripherial connection... Is that supported?

    You're mixing things maybe. You're talking about bluetooth. that's not Mysensors ;)
    But if you want to get a connection between two nrf52832 or nrf52832/nrf24, take a look at d00616 docs.

    a nrf52 is a nrf52, no matter the module.

    So nfc pins (which are fixed) will be the same on every nrf52 you'll find. It can just happen that you get a board where those pins are used for other purpose (then you can't use nfc without little hack).

    But regarding the cdebyte modules, these are simply nrf52 with pinout. So no problem here. Just take a look at the nordic link d00616 showed about using nfc.

    In case.. pins are P0.09 and P0.10. But you'll need to tune your nfc antenna, and add capacitors. Sparkfun, adafruit have some infos on this as they're selling boards.

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

    @scalz

    Yeah but my question was about what is connected in the module and what components I have to use....

    Also about the NFC I'm planning to use it with the arduino IDE so just wanted to ask if there is a library for it because the SDK is quite useless in this case as well as the Central peripheral connection.

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

      I was able to reduce the active listen period to about 100us:
      0_1506303847635_NewFile3.png
      Now listening every 100ms yields a 10F supercap voltage measured decline of just 9mv per hour. i.e. a decline of 0.108v by the end of 12 hours.

      d00616D 1 Reply Last reply
      2
      • M Mike_Lemo

        @scalz

        Yeah but my question was about what is connected in the module and what components I have to use....

        Also about the NFC I'm planning to use it with the arduino IDE so just wanted to ask if there is a library for it because the SDK is quite useless in this case as well as the Central peripheral connection.

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

        @Mike_Lemo said in nRF5 Bluetooth action!:

        Also about the NFC I'm planning to use it with the arduino IDE so just wanted to ask if there is a library for it because the SDK is quite useless in this case as well as the Central peripheral connection.

        Now there is a second port of arduino to nRF52. This includes some libraries, like NFC, but they using the SDK. MySensors is currently not ready for this arduino-port.

        1 Reply Last reply
        0
        • NeverDieN NeverDie

          I was able to reduce the active listen period to about 100us:
          0_1506303847635_NewFile3.png
          Now listening every 100ms yields a 10F supercap voltage measured decline of just 9mv per hour. i.e. a decline of 0.108v by the end of 12 hours.

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

          @NeverDie said in nRF5 Bluetooth action!:

          Now listening every 100ms yields a 10F supercap voltage measured decline of just 9mv per hour. i.e. a decline of 0.108v by the end of 12 hours.

          Great job. If I'm not wrong the method allows nearly 1 year of listening time with a CR2032.

          NeverDieN 1 Reply Last reply
          0
          • M Mike_Lemo

            Where is it possible to find a reference schematic for using the NTF52832 E73-2G4M04S module with NFC?

            not much is being given in the datasheet not even where the NFC pins go.

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

            @Mike_Lemo your best bet is to "convert" the module to Arduino Primo and use the NFC libraries developed for it.
            d00616 gave you the link to the arduino org github. Pls. note that Primo core generates a merged softdevice+sketch hex so you should locate it in the Temp folder and upload.

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

              Here's a very simple OPEN/CLOSE remote control I was able to quickly throw together using my small prototyping board:
              0_1506355423385_open_close.jpg
              It required only two buttons, a diode, a resistor, and (obviously) some wire. When not in use, everything is powered 100% OFF to save the most energy possible. So, pushing either button powers it ON, at which point it rapidly determines which button was pushed and then sends the corresponding packet to the receiver. From the standpoint of human perception, it all appears to happen instantly.

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

                This is how the next version of the protoboard will look:
                0_1506377541668_proto1.png 0_1506377552245_proto2.png

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

                  Interestingly, it looks as though Arduino is suggesting/recommending users to use the regular Arduino Primo to program the Arduino Primo Core (i.e. the wearable).
                  alt text

                  T 1 Reply Last reply
                  0
                  • NeverDieN NeverDie

                    Interestingly, it looks as though Arduino is suggesting/recommending users to use the regular Arduino Primo to program the Arduino Primo Core (i.e. the wearable).
                    alt text

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

                    @NeverDie is this SWD?

                    NeverDieN 1 Reply Last reply
                    0
                    • T Toyman

                      @NeverDie is this SWD?

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

                      @Toyman said in nRF5 Bluetooth action!:

                      @NeverDie is this SWD?

                      I don't have either the Primo or the Primo Core, so I can't say for sure. However, I presume so.

                      1 Reply Last reply
                      0
                      • M Mike_Lemo

                        Did anyone managed to get two NRF52832 to connect to each other with the arduino IDE and communicate?

                        Also why does I2C initializes only after an SWD programmed gets connected?

                        Wierd phenomenon when I use an I2C oled display with that chip and program it with an st link V2 after it displays alright when it's booted if the SWD programmer is connected but as soon as you disconnect it everything else works but the I2C display...

                        U Offline
                        U Offline
                        Uhrheber
                        wrote on last edited by
                        #962

                        @Mike_Lemo
                        This sounds more like an EMC issue.
                        The connected ST Link filters some disturbance at the i2c lines, and when it's not connected, the disturbance corrupts the signals.
                        Try connecting capacitors from the i2c lines to ground. I'd start with 100pF each.
                        May also be a power supply issue. Did you connect the st-link's 3.3V line to the board?

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

                          Here's the small budget nRF51 soldered to the breakout board that I had linked earlier above:
                          0_1506460203841_nrf51bob.jpg

                          NeverDieN 1 Reply Last reply
                          0
                          • NeverDieN NeverDie

                            Here's the small budget nRF51 soldered to the breakout board that I had linked earlier above:
                            0_1506460203841_nrf51bob.jpg

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

                            I have the RTC running off the low frequency internal RC, because I don't see a crystal oscillator on the module. I have it blinking an LED now and sending text to the serial port, which I'm able to read on the serial console.

                            At least so far, all is good. :)

                            1 Reply Last reply
                            0
                            • NeverDieN NeverDie

                              Here's a very simple OPEN/CLOSE remote control I was able to quickly throw together using my small prototyping board:
                              0_1506355423385_open_close.jpg
                              It required only two buttons, a diode, a resistor, and (obviously) some wire. When not in use, everything is powered 100% OFF to save the most energy possible. So, pushing either button powers it ON, at which point it rapidly determines which button was pushed and then sends the corresponding packet to the receiver. From the standpoint of human perception, it all appears to happen instantly.

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

                              @NeverDie said in nRF5 Bluetooth action!:

                              Here's a very simple OPEN/CLOSE remote control I was able to quickly throw together using my small prototyping board:
                              0_1506355423385_open_close.jpg
                              It required only two buttons, a diode, a resistor, and (obviously) some wire. When not in use, everything is powered 100% OFF to save the most energy possible. So, pushing either button powers it ON, at which point it rapidly determines which button was pushed and then sends the corresponding packet to the receiver. From the standpoint of human perception, it all appears to happen instantly.

                              Hello @NeverDie, could you please share the code for this ?
                              I'd like to adapt and test it on a reprogrammed nrf51822 beacon that I just received.

                              NeverDieN 1 Reply Last reply
                              0
                              • Nca78N Nca78

                                @NeverDie said in nRF5 Bluetooth action!:

                                Here's a very simple OPEN/CLOSE remote control I was able to quickly throw together using my small prototyping board:
                                0_1506355423385_open_close.jpg
                                It required only two buttons, a diode, a resistor, and (obviously) some wire. When not in use, everything is powered 100% OFF to save the most energy possible. So, pushing either button powers it ON, at which point it rapidly determines which button was pushed and then sends the corresponding packet to the receiver. From the standpoint of human perception, it all appears to happen instantly.

                                Hello @NeverDie, could you please share the code for this ?
                                I'd like to adapt and test it on a reprogrammed nrf51822 beacon that I just received.

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

                                @Nca78
                                I can, but it wouldn't be proper "mysensors" code, because mysensors code has a 5-10 second power-up delay. So, for that reason, it's using radiohead instead. Do you still want it anyway?

                                Nca78N 1 Reply Last reply
                                0
                                • NeverDieN NeverDie

                                  @Nca78
                                  I can, but it wouldn't be proper "mysensors" code, because mysensors code has a 5-10 second power-up delay. So, for that reason, it's using radiohead instead. Do you still want it anyway?

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

                                  @NeverDie said in nRF5 Bluetooth action!:

                                  @Nca78
                                  I can, but it wouldn't be proper "mysensors" code, because mysensors code has a 5-10 second power-up delay. So, for that reason, it's using radiohead instead. Do you still want it anyway?

                                  Ah I see, probably still interesting to see, please share anyway :)

                                  NeverDieN 1 Reply Last reply
                                  0
                                  • T Offline
                                    T Offline
                                    Toyman
                                    wrote on last edited by Toyman
                                    #968

                                    I am trying to reprogram a commercial nrf51 module. Under "commerical" I mean "not from aliexpress", but installed in "smart" bluetooth socket.
                                    I can connect to it with Black Magic Probe just fine, but after mass_erase, BMP reports 0xfffffffe instead of usual 0xffffffff, meaning something is lef behind. That prohibits reflashing of softdevice BUT I can load "plain" skethes that do not require softdevice
                                    I ASSUME the module has some kind of write protection and/or UICR registers set that are not erased with BMP mass+erase command.
                                    I've tried to load d0016 uuicr clearing sketch, It loads fine, but I've still got 0xfffffffe after masserase.
                                    So what's the proper way to really completely erase the module?
                                    I have nrf52 dk that I tried to use as a programmer but it didn't worked.

                                    JokgiJ 1 Reply Last reply
                                    0
                                    • Nca78N Nca78

                                      @NeverDie said in nRF5 Bluetooth action!:

                                      @Nca78
                                      I can, but it wouldn't be proper "mysensors" code, because mysensors code has a 5-10 second power-up delay. So, for that reason, it's using radiohead instead. Do you still want it anyway?

                                      Ah I see, probably still interesting to see, please share anyway :)

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

                                      @Nca78 said in nRF5 Bluetooth action!:

                                      @NeverDie said in nRF5 Bluetooth action!:

                                      @Nca78
                                      I can, but it wouldn't be proper "mysensors" code, because mysensors code has a 5-10 second power-up delay. So, for that reason, it's using radiohead instead. Do you still want it anyway?

                                      Ah I see, probably still interesting to see, please share anyway :)

                                      Here it is, warts and all:
                                      0_1506603795796_remote_control_v031.zip
                                      It works, but it's just hastily improvised throw-away code, so I made no attempt to polish it. i.e. For anyone reading this: It is very definitely not demo code.

                                      1 Reply Last reply
                                      1
                                      • NeverDieN NeverDie

                                        I was thinking that maybe the Ebyte module is stuck in some kind of reset mode, but I just now checked pin P0.21 (the reset pin), and it measures high at 3.3v. This is the same as for the Sparkfun board, which I have no trouble programming. Reset is active low.

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

                                        @NeverDie This may be old news but I will throw it out anyway. The Reset pin on the nRF52 series is both a GPIO and RESET line (one or the other) . This is not a dedicated Reset however and the application must define that pin as RESET. This is the only pin that can be defined as reset. The Datasheet describes this as well.

                                        NeverDieN 1 Reply Last reply
                                        1
                                        • T Toyman

                                          I am trying to reprogram a commercial nrf51 module. Under "commerical" I mean "not from aliexpress", but installed in "smart" bluetooth socket.
                                          I can connect to it with Black Magic Probe just fine, but after mass_erase, BMP reports 0xfffffffe instead of usual 0xffffffff, meaning something is lef behind. That prohibits reflashing of softdevice BUT I can load "plain" skethes that do not require softdevice
                                          I ASSUME the module has some kind of write protection and/or UICR registers set that are not erased with BMP mass+erase command.
                                          I've tried to load d0016 uuicr clearing sketch, It loads fine, but I've still got 0xfffffffe after masserase.
                                          So what's the proper way to really completely erase the module?
                                          I have nrf52 dk that I tried to use as a programmer but it didn't worked.

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

                                          @Toyman What is the make and model of the module. You can use the nRF52-DK to erase the device. P20 is a ease access to the programming pins on that board. You need to power up the module, run the VDD from the module back to the dev kit , P20, Pin2. Hook up the SWDIO lines to Pin3 and the SWDCLK to Pin4. and Ground, Pin8. As reset is not hardwired you don't have to hook that up unless you want to (Pin7. . ![alt text](image url) You can use nRFJPROG to exersise the J-Link (Segger). This is found in the downloadable tools on the Nordic site. BTW - I have no problem using J-Link Commander version 6.20c with the nRF52-DK with the nRF52832 mounted. I hope this helped. 0_1506616486979_Programming using P20 on the dev kit.JPG

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


                                          18

                                          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