Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.
I'm pretty sure you need adalight as the led type, not adalightapa102
I'd also try changing the arduino sketch and Hyperion config to use 115200
Some good news! The Arduino and Pi now talk to each other. Here's what I had to do:
Change device type from "adalightapa102" to "Adalight" in the Hyperion JSON config
LED_TYPE in sketch remains unchanged: APA102
Baudrate remains unchanged
After getting everything to communicate I had another problem. Depending where you look, the APA102-C LED color order is documented differently. With a little debugging I found the correct color order and updated my sketch
Changed the color order on my sketch to BGR
With those problems solved I ran into an issue where the LEDs would flicker with fast moving effects:
Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.
I think I've reduced this by grounding the LED strip to the ground pin on the power side of the Arduino. I had previously grounded the LED strip on the other side.
My HDMI to RCA adapter doesn't appear to be pulling a signal from my HDMI splitter. I think I have a defective adapter...but it could be an issue with the HDMI splitter and HDCP. I have a replacement HDMI to RCA adapter on the way.
Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.
Making sure the Rpi can communicate with the a arduino without issue on /dev/ttyACM0
Oh, I've confirmed that the RPi can talk to the Arduino. With the latest changes I can issue commands from the RPi to the Arduino and change the LED color, but only a handful at a time (see above photo).
Okay, another update. I believe the RGB byte order provided online was incorrect. I loaded another sketch to test and found BRG gave me the correct colors on boot. After setting the correct color order on the Arduino to BRG and keeping the Hyperion config at RGB it looks like I can control a single LED. This is odd.
On first boot with Pi + Arduino this is the resting state, note the LEDs that are off:
When I connect with the Hyperion Android app and use the color wheel and choose yellow:
Okay, I've added the ground wire on the Arduino. I don't think I need to ground anything on the RPi.
When I send commands to change color from the command I can see the LEDs doing something, but I'm still not seeing any solid color or working effects.
I double checked the manufacuter site and read:
Zitat
The manufacturer of the APA102C smart LED used in this strip used to be GRB order, and has changed in 2015 to have BRG color order. This means if you are using our DotStar library, you’ll need to change the initialization to tell it which you are using. Check the tutorial for details on how to do this! The LED colors are otherwise identical, you just have to pipe the data to it in a slightly different order.
I updated my Arduino sketch to use the BRG color order while keeping the Hyperion config to use RGB. Still no luck and everything is white.
Hi all, I've been making progress with my setup at home but am encountering some problems. I have the my LED strip connected together and talking to the Arduino (verified by loading a different sketch). I have verified Hyperion is running, and my phone can successfully connect to the server. I have not added an inline capicator
When I power only the Arduino, I see a quick, successful LED test. Once the Pi and Arduino boot up I see a quick LED flash, but donot see the rainbow swirl effect.
I am unable to control the LEDs through Hyperion. When I SSH into the Pi and manually set a color I see confirmation from Hyperion, but nothing on the LED side. I'm not sure if it's a configuration issue with the Arduino, or a communication issue between the Pi and the Arduino. Thanks for any help!
Code
BoxOfLights:~/hyperion/bin # ./hyperion-remote -c blue
hyperion-remote:
version : V1.03.2 (brindosch-99d9396/d3713a8-1469452981
build time: Jul 25 2016 06:54:18
Connected to localhost:19444
Set color to 0 0 255
Hardware: RiPi3 with OpenElec 7.01 and Hyperion IEIK UNO R3 Board ATmega328P Mokungit 1APA102-C Individually Addressable Magic Color LED Strip 36 Pixels/m 180
Configs: Gist => hyperion.config.json Gist => Arduino sketch Note, my hyperion config uses "AdalightApa102". When I tried modifying the type to "apa102" type I did not see any activity from the LEDs at all.
Hyperion log
Code
Hyperion Ambilight Deamon (572)
Version : V1.03.2 (brindosch-99d9396/d3713a8-1469452981
Build Time: Jul 25 2016 06:54:40
INFO: Selected configuration file: /storage/.config/hyperion.config.json
HYPERION INFO: ColorTransform 'default' => [0; 167]
HYPERION INFO: ColorCorrection 'default' => [0; 167]
HYPERION INFO: ColorAdjustment 'default' => [0; 167]
LEDDEVICE INFO: configuration:
{
"colorOrder" : "rgb",
"delayAfterConnect" : 0,
"name" : "P51HyperionConfig",
"output" : "/dev/ttyACM0",
"rate" : 460800,
"type" : "AdalightApa102"
}
Opening UART: /dev/ttyACM0
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 /storage/hyperion/effects
EFFECTENGINE INFO: Initializing Python interpreter
INFO: Hyperion started and initialised
INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl fast 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
EFFECTENGINE INFO: effect finished
JSONSERVER INFO: New connection
BLACKBORDER INFO: threshold set to 0 (0)
BLACKBORDER INFO: mode:default
EFFECTENGINE INFO: effect finished
EFFECTENGINE INFO: run effect Cold mood blobs on channel 50
BLACKBORDER INFO: threshold set to 0 (0)
BLACKBORDER INFO: mode:default
Alles anzeigen
Arduino pins: Ignore the wire colors, I had to flip the connector backwards for a better connection. I have verified the correct direction of the clock and data.
Testing LEDs through the Arduino (different sketch loaded):
Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.
Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.
Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen.Weitere InformationenSchließen