1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RPi + Other Software Use SPI Chip Select

Discussion in 'Hardware Support' started by ScarletStar, 2 August 2016.

  1. Andrey Popov

    Andrey Popov New Member

    Messages:
    22
    Hardware:
    RPi2, +Arduino
    I stopped my demon with socket server, which controls NRF24, kernel panic disappeared on setColor! (ok I will try to solve it later)

    When I start hyperion all leds became off. But there is no rainbow swirl effect. Led doest work. I cant control it. So spidev0.1 doesnt work.
    Suggestions?

    I believe that it is wiring problem. I found mistake:
    led CL was connected to 1A (SCLK)
    led DI (MOSI) was connected to 1Y

    On hyperion start all leds became off.
    Now - all connections are correct, but several leds are on after hyperion start.

    Please, confirm that:
    1Y <-> led CL
    GPIO10 <-> NRF24 MOSI <-> led DI
    GPIO11 <-> NRF24 SCLK <-> 1A
    GPIO7 <-> 1OE
     
    Last edited: 17 October 2016
  2. Andrey Popov

    Andrey Popov New Member

    Messages:
    22
    Hardware:
    RPi2, +Arduino
    I checked many times, connection is correct. Everything is the same as at my pic, I'd posted on the 2nd page.
     
  3. ScarletStar

    ScarletStar New Member

    Messages:
    13
    Hardware:
    RPi1/Zero, +Arduino, +PhilipsHue
    Yep 1Y is the output of the chip 1A is the input. we are connecting SPI clock of the Pi to LED Clock.
    So whenever the pi pulls the CE pin low, the clock signal on 1A is forwarded to 1Y into the LED strip.


    But I'm having issues too, that I can't get the NRF working. I think it's more of a software issue though. Haven't had time to tinker much lately though.
     
  4. Andrey Popov

    Andrey Popov New Member

    Messages:
    22
    Hardware:
    RPi2, +Arduino
    but Who has working version?)
     
  5. penfold42

    penfold42 Active Member

    Messages:
    746
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Did you get anywhere with this ?

    Which specific nrf24 library are you using ? Please provide a link.

    I have 6 nrf modules for another project so now have a vested interest in getting this working !
     
  6. Andrey Popov

    Andrey Popov New Member

    Messages:
    22
    Hardware:
    RPi2, +Arduino