TM1829 aka Aldilight Arduino Hyperion Control

at Last…

For Example using a string of 26 LEDs.
using the neobob library in arduino IDE
line 36
#include <neobob.h>
setting line 37 to
#define NOLEDS 26

and line 39 to
const char head[] = {0x41, 0x64, 0x61, 0x00, 0x1A, 0x4F}; //AdaMagic-26LEDS 01-26

source:Adalight prefix Magic Generator

aswell leaving line 56 as it is.
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NOLEDS, PIN, NEO_GRB + NEO_KHZ800);

made the strip light up. When using the preset Bootsequence
colorWipe(PINK);
delay(100);
colorWipe(ORANGE);
delay(100);
colorWipe(BLACK);

the first pixel won’t show the correct color, ignore it!
even a simple colorWipe(BLACK); lit up the first pixel in blue flashes…

when controlled via hyperion, using the following hyperion.config.json works for 26 Pixel (every TM1829 controls 3 LEDs in the Aldi RGB LED Strip Configuration)
http://codepad.org/53wcKxWN (even setting diffrent bautrates like in neobob.in “460800” and in hyperion.config.json “500000” works, had to, to interact with a ESP8266)
the syslog output shows correct number of leds:
tail -f /var/log/syslog"
Feb 19 11:58:23 pi systemd[1]: Starting Hyperion Systemd service...
Feb 19 11:58:23 pi systemd[1]: Started Hyperion Systemd service.
Feb 19 11:58:23 pi hyperiond[24219]: Hyperion Ambilight Deamon (24219)
Feb 19 11:58:23 pi hyperiond[24219]: Version : V1.03.2 (brindosch-99d9396/d3713a8-1469452981
Feb 19 11:58:23 pi hyperiond[24219]: Build Time: Jul 25 2016 06:54:40
Feb 19 11:58:24 pi hyperiond[24219]: INFO: Selected configuration file: /etc/hyperion/hyperion.config.json
Feb 19 11:58:24 pi hyperiond[24219]: HYPERION INFO: ColorTransform 'default' => [0; 26]
Feb 19 11:58:24 pi hyperiond[24219]: LEDDEVICE INFO: configuration:
Feb 19 11:58:24 pi hyperiond[24219]: {
Feb 19 11:58:24 pi hyperiond[24219]: "colorOrder" : "rgb",
Feb 19 11:58:24 pi hyperiond[24219]: "delayAfterConnect" : 200,
Feb 19 11:58:24 pi hyperiond[24219]: "name" : "Caps",
Feb 19 11:58:24 pi hyperiond[24219]: "output" : "/dev/ttyUSB0",
Feb 19 11:58:24 pi hyperiond[24219]: "rate" : 500000,
Feb 19 11:58:24 pi hyperiond[24219]: "type" : "adalight"
Feb 19 11:58:24 pi hyperiond[24219]: }
Feb 19 11:58:24 pi hyperiond[24219]: Opening UART: /dev/ttyUSB0
Feb 19 11:58:24 pi hyperiond[24219]: Device blocked for 200 ms
Feb 19 11:58:24 pi hyperiond[24219]: INFO: Creating linear smoothing
Feb 19 11:58:24 pi hyperiond[24219]: HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=75;updateDelay=0
Feb 19 11:58:24 pi hyperiond[24219]: EFFECTENGINE INFO: 27 effects loaded from directory /usr/share/hyperion/effects
Feb 19 11:58:24 pi hyperiond[24219]: EFFECTENGINE INFO: Initializing Python interpreter
Feb 19 11:58:24 pi hyperiond[24219]: INFO: Hyperion started and initialised

Advertisements

rpi Ambilight w. Arduino Uno & TM1829

IT IS ALIVE!!!

what:

Ambilight Clone with hyperion over Arduino Uno (Adalight) and TM1829 LED

to do:

  • Color Edit
  • color fix integrated in neobob.cpp line474:
    //(b == 0xFF) b = 0xFE;//

Install hyperion

wget -N https://raw.github.com/tvdzwan/hyperion/master/bin/install_hyperion.sh

Start hyperion:

sh /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json 0/dev/null 2>&1 &

hyperion debug:

sh /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json

get neobob library from GITHUB:

https://github.com/chriszero/neobob

rename:

Adafruit_NeoPixel.h to neobob.h
Adafruit_NeoPixel.cpp to neobob.cpp

Tools:

for Prefix Calc:
Boblight Config Maker 

for the rest:
Hyperion Config Tool

neohyp.ino (15x TM182 a 3RGB LEDs=45Channels)

//pastebin.com/embed_iframe/jU9Ux9g7

hyperion.config.json
//pastebin.com/K3abwGbX

Bildschirmfoto 2015-12-30 um 03.02.18

—— edit 2017 ——

after fiddelling around after nearly a year ago reveals my flaws:

for correct colormode, i had to change “NEO_GRB” in line 58 of neobob.ino to “NEO_RGB”

further in neobob.cpp deactivate line 495 with “// comments //” activate line 496