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. (newbie) Pin confusion between example and board pins

(newbie) Pin confusion between example and board pins

Scheduled Pinned Locked Moved Development
1 Posts 1 Posters 403 Views 1 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.
  • JohnRobJ Offline
    JohnRobJ Offline
    JohnRob
    wrote on last edited by
    #1

    HI,
    Am making a Sensebender based gateway with Ethernet and RFM69 radio and while I'm waiting for the hardware I am trying to get the gateway sketch sorted out.
    My confusion has to do with the stated SPI Issue between the W5100 and anything else on the SPI bus.

    Specifically in this part of the code:

    // Enable Soft SPI for NRF radio (note different radio wiring is required)
    // The W5100 ethernet module seems to have a hard time co-operate with
    // radio on the same spi bus.
    #if !defined(MY_W5100_SPI_EN) && !defined(ARDUINO_ARCH_SAMD)  <--------- Line 1
    #define MY_SOFTSPI
    #define MY_SOFT_SPI_SCK_PIN 14
    #define MY_SOFT_SPI_MISO_PIN 16
    #define MY_SOFT_SPI_MOSI_PIN 15
    #endif
    
    // When W5100 is connected we have to move CE/CSN pins for NRF radio    <--- Section 2
    #ifndef MY_RF24_CE_PIN
    #define MY_RF24_CE_PIN 5
    #endif
    #ifndef MY_RF24_CS_PIN
    #define MY_RF24_CS_PIN 6
    #endif
    

    The comment lines state the W5100 is the module with the SPI "issue"
    In line 1 it seems to result in not defining the soft SPI if the CPU is a SAMD (which the Sensebender is)

    In Section 2 no mention is made for the RFM69 radio.

    My question is:

    What Pin numbers are being referenced in this snippet? (I'm still struggling to sort out the Arduino pin numbers, I understand the goal but moving between different boards and ersatz Arduino's is a challenge for me)

    If the CPU is a SAMD do I need to use a soft SPI? I would think the CPU shouldn't matter if the issue is with the W5100.

    Any clarification will be greatly appreciated.

    Thanks
    John

    The source of the example I am following is from:
    Gateway Code for Ethernet

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


    14

    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