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. Arduino & CC3000 Wifi & NRF24L01+ over SPI

Arduino & CC3000 Wifi & NRF24L01+ over SPI

Scheduled Pinned Locked Moved Hardware
arduinospi
8 Posts 6 Posters 6.0k 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.
  • J Offline
    J Offline
    jesse
    wrote on last edited by
    #1

    Anyone know how to connect two SPI devices to an Arduino Uno?

    Separately, the CC3000 Wifi module and NRF24L01+ work normally.

    However, if I wire them in parallel, like for i2c, only the CC3000 works.

    Is there some type of input-output connection for one master and multiple slaves?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jesse
      wrote on last edited by
      #2

      I found the solution on this page: http://mathertel.blogspot.com/2013/04/using-spi-bus-with-ethernet-sd-card-and.html

      The key is setting the Chip Select (CS) line to be different for each module.

      For the CC3000...
      "#define ADAFRUIT_CC3000_CS 7"
      Pin 7 is being used exclusively to select the Wifi module.
      https://learn.adafruit.com/adafruit-cc3000-wifi/cc3000-breakout

      For the NRF24L01+...
      "RF24 radio(9,10);"
      Pin 9 is being used for Chip Enable (CE) and Pin 10 is Chip Select (CS).
      http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo
      http://maniacbug.github.io/RF24/classRF24.html

      The other SPI pins: CLK, MISO, MOSI, are shared by the two modules and get wired in parallel.

      E barduinoB F 3 Replies Last reply
      0
      • greglG Offline
        greglG Offline
        gregl
        Hero Member
        wrote on last edited by
        #3

        Goood stuff! What is it your making?
        Is it a spark core??

        T J 2 Replies Last reply
        0
        • greglG gregl

          Goood stuff! What is it your making?
          Is it a spark core??

          T Offline
          T Offline
          ToSa
          Code Contributor
          wrote on last edited by
          #4

          or a WLAN Gateway :)

          1 Reply Last reply
          0
          • J jesse

            I found the solution on this page: http://mathertel.blogspot.com/2013/04/using-spi-bus-with-ethernet-sd-card-and.html

            The key is setting the Chip Select (CS) line to be different for each module.

            For the CC3000...
            "#define ADAFRUIT_CC3000_CS 7"
            Pin 7 is being used exclusively to select the Wifi module.
            https://learn.adafruit.com/adafruit-cc3000-wifi/cc3000-breakout

            For the NRF24L01+...
            "RF24 radio(9,10);"
            Pin 9 is being used for Chip Enable (CE) and Pin 10 is Chip Select (CS).
            http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo
            http://maniacbug.github.io/RF24/classRF24.html

            The other SPI pins: CLK, MISO, MOSI, are shared by the two modules and get wired in parallel.

            E Offline
            E Offline
            epierre
            Hero Member
            wrote on last edited by
            #5

            @jesse ;-) I did that on my Mega too ;-)

            z-wave - Vera -> Domoticz
            rfx - Domoticz <- MyDomoAtHome <- Imperihome
            mysensors -> mysensors-gw -> Domoticz

            1 Reply Last reply
            0
            • greglG gregl

              Goood stuff! What is it your making?
              Is it a spark core??

              J Offline
              J Offline
              jesse
              wrote on last edited by
              #6

              @gregl said:

              Goood stuff! What is it your making?
              Is it a spark core??

              A Wifi bridge so I can use $1 NRF24L01+ modules to send data to my database or to the internet.

              1 Reply Last reply
              0
              • J jesse

                I found the solution on this page: http://mathertel.blogspot.com/2013/04/using-spi-bus-with-ethernet-sd-card-and.html

                The key is setting the Chip Select (CS) line to be different for each module.

                For the CC3000...
                "#define ADAFRUIT_CC3000_CS 7"
                Pin 7 is being used exclusively to select the Wifi module.
                https://learn.adafruit.com/adafruit-cc3000-wifi/cc3000-breakout

                For the NRF24L01+...
                "RF24 radio(9,10);"
                Pin 9 is being used for Chip Enable (CE) and Pin 10 is Chip Select (CS).
                http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo
                http://maniacbug.github.io/RF24/classRF24.html

                The other SPI pins: CLK, MISO, MOSI, are shared by the two modules and get wired in parallel.

                barduinoB Offline
                barduinoB Offline
                barduino
                wrote on last edited by
                #7

                @jesse

                I have a similar problem.

                I dont have the CC3000 breakboard I have the shield so changing pin address for this board is not going to work.

                Instead I've changed the NRF24l01+ to use pins CE 35, CS 34.
                I've also changed the init of the gateway to use pins 40,41,42 for the leds.

                (I'm using a mega btw)

                So just using the MySensors skecth it works fine.

                But as soon as I initialise the CC3000, the gw.begin() doesnt work anymore.

                Were you able to get this to work?

                Did you have to change any libraries?

                Cheers

                1 Reply Last reply
                0
                • J jesse

                  I found the solution on this page: http://mathertel.blogspot.com/2013/04/using-spi-bus-with-ethernet-sd-card-and.html

                  The key is setting the Chip Select (CS) line to be different for each module.

                  For the CC3000...
                  "#define ADAFRUIT_CC3000_CS 7"
                  Pin 7 is being used exclusively to select the Wifi module.
                  https://learn.adafruit.com/adafruit-cc3000-wifi/cc3000-breakout

                  For the NRF24L01+...
                  "RF24 radio(9,10);"
                  Pin 9 is being used for Chip Enable (CE) and Pin 10 is Chip Select (CS).
                  http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo
                  http://maniacbug.github.io/RF24/classRF24.html

                  The other SPI pins: CLK, MISO, MOSI, are shared by the two modules and get wired in parallel.

                  F Offline
                  F Offline
                  flopp
                  wrote on last edited by
                  #8

                  @jesse said:

                  I found the solution on this page: http://mathertel.blogspot.com/2013/04/using-spi-bus-with-ethernet-sd-card-and.html

                  The key is setting the Chip Select (CS) line to be different for each module.

                  For the CC3000...
                  "#define ADAFRUIT_CC3000_CS 7"
                  Pin 7 is being used exclusively to select the Wifi module.
                  https://learn.adafruit.com/adafruit-cc3000-wifi/cc3000-breakout

                  For the NRF24L01+...
                  "RF24 radio(9,10);"
                  Pin 9 is being used for Chip Enable (CE) and Pin 10 is Chip Select (CS).
                  http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo
                  http://maniacbug.github.io/RF24/classRF24.html

                  The other SPI pins: CLK, MISO, MOSI, are shared by the two modules and get wired in parallel.

                  Hi do you still have a Gateway code when using CC3000 and arduino Mega or UNO(if it fits)?

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  28

                  Online

                  12.0k

                  Users

                  11.2k

                  Topics

                  113.4k

                  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