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. Development
  3. ESP8266 gateway - where are SPI pins defined?

ESP8266 gateway - where are SPI pins defined?

Scheduled Pinned Locked Moved Development
4 Posts 2 Posters 3.7k Views 3 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.
  • KrisJacobsK Offline
    KrisJacobsK Offline
    KrisJacobs
    wrote on last edited by
    #1

    I'm working with an Adafruit HUZZAH ESP8266 breakout, I wish to use it as my Gateway.
    https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/pinouts

    I wish to use these pins on the HUZZAH to interface with the NRF24L01 radio:
    4 - CE
    5 - CSN/CS
    12 - SCK
    13 - MOSI
    14 - MISO

    I've spent some time searching the forums and looking thru .h files, but I'm still not sure where the SPI pins are defined.

    What file defines these pins?

    Thanks!

    -KJ

    1 Reply Last reply
    0
    • KrisJacobsK Offline
      KrisJacobsK Offline
      KrisJacobs
      wrote on last edited by
      #2

      I think I've found what I needed in the header of ESP8266Gateway.ino:

       * See http://www.mysensors.org/build/ethernet_gateway for wiring instructions.
       * The ESP8266 however requires different wiring:
       * nRF24L01+  ESP8266
       * VCC        VCC
       * CE         GPIO4          
       * CSN/CS     GPIO15
       * SCK        GPIO14
       * MISO       GPIO12
       * MOSI       GPIO13
      
      YveauxY 1 Reply Last reply
      1
      • KrisJacobsK KrisJacobs

        I think I've found what I needed in the header of ESP8266Gateway.ino:

         * See http://www.mysensors.org/build/ethernet_gateway for wiring instructions.
         * The ESP8266 however requires different wiring:
         * nRF24L01+  ESP8266
         * VCC        VCC
         * CE         GPIO4          
         * CSN/CS     GPIO15
         * SCK        GPIO14
         * MISO       GPIO12
         * MOSI       GPIO13
        
        YveauxY Offline
        YveauxY Offline
        Yveaux
        Mod
        wrote on last edited by
        #3

        @KrisJacobs What you've found is only the text describing the pin connections.
        The ESP8266 uses its SPI port on pins GPIO12..14 to communicate to the radio. These pins are fixed.
        Only the CE & CSN/CS pin can be changed.
        They are defined here and here in the development branch (which you'd better use with the ESP).

        http://yveaux.blogspot.nl

        1 Reply Last reply
        1
        • KrisJacobsK Offline
          KrisJacobsK Offline
          KrisJacobs
          wrote on last edited by
          #4

          Awesome, exactly what I was looking for, thank you Yveaux!

          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.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