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. SOFT-SPI on Arduino Nano

SOFT-SPI on Arduino Nano

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

    My goal is to connect an LCD to Arduino Nano. I'm using Arduino Nano because of it's small size. Since SPI port is used by NRF24 module, is it possible to enable SOFT-SPI on arduino nano and connect the LCD to it?

    sundberg84S frishrashF 2 Replies Last reply
    0
    • foad62F foad62

      My goal is to connect an LCD to Arduino Nano. I'm using Arduino Nano because of it's small size. Since SPI port is used by NRF24 module, is it possible to enable SOFT-SPI on arduino nano and connect the LCD to it?

      sundberg84S Offline
      sundberg84S Offline
      sundberg84
      Hardware Contributor
      wrote on last edited by sundberg84
      #2

      @foad62 - what kind of LCD is it?
      I used i2c instead to connect my LCD to avoid conflict with SPI and it worked great. (Sorry, dont know the answer to your qustion about soft-spi).

      Controller: Proxmox VM - Home Assistant
      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

      1 Reply Last reply
      1
      • foad62F Offline
        foad62F Offline
        foad62
        wrote on last edited by
        #3

        It is 1.8" TFT LCD (TFT-LCD-ST7735).
        I'm not sure if it supports I2C connection!

        sundberg84S 1 Reply Last reply
        0
        • foad62F foad62

          It is 1.8" TFT LCD (TFT-LCD-ST7735).
          I'm not sure if it supports I2C connection!

          sundberg84S Offline
          sundberg84S Offline
          sundberg84
          Hardware Contributor
          wrote on last edited by
          #4

          @foad62 - checked the adafruit library out but I coudlnt find anything about i2c either...

          Controller: Proxmox VM - Home Assistant
          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

          1 Reply Last reply
          1
          • tbowmoT Offline
            tbowmoT Offline
            tbowmo
            Admin
            wrote on last edited by
            #5

            @foad62

            You could try sharing the SPI bus.. In most cases it will work, only W5100 ethernet module is special, in that way it doesn't tri-state the MISO line when it's not deselected with the normal CS line..

            Just pick a separate pin for CS for the display, than the one for the NRF module, and configure your TFT library accordingly.

            foad62F 1 Reply Last reply
            2
            • foad62F foad62

              My goal is to connect an LCD to Arduino Nano. I'm using Arduino Nano because of it's small size. Since SPI port is used by NRF24 module, is it possible to enable SOFT-SPI on arduino nano and connect the LCD to it?

              frishrashF Offline
              frishrashF Offline
              frishrash
              wrote on last edited by
              #6

              @foad62 I don't know if it helps but you can modify the default pins MySensors expects the NRF chip to be connected to. Here is an example, works on my Nano with MySensors 2.0:

              #define MY_RADIO_NRF24
              #define MY_SOFTSPI
              #define MY_RF24_CE_PIN 11
              #define MY_RF24_CS_PIN 6
              #define MY_SOFT_SPI_SCK_PIN 10
              #define MY_SOFT_SPI_MISO_PIN 9
              #define MY_SOFT_SPI_MOSI_PIN 7
              
              #include <SPI.h>
              #include <MySensors.h>
              

              In my case I didn't try connecting another SPI device, I just moved the pins for easier NRF soldering on a perfboard.

              1 Reply Last reply
              2
              • tbowmoT tbowmo

                @foad62

                You could try sharing the SPI bus.. In most cases it will work, only W5100 ethernet module is special, in that way it doesn't tri-state the MISO line when it's not deselected with the normal CS line..

                Just pick a separate pin for CS for the display, than the one for the NRF module, and configure your TFT library accordingly.

                foad62F Offline
                foad62F Offline
                foad62
                wrote on last edited by
                #7

                @tbowmo
                Thank you. I'll give it a try.

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


                19

                Online

                11.7k

                Users

                11.2k

                Topics

                113.0k

                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