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. OpenHardware.io
  3. 💬 nRF52832 ESP-LINK Shield for ESP8266 Wemos D1 Mini

💬 nRF52832 ESP-LINK Shield for ESP8266 Wemos D1 Mini

Scheduled Pinned Locked Moved OpenHardware.io
25 Posts 6 Posters 3.2k Views 4 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.
  • hekH Offline
    hekH Offline
    hek
    Admin
    wrote on last edited by
    #15

    Eh, not that I'm aware of. What files were missing?

    NeverDieN 1 Reply Last reply
    0
    • hekH hek

      Eh, not that I'm aware of. What files were missing?

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

      @hek All the files except for one gerber file and the PDF schematic.

      1 Reply Last reply
      0
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #17

        Hmm.. That's exceptionally strange. I haven't heard of any other project losing uploaded files.

        Have you seen anything similar in any of your other projects? Sure you really published them a year back?

        1 Reply Last reply
        0
        • Ikes 72000I Offline
          Ikes 72000I Offline
          Ikes 72000
          wrote on last edited by
          #18

          Hi,

          I'm new to mysensors, and for tests purpose, i need this gateway.
          Wemos works fine with esp-link.
          For nrf52832, i use Plateformio ide, and mysensors serial gateway sketch.

          // Enable debug prints to serial monitor
          #define MY_DEBUG
          
          
          // Enable and select radio type attached
          //#define MY_RADIO_RF24
          #define MY_RADIO_NRF5_ESB
          //#define MY_RADIO_RFM69
          //#define MY_RADIO_RFM95
          
          // Set LOW transmit power level as default, if you have an amplified NRF-module and
          // power your radio separately with a good regulator you can turn up PA level.
          //#define MY_RF24_PA_LEVEL RF24_PA_LOW
          
          // Enable serial gateway
          #define MY_GATEWAY_SERIAL
          
          // Define a lower baud rate for Arduinos running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender)
          #if F_CPU == 8000000L
          #define MY_BAUD_RATE 38400
          #endif
          
          // Enable inclusion mode
          #define MY_INCLUSION_MODE_FEATURE
          // Enable Inclusion mode button on gateway
          //#define MY_INCLUSION_BUTTON_FEATURE
          
          // Inverses behavior of inclusion button (if using external pullup)
          //#define MY_INCLUSION_BUTTON_EXTERNAL_PULLUP
          
          // Set inclusion mode duration (in seconds)
          #define MY_INCLUSION_MODE_DURATION 60
          // Digital pin used for inclusion mode button
          //#define MY_INCLUSION_MODE_BUTTON_PIN  3
          
          // Set blinking period
          #define MY_DEFAULT_LED_BLINK_PERIOD 300
          
          // Inverses the behavior of leds
          //#define MY_WITH_LEDS_BLINKING_INVERSE
          
          // Flash leds on rx/tx/err
          // Uncomment to override default HW configurations
          //#define MY_DEFAULT_ERR_LED_PIN 4  // Error led pin
          //#define MY_DEFAULT_RX_LED_PIN  6  // Receive led pin
          //#define MY_DEFAULT_TX_LED_PIN  5  // the PCB, on board LED
          
          #include <MySensors.h>
          
          void setup()
          {
              // Setup locally attached sensors
          }
          
          void presentation()
          {
              // Present locally attached sensors
          }
          
          void loop()
          {
              // Send locally attached sensor data here
          }
          
          

          As this, gateway don't work, esp-link don't receive anything.
          I think i need to specify witch pins of NRF are used for rx tx, but how doing that ?

          Thanks

          Ikes

          NeverDieN 1 Reply Last reply
          0
          • Ikes 72000I Ikes 72000

            Hi,

            I'm new to mysensors, and for tests purpose, i need this gateway.
            Wemos works fine with esp-link.
            For nrf52832, i use Plateformio ide, and mysensors serial gateway sketch.

            // Enable debug prints to serial monitor
            #define MY_DEBUG
            
            
            // Enable and select radio type attached
            //#define MY_RADIO_RF24
            #define MY_RADIO_NRF5_ESB
            //#define MY_RADIO_RFM69
            //#define MY_RADIO_RFM95
            
            // Set LOW transmit power level as default, if you have an amplified NRF-module and
            // power your radio separately with a good regulator you can turn up PA level.
            //#define MY_RF24_PA_LEVEL RF24_PA_LOW
            
            // Enable serial gateway
            #define MY_GATEWAY_SERIAL
            
            // Define a lower baud rate for Arduinos running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender)
            #if F_CPU == 8000000L
            #define MY_BAUD_RATE 38400
            #endif
            
            // Enable inclusion mode
            #define MY_INCLUSION_MODE_FEATURE
            // Enable Inclusion mode button on gateway
            //#define MY_INCLUSION_BUTTON_FEATURE
            
            // Inverses behavior of inclusion button (if using external pullup)
            //#define MY_INCLUSION_BUTTON_EXTERNAL_PULLUP
            
            // Set inclusion mode duration (in seconds)
            #define MY_INCLUSION_MODE_DURATION 60
            // Digital pin used for inclusion mode button
            //#define MY_INCLUSION_MODE_BUTTON_PIN  3
            
            // Set blinking period
            #define MY_DEFAULT_LED_BLINK_PERIOD 300
            
            // Inverses the behavior of leds
            //#define MY_WITH_LEDS_BLINKING_INVERSE
            
            // Flash leds on rx/tx/err
            // Uncomment to override default HW configurations
            //#define MY_DEFAULT_ERR_LED_PIN 4  // Error led pin
            //#define MY_DEFAULT_RX_LED_PIN  6  // Receive led pin
            //#define MY_DEFAULT_TX_LED_PIN  5  // the PCB, on board LED
            
            #include <MySensors.h>
            
            void setup()
            {
                // Setup locally attached sensors
            }
            
            void presentation()
            {
                // Present locally attached sensors
            }
            
            void loop()
            {
                // Send locally attached sensor data here
            }
            
            

            As this, gateway don't work, esp-link don't receive anything.
            I think i need to specify witch pins of NRF are used for rx tx, but how doing that ?

            Thanks

            Ikes

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

            @Ikes-72000 You can define pin mappings in the MyNRF5Board.h file.

            #define PIN_SERIAL_RX       (8)
            #define PIN_SERIAL_TX       (6)
            

            as illustrated in the posted demo code. The demo code "just works" for this hardware configuration, so I suggest you start with the demo code and confirm that it's working on your instance of the hardware before moving on with other code. That's how Adafruit and Sparkfun do it with their breakout boards as well.

            If you're looking to get an idea of how to integrate it with mySensors in some other manner, you might have a look at:
            https://www.openhardware.io/view/510/Multi-Sensor-TempHumidityPIR-LeakMagnetLightAccel

            Ikes 72000I 1 Reply Last reply
            1
            • NeverDieN NeverDie

              @Ikes-72000 You can define pin mappings in the MyNRF5Board.h file.

              #define PIN_SERIAL_RX       (8)
              #define PIN_SERIAL_TX       (6)
              

              as illustrated in the posted demo code. The demo code "just works" for this hardware configuration, so I suggest you start with the demo code and confirm that it's working on your instance of the hardware before moving on with other code. That's how Adafruit and Sparkfun do it with their breakout boards as well.

              If you're looking to get an idea of how to integrate it with mySensors in some other manner, you might have a look at:
              https://www.openhardware.io/view/510/Multi-Sensor-TempHumidityPIR-LeakMagnetLightAccel

              Ikes 72000I Offline
              Ikes 72000I Offline
              Ikes 72000
              wrote on last edited by
              #20

              @NeverDie , thanks, but unfortunately this doesn't work.

              Sketch i upload to nrf:

              // Enable serial gateway
              #define MY_GATEWAY_SERIAL
              
              #include <nrf.h>
              #include <MySensors.h>
              
              void setup() {
                Serial.begin(460800);
                Serial.println();
                Serial.println("Countdown 3...");
                Serial.flush();
                delay(100);
                Serial.println("Countdown 2...");
                Serial.flush();
                delay(100);
                Serial.println("Countdown 1...");
                Serial.flush();
                delay(100);
                Serial.println("Starting...");
                Serial.flush();
                delay(100);
              }
              uint32_t loopCounter=0;
              void loop() {
                Serial.println(loopCounter++);
                Serial.flush();
              }
              

              Log:

              c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes
              c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .heap by 4 bytes
              c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .stack_dummy by 4 bytes
              c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes
              c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .heap by 4 bytes
              c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .stack_dummy by 4 bytes
              c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes
              c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .heap by 4 bytes
              c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .stack_dummy by 4 bytes
              Le croquis utilise 22984 octets (4%) de l'espace de stockage de programmes. Le maximum est de 524288 octets.
              Target voltage: 3.73V
              Remote debugging using \\.\COM6
              Available Targets:
              No. Att Driver
               1      Nordic nRF52 M3/M4
               2      Nordic nRF52 Access Port 
              Attaching to Remote target
              0x000009c4 in ?? ()
              Reading symbols from MyBoardNRF5.ino.elf...done.
              Loading section .text, size 0x59c8 lma 0x0
              Loading section .ARM.exidx, size 0x8 lma 0x59c8
              Loading section .data, size 0xbc lma 0x59d0
              Start address 0x1410, load size 23180
              Transfer rate: 39 KB/sec, 891 bytes/write.
              Temporary breakpoint 1 at 0x1370: file G:\Documents\Arduino\libraries\MySensors/hal/architecture/NRF5/MyMainNRF5.cpp, line 23.
              Starting program: C:\Users\Ikes\AppData\Local\Temp\arduino_build_693731\MyBoardNRF5.ino.elf 
              Note: automatically using hardware breakpoints for read-only addresses.
              
              Temporary breakpoint 1, main ()
                  at G:\Documents\Arduino\libraries\MySensors/hal/architecture/NRF5/MyMainNRF5.cpp:23
              23	{
              
              Program complete!
              

              Don't see anything in esp-link console.

              NeverDieN 1 Reply Last reply
              0
              • Ikes 72000I Ikes 72000

                @NeverDie , thanks, but unfortunately this doesn't work.

                Sketch i upload to nrf:

                // Enable serial gateway
                #define MY_GATEWAY_SERIAL
                
                #include <nrf.h>
                #include <MySensors.h>
                
                void setup() {
                  Serial.begin(460800);
                  Serial.println();
                  Serial.println("Countdown 3...");
                  Serial.flush();
                  delay(100);
                  Serial.println("Countdown 2...");
                  Serial.flush();
                  delay(100);
                  Serial.println("Countdown 1...");
                  Serial.flush();
                  delay(100);
                  Serial.println("Starting...");
                  Serial.flush();
                  delay(100);
                }
                uint32_t loopCounter=0;
                void loop() {
                  Serial.println(loopCounter++);
                  Serial.flush();
                }
                

                Log:

                c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes
                c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .heap by 4 bytes
                c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .stack_dummy by 4 bytes
                c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes
                c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .heap by 4 bytes
                c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .stack_dummy by 4 bytes
                c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes
                c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .heap by 4 bytes
                c:/users/ikes/appdata/local/arduino15/packages/sandeepmistry/tools/gcc-arm-none-eabi/5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .stack_dummy by 4 bytes
                Le croquis utilise 22984 octets (4%) de l'espace de stockage de programmes. Le maximum est de 524288 octets.
                Target voltage: 3.73V
                Remote debugging using \\.\COM6
                Available Targets:
                No. Att Driver
                 1      Nordic nRF52 M3/M4
                 2      Nordic nRF52 Access Port 
                Attaching to Remote target
                0x000009c4 in ?? ()
                Reading symbols from MyBoardNRF5.ino.elf...done.
                Loading section .text, size 0x59c8 lma 0x0
                Loading section .ARM.exidx, size 0x8 lma 0x59c8
                Loading section .data, size 0xbc lma 0x59d0
                Start address 0x1410, load size 23180
                Transfer rate: 39 KB/sec, 891 bytes/write.
                Temporary breakpoint 1 at 0x1370: file G:\Documents\Arduino\libraries\MySensors/hal/architecture/NRF5/MyMainNRF5.cpp, line 23.
                Starting program: C:\Users\Ikes\AppData\Local\Temp\arduino_build_693731\MyBoardNRF5.ino.elf 
                Note: automatically using hardware breakpoints for read-only addresses.
                
                Temporary breakpoint 1, main ()
                    at G:\Documents\Arduino\libraries\MySensors/hal/architecture/NRF5/MyMainNRF5.cpp:23
                23	{
                
                Program complete!
                

                Don't see anything in esp-link console.

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

                @Ikes-72000 Did you remember to set the baud rate on your ESP-LINK serial console to 460800 baud?

                Ikes 72000I 1 Reply Last reply
                0
                • NeverDieN NeverDie

                  @Ikes-72000 Did you remember to set the baud rate on your ESP-LINK serial console to 460800 baud?

                  Ikes 72000I Offline
                  Ikes 72000I Offline
                  Ikes 72000
                  wrote on last edited by
                  #22

                  @NeverDie, yes, but same, nothing in the console.
                  I will check my wiring.

                  And what the signification of this in log ?

                  Temporary breakpoint 1 at 0x1370: file G:\Documents\Arduino\libraries\MySensors/hal/architecture/NRF5/MyMainNRF5.cpp, line 23.
                  Starting program: C:\Users\Ikes\AppData\Local\Temp\arduino_build_693731\MyBoardNRF5.ino.elf 
                  Note: automatically using hardware breakpoints for read-only addresses.
                  
                  Temporary breakpoint 1, main ()
                      at G:\Documents\Arduino\libraries\MySensors/hal/architecture/NRF5/MyMainNRF5.cpp:23
                  23	{
                   
                  
                  NeverDieN 1 Reply Last reply
                  0
                  • Ikes 72000I Ikes 72000

                    @NeverDie, yes, but same, nothing in the console.
                    I will check my wiring.

                    And what the signification of this in log ?

                    Temporary breakpoint 1 at 0x1370: file G:\Documents\Arduino\libraries\MySensors/hal/architecture/NRF5/MyMainNRF5.cpp, line 23.
                    Starting program: C:\Users\Ikes\AppData\Local\Temp\arduino_build_693731\MyBoardNRF5.ino.elf 
                    Note: automatically using hardware breakpoints for read-only addresses.
                    
                    Temporary breakpoint 1, main ()
                        at G:\Documents\Arduino\libraries\MySensors/hal/architecture/NRF5/MyMainNRF5.cpp:23
                    23	{
                     
                    
                    NeverDieN Offline
                    NeverDieN Offline
                    NeverDie
                    Hero Member
                    wrote on last edited by
                    #23

                    @Ikes-72000 Maybe it's platform.io related? I don't recognize it.

                    Good luck!

                    Ikes 72000I 1 Reply Last reply
                    0
                    • NeverDieN NeverDie

                      @Ikes-72000 Maybe it's platform.io related? I don't recognize it.

                      Good luck!

                      Ikes 72000I Offline
                      Ikes 72000I Offline
                      Ikes 72000
                      wrote on last edited by
                      #24

                      @NeverDie, no, log is from arduino ide.

                      NeverDieN 1 Reply Last reply
                      0
                      • Ikes 72000I Ikes 72000

                        @NeverDie, no, log is from arduino ide.

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

                        @Ikes-72000 If it were me having these problems, I'd simplify the situation by demounting the nRF board fromt he D1 Mini, then I'd power it, hook it up to a console and see whether I'm getting the count that it should be outputting. At that point what you have is simply a breakout board for the nRF, and it doesn't get any simpler than that.

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


                        15

                        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