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

SOLVED Correct connection of the Level switch on the RPI4

Discussion in 'Hardware Support' started by ReWiG, 16 August 2020.

  1. ReWiG

    ReWiG New Member

    Messages:
    9
    Hardware:
    RPi3
    I am using hyperyon.ng on my RPI4, but I have a problem, my APA102 LEDs blink randomly from time to time. I found information on this forum, this arises from the fact that the RPI GPIO pins give out 3.3 volts of voltage, and the APA102 LED strip accepts 5 volts. This can cause occasional outbreaks. I purchased a logic level converter like this to solve this problem
    [​IMG]
    But I could not figure out how I should connect it to the power circuit. Most of the pictures describing its connection assume that the RPI and the LED strip will have the same power supply, but I don't need that. I want the RPI to have its own USB power supply and not depend on the LED strip power supply. At the moment I have connections according to this scheme:
    [​IMG]

    I would like to ask you to draw a diagram of how I should connect a logic level converter to this circuit so that everything works correctly and I have 2 power supplies, separately for the RPI and for the LED strip. Thank you in advance for your help!
     
    • Like Like x 1
  2. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,834
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
  3. ReWiG

    ReWiG New Member

    Messages:
    9
    Hardware:
    RPi3
  4. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,834
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    it doesnt matter where your 5v comes..., you can use a second psu for that, but as i said, it is only important to have a common ground
     
  5. ReWiG

    ReWiG New Member

    Messages:
    9
    Hardware:
    RPi3
    At the moment, I have implemented a connection according to the following scheme:
    [​IMG]
    But, either I soldered something wrong, or this circuit is wrong. The LED strip is not working.

    I see that it differs from your circuit in that the 5 volt power to the HV pin is supplied from the power supply, and not from the Raspbeerry Pi. It is fundamentally?

    Do I understand correctly that my scheme should be like this?

    [​IMG]
     
  6. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,834
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    you missed 3.3v on LV
     
  7. ReWiG

    ReWiG New Member

    Messages:
    9
    Hardware:
    RPi3
    And everything should work after that?
     
  8. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,834
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    theoretically yes
     

    Attached Files:

    • Like Like x 1
    • Thank you Thank you x 1
  9. ReWiG

    ReWiG New Member

    Messages:
    9
    Hardware:
    RPi3
    Yes it works! Thank! I think this picture should be added to the wiki and the Raspberry Pi setup tutorial to close this issue permanently on this forum!
     
  10. panec

    panec New Member

    Messages:
    9
    Hardware:
    RPi3
    Amazing, this solved my issue as well. THX for the help.
     
    • Like Like x 1
  11. harun

    harun Member

    Messages:
    167
    Hardware:
    RPi3

    And how did you have install hyperion on your rpi4? In the kodi addons section or by hypercon?
     
  12. ReWiG

    ReWiG New Member

    Messages:
    9
    Hardware:
    RPi3
    I've always installed hyperion via hypercon, but recently the rpi4 support has been removed from the installer.
    I slightly modified the installation script to pass the processor check and hyperion on rpi4 works fine for me.
    In the file https://github.com/hyperion-project/hyperion/blob/master/bin/install_hyperion.sh
    replace the line
    Code:
    CPU_RPI = `grep -m1 -c 'BCM2708 \ | BCM2709 \ | BCM2710 \ | BCM2835' / proc / cpuinfo`
    with
    Code:
    CPU_RPI =` grep -m1 -c 'BCM2708 \ | BCM2709 \ | BCM2711 \ | BCM2835' / proc / cpuinfo`
     
  13. vinman1000

    vinman1000 New Member

    Messages:
    7
    Hardware:
    RPi3
    Did this fix the blinking issue as well? I am running ws2812 with addition of an arduino that blinks so am thinking about moving to this design.
     
  14. ReWiG

    ReWiG New Member

    Messages:
    9
    Hardware:
    RPi3
    yes, the flickering has stopped, it works!
     
  15. vinman1000

    vinman1000 New Member

    Messages:
    7
    Hardware:
    RPi3