Hey all !
In my last thread I, replaced the LEDs. I was using GPIO 18 but, found the delay too much and parts of the time, the lights would just stop working for like 2-3 seconds, and then "catch up". I rebuilt, added in the UNO as the controller and lag seems almost gone. The stop working problem is still there a little but, the flashing on bright images is just crazy.
A full screen of RED will make the whole room flashing because of this... White, yellow, does the same thing but, mixing darker colors seem fine, no flashing till a video with a very light background and flashing returns.
This was not happening when I was using GPIO-18 connection but, the LAG was unbearable.
Hardware for reference...
- Raspberry PI 3B
- 255 W2812b LEDs attached to the TV
- 5v 30a power supply..
- A 4K 60hz grabber ( https://www.amazon.com/gp/product/B08DHRRV3G?tag=hyperioforum-21 )
- UNO R3
Connectors and wires...
I used these for wires and the connectors to the end to avoid soldering wire to LEDs..
https://www.amazon.com/gp/product/B071VN9D6N?tag=hyperioforum-21&ie=UTF8&psc=1
Used these for corners but, soldered them on so they would not slip off (common with these connectors)
https://www.amazon.com/gp/product/B07VCDWKZT?tag=hyperioforum-21&ie=UTF8&psc=1
Hook up
HDMI from Denon AVR 2nd(set to mirror tv) room out to HDMI grabber, that goes into the PI, USB out of the PI goes the UNO. The data connection is on PIN 6 on the UNO, The connections on the UNO are soldered in, this is ground and data.
The LEDS have power/ground going at the start and the end of the LEDs, so no low points in power in the LEDs. I did use the wire that came with the wire connectors, the start of the LEDs are connected with the factory connection.
Power for PI is run off the 30a power supply (but, also tried the original 2.5a power supply with no change). Ground from the 30a power supply is connected to the UNO and PI. Confirmed connection on ground from the UNO to the middle of the LEDs with no problem (voltmeter)
Hyperion settings are nothing too crazy, Adalight for type of controller, 255 LEDs, and GRB Order.
Capture settings are
Device Resolution: 1280 X 720
Frames per second: 60
Size decimation: 8
Here are the logs. Anyone see anything that could be causing this flashing ? Common fix for this is for a common ground, I did that.
2021-02-27T16:37:48.159Z [hyperiond DAEMON] (INFO) CEC handler created
2021-02-27T16:37:48.183Z [hyperiond EFFECTFILES] (INFO) 39 effects loaded from directory :/effects/
2021-02-27T16:37:48.189Z [hyperiond EFFECTFILES] (INFO) 22 effect schemas loaded from directory :/effects/schema/
2021-02-27T16:37:48.192Z [hyperiond EFFECTFILES] (INFO) 0 effects loaded from directory /home/pi/.hyperion/custom-effects
2021-02-27T16:37:48.281Z [hyperiond SETTINGSMGR] (DEBUG) (SettingsManager.cpp:109:SettingsManager()) Settings database initialized
2021-02-27T16:37:48.287Z [hyperiond BLACKBORDER] (DEBUG) (BlackBorderProcessor.cpp:64:handleSettingsUpdate()) Set mode to: default
2021-02-27T16:37:48.288Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) Blackborder detector: enabled
2021-02-27T16:37:48.321Z [hyperiond DAEMON] (INFO) set screen capture device to 'dispmanx'
2021-02-27T16:37:48.321Z [hyperiond DISPMANXGRABBER] (DEBUG) (Grabber.cpp:30:setVideoMode()) Set videomode to 0
2021-02-27T16:37:48.324Z [hyperiond DISPMANXGRABBER] (INFO) Display opened with resolution: 720x480
2021-02-27T16:37:48.324Z [hyperiond DISPMANXGRABBER] (DEBUG) (Grabber.cpp:90:setWidthHeight()) Set new width: 80, height: 45 for capture
2021-02-27T16:37:48.325Z [hyperiond DAEMON] (INFO) DISPMANX frame grabber created
2021-02-27T16:37:48.326Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (Grabber.cpp:30:setVideoMode()) Set videomode to 0
2021-02-27T16:37:48.410Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (Grabber.cpp:90:setWidthHeight()) Set new width: 1280, height: 720 for capture
2021-02-27T16:37:48.411Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Signal threshold set to: {12, 12, 12}
2021-02-27T16:37:48.411Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) CEC detection is now disabled
2021-02-27T16:37:48.411Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Signal detection area set to: 0.900000,0.900000 x 0.980000,0.980000
2021-02-27T16:37:48.412Z [hyperiond DAEMON] (DEBUG) (hyperiond.cpp:630:handleSettingsUpdate()) V4L2 grabber created
2021-02-27T16:37:48.413Z [hyperiond JSONSERVER] (DEBUG) (JsonServer.cpp:28:JsonServer()) Created instance
2021-02-27T16:37:48.413Z [hyperiond JSONSERVER] (INFO) Started on port 19444
2021-02-27T16:37:48.337Z [hyperiond LEDDEVICE] (INFO) Start LedDevice 'adalight'.
2021-02-27T16:37:48.337Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) Smoothing: enabled
2021-02-27T16:37:48.338Z [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-02-27T16:37:48.338Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:148:init()) deviceConfig: [{"colorOrder":"grb","currentLedCount":255,"delayAfterConnect":0,"hardwareLedCount":255,"latchTime":30,"lightberry_apa102_mode":false,"output":"/dev/ttyUSB0","rate":500000,"rewriteTime":1000,"type":"adalight"}]
2021-02-27T16:37:48.339Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:407:setLatchTime()) LatchTime updated to 30ms
2021-02-27T16:37:48.340Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:428:setRewriteTime()) Refresh interval = 1000ms
2021-02-27T16:37:48.340Z [hyperiond LEDDEVICE] (DEBUG) (LedDevice.cpp:434:setRewriteTime()) RewriteTime updated to 1000ms
2021-02-27T16:37:48.341Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:36:init()) DeviceType : adalight
2021-02-27T16:37:48.341Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:37:init()) LedCount : 255
2021-02-27T16:37:48.341Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:38:init()) ColorOrder : grb
2021-02-27T16:37:48.342Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:39:init()) RefreshTime : 1000
2021-02-27T16:37:48.342Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:40:init()) LatchTime : 30
2021-02-27T16:37:48.342Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:52:init()) deviceName : ttyUSB0
2021-02-27T16:37:48.342Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:53:init()) AutoDevice : 0
2021-02-27T16:37:48.343Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:54:init()) baudRate_Hz : 500000
2021-02-27T16:37:48.343Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:55:init()) delayAfCon ms: 0
2021-02-27T16:37:48.343Z [hyperiond LEDDEVICE] (DEBUG) (LedDeviceAdalight.cpp:59:init()) Adalight header for 255 leds: Ada 0x00 0xfe 0xab
2021-02-27T16:37:48.344Z [hyperiond LEDDEVICE] (INFO) Opening UART: ttyUSB0
2021-02-27T16:37:48.344Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:141:tryOpen()) _rs232Port.open(QIODevice::ReadWrite): ttyUSB0, Baud rate [500000]bps
2021-02-27T16:37:48.351Z [hyperiond SMOOTHING] (DEBUG) (LinearColorSmoothing.cpp:701:selectConfig()) Previous line repeats 1 times
2021-02-27T16:37:48.351Z [hyperiond FLATBUFCONN] (INFO) Connecting to Hyperion: 127.0.0.1:19401
2021-02-27T16:37:48.363Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:161:registerInput()) Register new input 'System/COLOR' with priority 0 as inactive
2021-02-27T16:37:48.364Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:207:setInput()) Priority 0 is now active
2021-02-27T16:37:48.364Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 0
2021-02-27T16:37:48.364Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[0], previousPriority[255]
2021-02-27T16:37:48.364Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:handlePriorityChangedLedDevice()) new source available -> switch LED-Device on
2021-02-27T16:37:48.365Z [hyperiond HYPERION] (INFO) Initial foreground color set (1 1 11)
2021-02-27T16:37:48.366Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:161:registerInput()) Register new input 'System/V4L' with priority 200 as inactive
2021-02-27T16:37:48.366Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) V4L capture device: enabled
2021-02-27T16:37:48.435Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) configured v4l device: /dev/video0
2021-02-27T16:37:48.435Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:582:init_device()) Set device input to: Camera 1
2021-02-27T16:37:48.437Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:696:init_device()) Set resolution to width=1280 height=720
2021-02-27T16:37:48.439Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:713:init_device()) Set framerate to 10 fps
2021-02-27T16:37:48.439Z [hyperiond V4L2:/DEV/VIDEO0] (DEBUG) (V4L2Grabber.cpp:735:init_device()) Pixel format=YUYV
2021-02-27T16:37:48.450Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Started
2021-02-27T16:37:48.451Z [hyperiond V4L2:/dev/video0] (DEBUG) (GrabberWrapper.cpp:48:start()) Grabber start()
2021-02-27T16:37:48.367Z [hyperiond BOBLIGHT] (DEBUG) (BoblightServer.cpp:28:BoblightServer()) Instance created
2021-02-27T16:37:48.452Z [hyperiond HYPERION] (INFO) Hyperion instance 'First LED Hardware instance' has been started
2021-02-27T16:37:48.401Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:146:tryOpen()) portName: ttyUSB0
2021-02-27T16:37:48.402Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:147:tryOpen()) systemLocation: /dev/ttyUSB0
2021-02-27T16:37:48.402Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:148:tryOpen()) description: USB2.0-Serial
2021-02-27T16:37:48.403Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:149:tryOpen()) manufacturer: 1a86
2021-02-27T16:37:48.403Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:150:tryOpen()) productIdentifier: 0x7523
2021-02-27T16:37:48.403Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:151:tryOpen()) vendorIdentifier: 0x1a86
2021-02-27T16:37:48.404Z [hyperiond LEDDEVICE] (DEBUG) (ProviderRs232.cpp:152:tryOpen()) serialNumber:
2021-02-27T16:37:48.407Z [hyperiond COMPONENTREG] (DEBUG) (ComponentRegister.cpp:36:setNewComponentState()) LED device: enabled
2021-02-27T16:37:48.424Z [hyperiond FLATBUFSERVER] (INFO) Started on port 19400
2021-02-27T16:37:48.426Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:initServer()) Initialize Webserver
2021-02-27T16:37:48.425Z [hyperiond PROTOSERVER] (INFO) Started on port 19445
2021-02-27T16:37:48.427Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:33:initServer()) Initialize Webserver
2021-02-27T16:37:48.555Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings
2021-02-27T16:37:48.555Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:91:handleSettingsUpdate()) Apply Webserver settings
2021-02-27T16:37:48.556Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig
2021-02-27T16:37:48.556Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:109:handleSettingsUpdate()) Set document root to: :/webconfig
2021-02-27T16:37:48.557Z [hyperiond WEBSERVER] (INFO) Started on port 8090 name 'Hyperion Webserver'
2021-02-27T16:37:48.575Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:175:handleSettingsUpdate()) Setup SSL certificate
2021-02-27T16:37:48.576Z [hyperiond WEBSERVER] (DEBUG) (WebServer.cpp:191:handleSettingsUpdate()) Setup private SSL key
2021-02-27T16:37:48.577Z [hyperiond WEBSERVER] (INFO) Started on port 8092 name 'Hyperion Webserver'
2021-02-27T16:37:48.671Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:251:setInputImage()) Priority 200 is now active
2021-02-27T16:37:51.580Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:315:setCurrentTime()) Timeout clear for priority 0
2021-02-27T16:37:51.580Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 0
2021-02-27T16:37:51.581Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[0], previousPriority[0]
2021-02-27T16:37:51.830Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 200
2021-02-27T16:37:51.833Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[200], previousPriority[0]
2021-02-27T16:41:50.762Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::ffff:192.168.0.37
2021-02-27T16:41:50.763Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:81:handleInstanceSwitch()) Client '::ffff:192.168.0.37' switch to Hyperion instance 0
2021-02-27T16:42:14.640Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Signal lost
2021-02-27T16:42:15.489Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:251:setInputImage()) Priority 200 is now inactive
2021-02-27T16:42:15.489Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 255
2021-02-27T16:42:15.490Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[255], previousPriority[200]
2021-02-27T16:42:15.490Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:562:handlePriorityChangedLedDevice()) No source left -> switch LED-Device off
2021-02-27T16:42:17.437Z [hyperiond V4L2:/DEV/VIDEO0] (INFO) Signal detected
2021-02-27T16:42:17.437Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:251:setInputImage()) Priority 200 is now active
2021-02-27T16:42:17.437Z [hyperiond HYPERION] (DEBUG) (PriorityMuxer.cpp:351:setCurrentTime()) Set visible priority to 200
2021-02-27T16:42:17.438Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:559:handlePriorityChangedLedDevice()) priority[200], previousPriority[255]
2021-02-27T16:42:17.438Z [hyperiond HYPERION] (DEBUG) (Hyperion.cpp:569:handlePriorityChangedLedDevice()) new source available -> switch LED-Device on
2021-02-27T17:03:18.997Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1054:handleLoggingCommand()) log streaming activated for client ::ffff:192.168.0.37
Display More