Raspberry Pi 4 spidev

  • Guten Abend, habe mal eine Frage zu diesem Thema. Was bedeutet spidev

    20480 2

    Spi_bcm2835 20480 0

    Das ist meine Ausgabe , weil meine LEDS nicht angehen. Wäre schön wenn jemand mir das erklären könnte . Bin von APA 102 auf Sk6812 umgestiegen .

    Einmal editiert, zuletzt von 160664 (28. Februar 2021 um 19:00)

  • Moin 160664,

    Bin von APA 102 auf Sk6812 umgestiegen .

    Du kennst die Unterschiede?

    Sie dir mal die Ansteuerung an...

    73 de Bernd

    Ich habe KEINE Ahnung und davon GANZ VIEL!!
    Bei einer Lösung freue ich mich über ein ":thumbup:"
    Vielleicht trifft man sich in der RPi-Plauderecke.
    Linux ist zum Lernen da, je mehr man lernt um so besser versteht man es.

  • Moin 160664,

    nein, ich meine die Art der Ansteuerung der beiden Ledketten.

    Die APA102 habe einen Dataeingang und eine Takteingang.

    Die Sk6812 haben nur einen Data-Eingang.

    Ergo müssen die beiden Ketten auch unterschiedlich angesprochen werden.

    73 de Bernd

    Ich habe KEINE Ahnung und davon GANZ VIEL!!
    Bei einer Lösung freue ich mich über ein ":thumbup:"
    Vielleicht trifft man sich in der RPi-Plauderecke.
    Linux ist zum Lernen da, je mehr man lernt um so besser versteht man es.

  • Hallo Bernd , ich habe jetzt SK6812 Hyperion NG am laufen alles geht nur die LEDs nicht . Habe schon geschaut ob irgendwelche Abhängigkeiten fehlen aber das tut es nicht .

    Die Daten habe ich auf Pin 19 und Masse auf 20 . In den log steht auch LED device startet, ich komme auch auf dem Dashboard kann alles einstellen aber die LEDs leuchten nicht. Und gesteuert wir alles übern Raspi 4 B

    Einmal editiert, zuletzt von 160664 (1. März 2021 um 14:37)

  • Du kannst die SK6812 im SPI Modus verwenden,

    musst aber in der cmdline.txt folgendes einfügen.

    mit...

    sudo nano /boot/cmdline.txt

    am Ende der Zeile...

    spidev.bufsiz=1024000

    anfügen und speichern.


    So wie ich gelesen habe, sollen auch in der config.txt diese Einstellungen so abgeändert werden.

    Code
    # Enable audio (loads snd_bcm2835)
    dtparam=audio=off
    
    [pi4]
    # Enable DRM VC4 V3D driver on top of the dispmanx display stack
    dtoverlay=vc4-fkms-v3d
    max_framebuffers=2
    [all]
    #dtoverlay=vc4-fkms-v3d
    core_freq=250


    Bei mir haben die SK6812 danach funktioniert.

    Oder die LEDs im PWM Mode verwenden am PIN 12 (GPIO 18), in Hyperion dann auf ws281x umstellen.

  • Hyperion

    Das probiere ich auch mal. Oder die LEDs im PWM Mode verwenden am PIN 12 (GPIO 18), in Hyperion dann auf ws281x umstellen.


    Ein Moment


    Hier das Foto



    Also muss die Raute auch davor weg bei Audio ?

  • @raspbastler

    Ja alles fit soweit, war echt lange nicht hier.

    Aber ich glaube kaum das es Sinn macht, ein Update zu machen.

    Gibt so viele Anleitungen und im Hyperion Forum ist doch alles was man brauch zu finden.

    Gruß

    @160664

    Bei beiden Varianten nicht? SPI und PWM.

    Das kann alles mögliche sein, vielleicht doch noch Hardwareseitig was.

    Anderen Pi probieren.

    Nimm mal das HyperBian Image mit vorinstallierten Hyperion.

    Edit: bei mir laufen beide Einstellungen einwandfrei auf dem Pi3.

    Habe mir jetzt noch ein fertiges WLED Board von wlad gekauft.

    https://github.com/wladwnt/wled

    Und Hyperion läuft bei mir jetzt auf meinem Debian Emby Server, welches die Daten zum D1Mini schickt.

  • Code
     2021-03-01T16:39:48.285Z [hyperiond DAEMON] (INFO) CEC handler created 2021-03-01T16:39:48.300Z [hyperiond EFFECTFILES] (INFO) 39 effects loaded from directory :/effects/ 2021-03-01T16:39:48.304Z [hyperiond EFFECTFILES] (INFO) 22 effect schemas loaded from directory :/effects/schema/ 2021-03-01T16:39:48.305Z [hyperiond EFFECTFILES] (INFO) 0 effects loaded from directory /home/pi/.hyperion/custom-effects 2021-03-01T16:39:48.348Z [hyperiond SETTINGSMGR] (DEBUG) (SettingsManager.cpp:109:SettingsManager()) Settings database initialized 2021-03-01T16:39:48.352Z [hyperiond BLACKBORDER] (DEBUG) (BlackBorderProcessor.cpp:64:handleSettingsUpdate()) Set mode to: default 2021-03-01T16:39:48.352Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) Blackborder detector: enabled 2021-03-01T16:39:48.448Z [hyperiond DAEMON] (INFO) set screen capture device to 'dispmanx' 2021-03-01T16:39:48.448Z [hyperiond DISPMANXGRABBER] (DEBUG) (Grabber.cpp:30:setVideoMode()) Set videomode to 0 2021-03-01T16:39:48.451Z [hyperiond DISPMANXGRABBER] (INFO) Display opened with resolution: 1920x1080 2021-03-01T16:39:48.451Z [hyperiond DISPMANXGRABBER] (DEBUG) (Grabber.cpp:90:setWidthHeight()) Set new width: 80, height: 45 for capture 2021-03-01T16:39:48.452Z [hyperiond DAEMON] (INFO) DISPMANX frame grabber created 2021-03-01T16:39:48.453Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (Grabber.cpp:30:setVideoMode()) Set videomode to 0 2021-03-01T16:39:48.544Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (Grabber.cpp:90:setWidthHeight()) Set new width: 640, height: 480 for capture 2021-03-01T16:39:48.545Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Signal threshold set to: {12, 12, 12} 2021-03-01T16:39:48.545Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) CEC detection is now disabled 2021-03-01T16:39:48.545Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Signal detection is now disabled 2021-03-01T16:39:48.545Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000 2021-03-01T16:39:48.545Z [hyperiond DAEMON] (DEBUG) (hyperiond.cpp:630:handleSettingsUpdate()) V4L2 grabber created 2021-03-01T16:39:48.546Z [hyperiond JSONSERVER] (DEBUG) (JsonServer.cpp:28:JsonServer()) Created instance 2021-03-01T16:39:48.546Z [hyperiond JSONSERVER] (INFO) Started on port 19444 2021-03-01T16:39:48.464Z [hyperiond LEDDEVICE] (INFO) Start LedDevice 'ws281x'. 2021-03-01T16:39:48.464Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) Smoothing: enabled 2021-03-01T16:39:48.464Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:148:init()) deviceConfig: [{"colorOrder":"rgb","currentLedCount":272,"dma":5,"gpio":18,"hardwareLedCount":1,"invert":false,"latchTime":0,"leds":256,"pwmchannel":0,"rewriteTime":1000,"rgbw":false,"type":"ws281x","whiteAlgorithm":"subtract_minimum"}] 2021-03-01T16:39:48.464Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) cfg [0]:  Type: linear - Time: 200 ms, outputRate 25.000000 Hz, interpolationRate: 25.000000 Hz, timer: 40 ms, Dithering: 0, Decay: 1.000000 -> HalfTime: 100.000000 ms 2021-03-01T16:39:48.465Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:407:setLatchTime()) LatchTime updated to 0ms 2021-03-01T16:39:48.465Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:428:setRewriteTime()) Refresh interval = 1000ms 2021-03-01T16:39:48.466Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:434:setRewriteTime()) RewriteTime updated to 1000ms 2021-03-01T16:39:48.466Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceWS281x.cpp:59:init()) ws281x strip type : 1050624 2021-03-01T16:39:48.467Z [hyperiond LEDDEVICE] (ERROR) Device disabled, device 'ws281x' signals error: 'Failed to open. Error message: mmap() failed' 2021-03-01T16:39:48.474Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) Previous line repeats 1 times 2021-03-01T16:39:48.474Z [hyperiond FLATBUFCONN] (INFO) Connecting to Hyperion: 127.0.0.1:19401 2021-03-01T16:39:48.484Z [hyperiond EFFECTENGINE] (INFO) Run effect "Rainbow swirl fast" on channel 0 2021-03-01T16:39:48.525Z [hyperiond EFFECTENGINE] (DEBUG) (EffectEngine.cpp:183:runEffectScript()) Start the effect: name [Rainbow swirl fast], smoothCfg [2] 2021-03-01T16:39:48.525Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:161:registerInput()) Register new input 'System/EFFECT' with priority 0 as inactive 2021-03-01T16:39:48.525Z [hyperiond HYPERION] (INFO) Initial foreground effect 'Rainbow swirl fast' started 2021-03-01T16:39:48.527Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:161:registerInput()) Register new input 'System/V4L' with priority 240 as inactive 2021-03-01T16:39:48.527Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) V4L capture device: enabled 2021-03-01T16:39:48.561Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) configured v4l device: /dev/video0 2021-03-01T16:39:48.562Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:582:init_device()) Set device input to: Camera 1 2021-03-01T16:39:48.564Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:696:init_device()) Set resolution to width=640 height=480 2021-03-01T16:39:48.565Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:713:init_device()) Set framerate to 30 fps 2021-03-01T16:39:48.566Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:735:init_device()) Pixel format=YUYV 2021-03-01T16:39:48.573Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Started 2021-03-01T16:39:48.573Z [hyperiond V4L2:/dev/video0] (DEBUG) (GrabberWrapper.cpp:48:start()) Grabber start() 2021-03-01T16:39:48.527Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:161:registerInput()) Register new input 'System/GRABBER' with priority 250 as inactive 2021-03-01T16:39:48.527Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) Framegrabber: enabled 2021-03-01T16:39:48.573Z [hyperiond Dispmanx] (DEBUG) (GrabberWrapper.cpp:48:start()) Grabber start() 2021-03-01T16:39:48.528Z [hyperiond BOBLIGHT] (DEBUG) (BoblightServer.cpp:28:BoblightServer()) Instance created 2021-03-01T16:39:48.574Z [hyperiond HYPERION] (INFO) Hyperion instance 'First LED Hardware instance' has been started 2021-03-01T16:39:48.555Z [hyperiond FLATBUFSERVER] (INFO) Started on port 19400 2021-03-01T16:39:48.555Z [hyperiond PROTOSERVER] (INFO) Started on port 19445 2021-03-01T16:39:48.556Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:initServer()) Initialize Webserver 2021-03-01T16:39:48.563Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:initServer()) Initialize Webserver 2021-03-01T16:39:48.664Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:251:setInputImage()) Priority 240 is now active 2021-03-01T16:39:48.665Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 0 2021-03-01T16:39:48.665Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[0], previousPriority[255] 2021-03-01T16:39:48.665Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:handlePriorityChangedLedDevice()) new source available -> switch LED-Device on 2021-03-01T16:39:48.680Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:251:setInputImage()) Priority 250 is now active 2021-03-01T16:39:48.709Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings 2021-03-01T16:39:48.709Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings 2021-03-01T16:39:48.709Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig 2021-03-01T16:39:48.709Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig 2021-03-01T16:39:48.710Z [hyperiond WEBSERVER] (INFO) Started on port 8090 name 'Hyperion Webserver' 2021-03-01T16:39:48.734Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:251:setInputImage()) Priority 0 is now active 2021-03-01T16:39:48.755Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:175:handleSettingsUpdate()) Setup SSL certificate 2021-03-01T16:39:48.755Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:191:handleSettingsUpdate()) Setup private SSL key 2021-03-01T16:39:48.756Z [hyperiond WEBSERVER] (INFO) Started on port 8092 name 'Hyperion Webserver' 2021-03-01T16:39:51.624Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:315:setCurrentTime()) Timeout clear for priority 0 2021-03-01T16:39:51.626Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 0 2021-03-01T16:39:51.626Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[0], previousPriority[0] 2021-03-01T16:39:51.875Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 240 2021-03-01T16:39:51.888Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[240], previousPriority[0] 2021-03-01T16:39:59.606Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::ffff:192.168.178.53 2021-03-01T16:39:59.606Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:81:handleInstanceSwitch()) Client '::ffff:192.168.178.53' switch to Hyperion instance 0 2021-03-01T16:40:34.182Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:161:registerInput()) Register new input 'Web Configuration@::ffff:192.168.178.53/COLOR' with priority 1 as inactive 2021-03-01T16:40:34.184Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:207:setInput()) Priority 1 is now active 2021-03-01T16:40:34.184Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 1 2021-03-01T16:40:34.185Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[1], previousPriority[240] 2021-03-01T16:42:49.254Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:270:clearInput()) Removed source priority 1 2021-03-01T16:42:49.255Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 240 2021-03-01T16:42:49.256Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[240], previousPriority[1] 2021-03-01T16:43:25.701Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:204:sendClose()) send close: 1000  2021-03-01T16:44:18.627Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::ffff:192.168.178.53 2021-03-01T16:44:18.627Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:81:handleInstanceSwitch()) Client '::ffff:192.168.178.53' switch to Hyperion instance 0 2021-03-01T16:44:24.607Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1054:handleLoggingCommand()) log streaming activated for client ::ffff:192.168.178.53 2021-03-01T16:44:24.633Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1063:handleLoggingCommand()) log streaming deactivated for client  ::ffff:192.168.178.53 2021-03-01T16:45:44.673Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:204:sendClose()) send close: 1000  2021-03-01T16:46:40.498Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::ffff:192.168.178.53 2021-03-01T16:46:40.499Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:81:handleInstanceSwitch()) Client '::ffff:192.168.178.53' switch to Hyperion instance 0 2021-03-01T16:46:40.950Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1054:handleLoggingCommand()) log streaming activated for client ::ffff:192.168.178.53 2021-03-01T16:46:41.001Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1063:handleLoggingCommand()) log streaming deactivated for client  ::ffff:192.168.178.53 2021-03-01T16:47:40.830Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:204:sendClose()) send close: 1000  2021-03-01T16:49:00.599Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::ffff:192.168.178.53 2021-03-01T16:49:00.599Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:81:handleInstanceSwitch()) Client '::ffff:192.168.178.53' switch to Hyperion instance 0 2021-03-01T16:49:00.936Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1054:handleLoggingCommand()) log streaming activated for client ::ffff:192.168.178.53

Jetzt mitmachen!

Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!