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

SOLVED RPi Zero + APA102

Discussion in 'Hardware Support' started by Marcel1603, 27 October 2019.

  1. Marcel1603

    Marcel1603 Member

    Messages:
    35
    Hardware:
    RPi1/Zero
    Hello,
    my APA102 led strip dont light. I´m using 6 led´s to test it and I soldered all cables direct on the Pi.
     

    Attached Files:

  2. Paulchen-Panther

    Paulchen-Panther Moderator Staff Member Developer

    Messages:
    862
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    hast du spi per raspi-config aktiviert?
     
  3. Marcel1603

    Marcel1603 Member

    Messages:
    35
    Hardware:
    RPi1/Zero
    Ja spi ist aktiviert.
    Ich habe rausgefunden, dass ich per Hypercon das Strip einfabig zum leuchten bringen und mit "hyperion-remote -c +farbe " in Putty, aber die Effekte funktionieren nicht.
    z.B. passiert bei "hyperion-remote -e snake" nicht. Deshalb dachte ich auch, dass die LEDs nicht leuchten, weil kein Starteffekt funktioniert.
     
  4. Marcel1603

    Marcel1603 Member

    Messages:
    35
    Hardware:
    RPi1/Zero
    Ich habe jetzt den Grabber in der Config aktiviert und an den Pi angeschlossen und jetzt leuchtet nichts mehr und Hyperion startet nicht.
     
  5. Paulchen-Panther

    Paulchen-Panther Moderator Staff Member Developer

    Messages:
    862
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    was sagt den 'lsusb' und 'v4l2-ctl --all'
     
  6. Marcel1603

    Marcel1603 Member

    Messages:
    35
    Hardware:
    RPi1/Zero
    lsusb:
    Bus 001 Device 002: ID 18ec:5555 Arkmicro Technologies Inc.
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


    v4l2-ctl --all:
     
  7. Paulchen-Panther

    Paulchen-Panther Moderator Staff Member Developer

    Messages:
    862
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Alles klar. USB Grabber wird schon mal erkannt.
    Und jetzt bitte ein
    Code:
    v4l2-ctl --list-devices
     
  8. Marcel1603

    Marcel1603 Member

    Messages:
    35
    Hardware:
    RPi1/Zero
    bcm2835-codec-decode (platform:bcm2835-codec):
    /dev/video10
    /dev/video11
    /dev/video12

    USB2.0 PC CAMERA (usb-20980000.usb-1):
    /dev/video0
    /dev/video1
     
  9. Paulchen-Panther

    Paulchen-Panther Moderator Staff Member Developer

    Messages:
    862
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  10. Marcel1603

    Marcel1603 Member

    Messages:
    35
    Hardware:
    RPi1/Zero
    Hyperion Ambilight Deamon (623)
    Version : V1.03.5 (GitHub-66bef6b/fb413cd-1566231780
    Build Time: Aug 25 2019 10:39:29
    INFO: Selected configuration file: /etc/hyperion/hyperion.config.json
    HYPERION INFO: ColorTransform 'default' => [0; 5]
    HYPERION INFO: ColorCorrection 'default' => [0; 5]
    HYPERION INFO: ColorAdjustment 'default' => [0; 5]
    LEDDEVICE INFO: configuration:
    {
    "colorOrder" : "bgr",
    "name" : "MyHyperionConfig",
    "output" : "/dev/spidev0.0",
    "rate" : 1000000,
    "type" : "apa102"
    }

    INFO: Creating linear smoothing
    HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=200;updateDelay=0
    EFFECTENGINE INFO: 27 effects loaded from directory /usr/share/hyperion/effects
    EFFECTENGINE INFO: Initializing Python interpreter
    INFO: Hyperion started and initialised
    INFO: Boot sequence 'Snake' EFFECTENGINE INFO: run effect Snake on channel 0
    BLACKBORDER INFO: threshold set to 0 (0)
    BLACKBORDER INFO: mode:default
    started
    INFO: Json server created and started on port 19444
    INFO: Proto server created and started on port 19445
    terminate called after throwing an instance of 'std::runtime_error'
    what(): VIDIOC_S_INPUT ERROR 25, Inappropriate ioctl for device
    Aborted
     
  11. Paulchen-Panther

    Paulchen-Panther Moderator Staff Member Developer

    Messages:
    862
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Dann stell mal wieder auf video0 um und starte hyperion mit root (sudo) rechten.
     
  12. Marcel1603

    Marcel1603 Member

    Messages:
    35
    Hardware:
    RPi1/Zero
    sudo ./hyperiond /etc/hyperion/hyperion.config.json
    Hyperion Ambilight Deamon (590)
    Version : V1.03.5 (GitHub-66bef6b/fb413cd-1566231780
    Build Time: Aug 25 2019 10:39:29
    INFO: Selected configuration file: /etc/hyperion/hyperion.config.json
    HYPERION INFO: ColorTransform 'default' => [0; 5]
    HYPERION INFO: ColorCorrection 'default' => [0; 5]
    HYPERION INFO: ColorAdjustment 'default' => [0; 5]
    LEDDEVICE INFO: configuration:
    {
    "colorOrder" : "bgr",
    "name" : "MyHyperionConfig",
    "output" : "/dev/spidev0.0",
    "rate" : 1000000,
    "type" : "apa102"
    }

    INFO: Creating linear smoothing
    HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=200;updateDelay=0
    EFFECTENGINE INFO: 27 effects loaded from directory /usr/share/hyperion/effects
    EFFECTENGINE INFO: Initializing Python interpreter
    INFO: Hyperion started and initialised
    INFO: Boot sequence 'Snake' EFFECTENGINE INFO: run effect Snake on channel 0
    BLACKBORDER INFO: threshold set to 0 (0)
    BLACKBORDER INFO: mode:default
    started
    INFO: Json server created and started on port 19444
    INFO: Proto server created and started on port 19445
    terminate called after throwing an instance of 'std::runtime_error'
    what(): VIDIOC_S_STD ERROR 25, Inappropriate ioctl for device
    Aborted
     
  13. Paulchen-Panther

    Paulchen-Panther Moderator Staff Member Developer

    Messages:
    862
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  14. Marcel1603

    Marcel1603 Member

    Messages:
    35
    Hardware:
    RPi1/Zero
    soll ich dann das ausführen?:

    aptitude remove ~nlinux-dtb ~nlinux-u-boot ~nlinux-image ~nlinux-headers
    aptitude remove ~nlinux-firmware ~narmbian-firmware ~nlinux-$(lsb_release -cs)-root
    Proceed with install:

    Code:
    apt-get install linux-image-dev-sun8i linux-dtb-dev-sun8i linux-headers-dev-sun8i
    apt-get install linux-u-boot-orangepizero-dev linux-$(lsb_release -cs)-root-dev-orangepizero
    apt-get install armbian-firmware sunxi-tools swconfig a10disp
    reboot
     
  15. Marcel1603

    Marcel1603 Member

    Messages:
    35
    Hardware:
    RPi1/Zero
  16. Paulchen-Panther

    Paulchen-Panther Moderator Staff Member Developer

    Messages:
    862
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Nein. Das ist zum compilieren eines kernels für den H3-basierenden OrangePi Plus.
    Es scheint so das dieser USB Grabber nicht richtig unter Linux funktioniert.
     
  17. Paulchen-Panther

    Paulchen-Panther Moderator Staff Member Developer

    Messages:
    862
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  18. Marcel1603

    Marcel1603 Member

    Messages:
    35
    Hardware:
    RPi1/Zero
    Ok werde den dann mal Bestellen und mich melden wenn ich ihn getestet habe.
     
    • Like Like x 1
  19. Marcel1603

    Marcel1603 Member

    Messages:
    35
    Hardware:
    RPi1/Zero
    Hallo, habe jetzt den neuen Grabber angeschlossen und wenn ich Hyperion per Putty starten wll kommt das:
     
  20. Marcel1603

    Marcel1603 Member

    Messages:
    35
    Hardware:
    RPi1/Zero
    v4l2-ctl --all

    v4l2-ctl --list-devices

    lsusb