Hello all,
I've been following this forum for a while and have been on this Ambilight project for several weeks. I am finally resorting to creating my own topic here. I'm using RPI 3B+ and LibreElec 8.2.4 with about 100 APA102 LEDs. I also have some 74HCT08 chips for a level shifter.
Please skip this background if you're only interested in helping my immediate problem:
Background:
[INDENT]I spent my first weekend with allnighters and had it finally found it working randomly when i came home from a day out.
The lights worked perfectly for a week. Then, while sending a new config file when trying to color correct for my blue painted wall, the software stopped working entirely. I believe somehow all the memory available was used up and hyperion said it could not even store screenshots anymore.
I decided to do a fresh install of everything since I needed to permanently fix everything anyways and in doing so I extended the power supply by several feet(2m) and added about a foot (1m) to the data/clock wires. Then I encountered this strange behavior. The first LED would rainbow swirl, sometimes skipping the blue color, and the second LED would flash and none of the other LEDs would light. Thinking the flashing LED was bad, I snipped it out and soldered the 1st to the 3rd but now the 3rd LED also flashed haphazardly. I then decided to cut the 1st. Called a friend over to run some tests and ended up shorting the RPI 3B somehow when we were testing with the unused strip of LEDs.
Now I have resoldered everything to this unused strip of LEDs, with a new RPI 3B+ (which randomly keeps dropping wifi and I need to manually reconnect via KODI menu) and I cannot even get Hyperion to run.
***
In between this and the last sentence, I went to bed, woke up, and formally soldered my level shifter together to a perf board and some jumper wire connectors. I currently have Hyperion running smooth, allegedly.[/INDENT]
/End background.
When I kill hyperion, I can take screenshots and they are accurate and when I try to control a color, I don't recieve any errors. Currently all of my LEDs are lit but only when I jostle the wire connections a bit. I am not able to change any colors.
What's truly frustrating to me is that I keep bouncing between thinking it's a hardware issue vs software issue. I'm un able to narrow it down. Scratch that, what's truly infuriating is that it was working before!
Can someone provide any input? I'll attach my config and SSH output below:
[INDENT]// Automatically generated configuration file for Hyperion ambilight daemon
// Notice: All values are explained with comments at our wiki: wiki.hyperion-project.org (config area)
// Generated by: HyperCon (The Hyperion deamon configuration file builder)
// Created with HyperCon V1.03.3 (22.10.2017)
{
// DEVICE CONFIGURATION
"device" :
{
"name" : "newpi",
"type" : "apa102",
"output" : "/dev/spidev0.0",
"rate" : 1000000,
"colorOrder" : "bgr"
},
// COLOR CALIBRATION CONFIG
"color" :
{
"channelAdjustment" :
[
{
"id" : "default",
"leds" : "*",
"pureRed" :
{
"redChannel" : 255,
"greenChannel" : 0,
"blueChannel" : 0
},
"pureGreen" :
{
"redChannel" : 0,
"greenChannel" : 255,
"blueChannel" : 0
},
"pureBlue" :
{
"redChannel" : 0,
"greenChannel" : 0,
"blueChannel" : 255
}
}
],
"temperature" :
[
{
"id" : "default",
"leds" : "*",
"correctionValues" :
{
"red" : 255,
"green" : 255,
"blue" : 255
}
}
],
"transform" :
[
{
"id" : "default",
"leds" : "*",
"hsl" :
{
"saturationGain" : 1.0000,
"luminanceGain" : 1.0000,
"luminanceMinimum" : 0.0000
},
"red" :
{
"threshold" : 0.0000,
"gamma" : 2.5000
},
"green" :
{
"threshold" : 0.0000,
"gamma" : 2.5000
},
"blue" :
{
"threshold" : 0.0000,
"gamma" : 2.5000
}
}
],
// SMOOTHING CONFIG
"smoothing" :
{
"type" : "linear",
"time_ms" : 100,
"updateFrequency" : 25.0000,
"updateDelay" : 0
}
},
// V4L2 GRABBER CONFIG
"grabber-v4l2" :
{
"device" : "/dev/video0",
"input" : 0,
"standard" : "NTSC",
"width" : -1,
"height" : -1,
"frameDecimation" : 2,
"sizeDecimation" : 8,
"priority" : 500,
"mode" : "2D",
"cropLeft" : 6,
"cropRight" : 15,
"cropTop" : 10,
"cropBottom" : 6,
"redSignalThreshold" : 0.0,
"greenSignalThreshold" : 0.0,
"blueSignalThreshold" : 0.0
},
// BLACKBORDER CONFIG
"blackborderdetector" :
{
"enable" : true,
"threshold" : 0.1,
"unknownFrameCnt" : 600,
"borderFrameCnt" : 50,
"maxInconsistentCnt" : 10,
"blurRemoveCnt" : 1,
"mode" : "classic"
},
// BOOTEFFECT CONFIG
"bootsequence" :
{
"color" : [0,0,0],
"effect" : "Rainbow swirl fast",
"duration_ms" : 3000,
"priority" : 700
},
// JSON SERVER CONFIG
"jsonServer" :
{
"port" : 19444
},
// PROTO SERVER CONFIG
"protoServer" :
{
"port" : 19445
},
// EFFECT PATH
"effects" :
{
"paths" :
[
"/storage/hyperion/effects",
"/usr/share/hyperion/effects"
]
},
// NO FRAME GRABBER CONFIG
// NO KODI CHECK CONFIG
// NO BOBLIGHT SERVER CONFIG
// NO JSON/PROTO FORWARD CONFIG
// LED CONFIGURATION
"leds" :
[
{
"index" : 0,
"hscan" : { "minimum" : 0.0000, "maximum" : 0.2100 },
"vscan" : { "minimum" : 0.8000, "maximum" : 1.0000 }
},
{
"index" : 1,
"hscan" : { "minimum" : 0.0000, "maximum" : 0.2100 },
"vscan" : { "minimum" : 0.9278, "maximum" : 1.0000 }
},
----OMITTING LEDS IN BETWEEN----
{
"index" : 97,
"hscan" : { "minimum" : 0.0000, "maximum" : 0.0448 },
"vscan" : { "minimum" : 0.8000, "maximum" : 1.0000 }
}
],
"endOfJson" : "endOfJson"
}[/INDENT]
Alles anzeigen
SSH Traffic:
ssh connected
ssh out: killall hyperiond 2>/dev/null
ssh out: killall hyperiond 2>/dev/null ; /storage/hyperion/bin/hyperion-v4l2.sh --device /dev/video0 --video-standard NTSC --input 0 --width -1 --height -1 --crop-left 6 --crop-right 15 --crop-top 10 --crop-bottom 6 --size-decimator 1 --frame-decimator 2 --red-threshold 0.0 --green-threshold 0.0 --blue-threshold 0.0 --screenshot
ssh in: hyperion-v4l2:
ssh in: version : V1.03.4 (brindosch-c750c41/dc6a602-1522918225
ssh in: build time: Apr 5 2018 01:57:25
ssh in: V4L2GRABBER INFO: width=720 height=480
ssh in: V4L2GRABBER INFO: pixel format=YUYV
ssh in: V4L2GRABBER INFO: signal threshold set to: {0,0,0}
ssh in: V4L2GRABBER INFO: started
ssh in: V4L2GRABBER INFO: stopped
sftp getFile(./screenshot.png, java.awt.Image)
ssh out: /storage/.config/autostart.sh > /dev/null 2>&1 &
ssh out: /storage/hyperion/bin/hyperion-remote.sh -c ff1b2b
ssh in: hyperion-remote:
ssh in: version : V1.03.4 (brindosch-c750c41/dc6a602-1522918225
ssh in: build time: Apr 5 2018 01:57:05
ssh in: Connected to localhost:19444
ssh in: Set color to 255 27 43
ssh out: /storage/hyperion/bin/hyperion-remote.sh -c 2038ff
ssh in: hyperion-remote:
ssh in: version : V1.03.4 (brindosch-c750c41/dc6a602-1522918225
ssh in: build time: Apr 5 2018 01:57:05
ssh in: Connected to localhost:19444
ssh in: Set color to 32 56 255
ssh out: /storage/hyperion/bin/hyperion-remote.sh -c 33ff29
ssh in: hyperion-remote:
ssh in: version : V1.03.4 (brindosch-c750c41/dc6a602-1522918225
ssh in: build time: Apr 5 2018 01:57:05
ssh in: Connected to localhost:19444
ssh in: Set color to 51 255 41
Alles anzeigen
The screenshot came out properly, tried to change colors RED, then BLUE and then GREEN but the LEDs remain white. Trying to initiate a rainbow swirl from my phone produces no results either.