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. Hardware
  3. Getting more usable input pins on Wemos D1 Mini / ESP8266

Getting more usable input pins on Wemos D1 Mini / ESP8266

Scheduled Pinned Locked Moved Hardware
14 Posts 2 Posters 15.5k 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.
  • E Offline
    E Offline
    emc2
    Hardware Contributor
    wrote on last edited by
    #5

    Yes I only needed #define MY_RF69_SPI_CS D8

    Glad to see it worked for you!

    I did not pay attention that we had an official wiring esp8266 / RFM yet, but It seems there is actually a mistake on the website, the table says NSS -> D2 but on the schematic it's using D8. Maybe D8 is default and you had some issues on that if you were using D2 without #define MY_RF69_SPI_CS D2 ?

    I'm personally using D2 for IRQ so maybe by switching things around you can get even more usable pins!

    mfalkviddM 1 Reply Last reply
    0
    • E emc2

      Yes I only needed #define MY_RF69_SPI_CS D8

      Glad to see it worked for you!

      I did not pay attention that we had an official wiring esp8266 / RFM yet, but It seems there is actually a mistake on the website, the table says NSS -> D2 but on the schematic it's using D8. Maybe D8 is default and you had some issues on that if you were using D2 without #define MY_RF69_SPI_CS D2 ?

      I'm personally using D2 for IRQ so maybe by switching things around you can get even more usable pins!

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

      @emc2 Seems like I spoke too soon. I am able to initialize the RFM69 with D8 for CS, but the radio never signals the esp that a packet has been sent so it just hangs on the first send :(

      We did not have a wiring guide for RFM69+ESP8266 until about two weeks ago, when I created one :) I used D2 when I verified the connections, so that's what the guide said until a few minuted ago. Since using D8 frees up D2, I changed the picture but I have changed it back now since I am unable to get it working.

      E 1 Reply Last reply
      0
      • mfalkviddM mfalkvidd

        @emc2 Seems like I spoke too soon. I am able to initialize the RFM69 with D8 for CS, but the radio never signals the esp that a packet has been sent so it just hangs on the first send :(

        We did not have a wiring guide for RFM69+ESP8266 until about two weeks ago, when I created one :) I used D2 when I verified the connections, so that's what the guide said until a few minuted ago. Since using D8 frees up D2, I changed the picture but I have changed it back now since I am unable to get it working.

        E Offline
        E Offline
        emc2
        Hardware Contributor
        wrote on last edited by
        #7

        @mfalkvidd
        Just to try, if not present, do you mind adding to you sketch

        #define ARDUINO_ARCH_ESP8266
        
        mfalkviddM 1 Reply Last reply
        0
        • E emc2

          @mfalkvidd
          Just to try, if not present, do you mind adding to you sketch

          #define ARDUINO_ARCH_ESP8266
          
          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #8

          @emc2 it is already defined.

          #ifdef ARDUINO_ARCH_ESP8266
          #error ARDUINO_ARCH_ESP8266 is defined
          #endif
          

          results in

          error: #error ARDUINO_ARCH_ESP8266 is defined
          

          so defining it again should not make a difference, right?

          1 Reply Last reply
          0
          • mfalkviddM Offline
            mfalkviddM Offline
            mfalkvidd
            Mod
            wrote on last edited by
            #9

            It works now, using D8 for CS. I think I had some loose-fitting wires.

            I have updated connecting the radio to use D8 instead of D2. With D2 being more flexible, it is better to have that pin unused.

            1 Reply Last reply
            1
            • E Offline
              E Offline
              emc2
              Hardware Contributor
              wrote on last edited by emc2
              #10

              Yes if it's already there no need to redefine it, seems it's only missing when in gateway mode.

              It may be a RFM96 issue then, if you have a RFM69 lying around you may want to try if it works with it, I had it working and some others too with NSS on D8 and IRQ on D2, so something may behave differently.

              Guess we posted at the same time, good to see it's working for you too.

              mfalkviddM 1 Reply Last reply
              0
              • E emc2

                Yes if it's already there no need to redefine it, seems it's only missing when in gateway mode.

                It may be a RFM96 issue then, if you have a RFM69 lying around you may want to try if it works with it, I had it working and some others too with NSS on D8 and IRQ on D2, so something may behave differently.

                Guess we posted at the same time, good to see it's working for you too.

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

                @emc2 you. Thanks a lot for helping me! Tomorrow I can carry my GPS node in my backpack and map out radio coverage :)

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  emc2
                  Hardware Contributor
                  wrote on last edited by
                  #12

                  I'm interested to see how it goes and how a GPS module can be used.

                  As for the official wiring diagram, eventually consider using D2 as the default IRQ pin on it, this way it's consistent with nRF24 wiring (and can even reuse the same picture), and many people used it this way mostly since this https://forum.mysensors.org/topic/3061/solved-esp8266-gateway-with-rfm69-wdt-issues/4 post.

                  mfalkviddM 1 Reply Last reply
                  0
                  • E emc2

                    I'm interested to see how it goes and how a GPS module can be used.

                    As for the official wiring diagram, eventually consider using D2 as the default IRQ pin on it, this way it's consistent with nRF24 wiring (and can even reuse the same picture), and many people used it this way mostly since this https://forum.mysensors.org/topic/3061/solved-esp8266-gateway-with-rfm69-wdt-issues/4 post.

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

                    @emc2 I am actually not using a rfm69, but a rfm96 LoRa node. It has the same pinout.

                    Initial tests on my bike showed 750m range in my area, which mainly consists of 5-6 stories tall brick buildnings so definitely not line of sight. With a gps I'll be able to map coverage in more detail.

                    E 1 Reply Last reply
                    0
                    • mfalkviddM mfalkvidd

                      @emc2 I am actually not using a rfm69, but a rfm96 LoRa node. It has the same pinout.

                      Initial tests on my bike showed 750m range in my area, which mainly consists of 5-6 stories tall brick buildnings so definitely not line of sight. With a gps I'll be able to map coverage in more detail.

                      E Offline
                      E Offline
                      emc2
                      Hardware Contributor
                      wrote on last edited by
                      #14

                      @mfalkvidd right, I was thinking of updating RFM69 wiring diagrams on https://www.mysensors.org/view/171#rfm69-&-esp8266 , but for how the radio module go I was interested in the rfm96 range / reliability to see how it goes.

                      Anyway I will look for futures updates on the forum.

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


                      23

                      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