Ambilight: Kodi + Arduino + WS8212B

  • Meine Hardware:

    s905x Box mit CoreELEC
    180 LED´s (60 oben und unten und 30 links und rechts)
    Arduino uno (clone)

    Also hier mal mein Code:

    t4a_boblight.ino:

    Spoiler anzeigen


    /* t4a_boblight
    * (C) 2014 Hans Luijten, http://www.tweaking4all.com
    *
    * t4a_boblight is free software and can be distributed and/or modified
    * freely as long as the copyright notice remains in place.
    * Nobody is allowed to charge you for this code.
    * Use of this code is entirely at your own risk.
    */

    #include "Adafruit_NeoPixel.h"

    // DEFINITIONS

    #define STARTCOLOR 0xFFFFFF // LED colors at start
    #define BLACK 0x000000 // LED color BLACK

    #define DATAPIN 13 // Datapin
    #define LEDCOUNT 180 // Number of LEDs used for boblight
    #define SHOWDELAY 200 // Delay in micro seconds before showing
    #define BAUDRATE 460800 // Serial port speed, 460800 tested with Arduino Uno R3
    #define BRIGHTNESS 90 // Max. brightness in %

    const char prefix[] = {0x41, 0x64, 0x61, 0x00, 0x18, 0x4D}; // Start prefix
    char buffer[sizeof(prefix)]; // Temp buffer for receiving prefix data

    // Init LED strand, WS2811/WS2912 specific

    // These might work for other configurations:
    // NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
    // NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
    // NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products)
    // NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)

    Adafruit_NeoPixel strip = Adafruit_NeoPixel(LEDCOUNT, DATAPIN, NEO_GRB + NEO_KHZ800);

    int state; // Define current state
    #define STATE_WAITING 1 // - Waiting for prefix
    #define STATE_DO_PREFIX 2 // - Processing prefix
    #define STATE_DO_DATA 3 // - Handling incoming LED colors

    int readSerial; // Read Serial data (1)
    int currentLED; // Needed for assigning the color to the right LED

    void setup()
    {
    strip.begin(); // Init LED strand, set all black, then all to startcolor
    strip.setBrightness( (255 / 100) * BRIGHTNESS );
    setAllLEDs(BLACK, 0);
    setAllLEDs(STARTCOLOR, 5);
    Serial.begin(BAUDRATE); // Init serial speed
    state = STATE_WAITING; // Initial state: Waiting for prefix
    }


    void loop()
    {
    switch(state)
    {
    case STATE_WAITING: // *** Waiting for prefix ***
    if( Serial.available()>0 )
    {
    readSerial = Serial.read(); // Read one character
    if ( readSerial == prefix[0] ) // if this character is 1st prefix char
    { state = STATE_DO_PREFIX; } // then set state to handle prefix
    }
    break;
    case STATE_DO_PREFIX: // *** Processing Prefix ***
    if( Serial.available() > sizeof(prefix) - 2 )
    {
    Serial.readBytes(buffer, sizeof(prefix) - 1);
    for( int Counter = 0; Counter < sizeof(prefix) - 1; Counter++)
    {
    if( buffer[Counter] == prefix[Counter+1] )
    {
    state = STATE_DO_DATA; // Received character is in prefix, continue
    currentLED = 0; // Set current LED to the first one
    }
    else
    {
    state = STATE_WAITING; // Crap, one of the received chars is NOT in the prefix
    break; // Exit, to go back to waiting for the prefix
    } // end if buffer
    } // end for Counter
    } // end if Serial
    break;
    case STATE_DO_DATA: // *** Process incoming color data ***
    if( Serial.available() > 2 ) // if we receive more than 2 chars
    {
    Serial.readBytes( buffer, 3 ); // Abuse buffer to temp store 3 charaters
    strip.setPixelColor( currentLED++, buffer[0], buffer[1], buffer[2]); // and assing to LEDs
    }
    if( currentLED > LEDCOUNT ) // Reached the last LED? Display it!
    {
    strip.show(); // Make colors visible
    delayMicroseconds(SHOWDELAY); // Wait a few micro seconds
    state = STATE_WAITING; // Reset to waiting ...
    currentLED = 0; // and go to LED one
    break; // and exit ... and do it all over again
    }
    break;
    } // switch(state)
    } // loop


    // Sets the color of all LEDs in the strand to 'color'
    // If 'wait'>0 then it will show a swipe from start to end
    void setAllLEDs(uint32_t color, int wait)
    {
    for ( int Counter=0; Counter < LEDCOUNT; Counter++ ) // For each LED
    {
    strip.setPixelColor( Counter, color ); // .. set the color

    if( wait > 0 ) // if a wait time was set then
    {
    strip.show(); // Show the LED color
    delay(wait); // and wait before we do the next LED
    } // if wait
    } // for Counter
    strip.show(); // Show all LEDs
    } // setAllLEDs

    und die boblight.conf:

    Spoiler anzeigen


    #[global]
    interface 127.0.0.1
    port19333

    [device]
    nameambilight
    output /dev/ttyUSB0
    channels 768
    typemomo
    interval 10000
    prefix5A B0
    postfixA5
    rate500000

    [color]
    namered
    rgbFF0000
    gamma0.91
    adjust1.0
    blacklevel 0.0

    [color]
    namegreen
    rgb00FF00
    gamma0.86
    adjust0.96
    blacklevel 0.0

    [color]
    nameblue
    rgb0000FF
    gamma0.95
    adjust0.8
    blacklevel 0.0

    [light]
    name001
    colorred ambilight 1
    colorgreen ambilight 2
    colorblue ambilight 3
    hscan0 10
    vscan93 96

    [light]
    name002
    colorred ambilight 4
    colorgreen ambilight 5
    colorblue ambilight 6
    hscan0 10
    vscan90 93

    [light]
    name003
    colorred ambilight 7
    colorgreen ambilight 8
    colorblue ambilight 9
    hscan0 10
    vscan86 90

    [light]
    name004
    colorred ambilight 10
    colorgreen ambilight 11
    colorblue ambilight 12
    hscan0 10
    vscan83 86

    [light]
    name005
    colorred ambilight 13
    colorgreen ambilight 14
    colorblue ambilight 15
    hscan0 10
    vscan80 83

    [light]
    name006
    colorred ambilight 16
    colorgreen ambilight 17
    colorblue ambilight 18
    hscan0 10
    vscan76 80

    [light]
    name007
    colorred ambilight 19
    colorgreen ambilight 20
    colorblue ambilight 21
    hscan0 10
    vscan73 76

    [light]
    name008
    colorred ambilight 22
    colorgreen ambilight 23
    colorblue ambilight 24
    hscan0 10
    vscan70 73

    [light]
    name009
    colorred ambilight 25
    colorgreen ambilight 26
    colorblue ambilight 27
    hscan0 10
    vscan66 70

    [light]
    name010
    colorred ambilight 28
    colorgreen ambilight 29
    colorblue ambilight 30
    hscan0 10
    vscan63 66

    [light]
    name011
    colorred ambilight 31
    colorgreen ambilight 32
    colorblue ambilight 33
    hscan0 10
    vscan60 63

    [light]
    name012
    colorred ambilight 34
    colorgreen ambilight 35
    colorblue ambilight 36
    hscan0 10
    vscan56 60

    [light]
    name013
    colorred ambilight 37
    colorgreen ambilight 38
    colorblue ambilight 39
    hscan0 10
    vscan53 56

    [light]
    name014
    colorred ambilight 40
    colorgreen ambilight 41
    colorblue ambilight 42
    hscan0 10
    vscan50 53

    [light]
    name015
    colorred ambilight 43
    colorgreen ambilight 44
    colorblue ambilight 45
    hscan0 10
    vscan46 50

    [light]
    name016
    colorred ambilight 46
    colorgreen ambilight 47
    colorblue ambilight 48
    hscan0 10
    vscan43 46

    [light]
    name017
    colorred ambilight 49
    colorgreen ambilight 50
    colorblue ambilight 51
    hscan0 10
    vscan40 43

    [light]
    name018
    colorred ambilight 52
    colorgreen ambilight 53
    colorblue ambilight 54
    hscan0 10
    vscan36 40

    [light]
    name019
    colorred ambilight 55
    colorgreen ambilight 56
    colorblue ambilight 57
    hscan0 10
    vscan33 36

    [light]
    name020
    colorred ambilight 58
    colorgreen ambilight 59
    colorblue ambilight 60
    hscan0 10
    vscan30 33

    [light]
    name021
    colorred ambilight 61
    colorgreen ambilight 62
    colorblue ambilight 63
    hscan0 10
    vscan26 30

    [light]
    name022
    colorred ambilight 64
    colorgreen ambilight 65
    colorblue ambilight 66
    hscan0 10
    vscan23 26

    [light]
    name023
    colorred ambilight 67
    colorgreen ambilight 68
    colorblue ambilight 69
    hscan0 10
    vscan20 23

    [light]
    name024
    colorred ambilight 70
    colorgreen ambilight 71
    colorblue ambilight 72
    hscan0 10
    vscan16 20

    [light]
    name025
    colorred ambilight 73
    colorgreen ambilight 74
    colorblue ambilight 75
    hscan0 10
    vscan13 16

    [light]
    name026
    colorred ambilight 76
    colorgreen ambilight 77
    colorblue ambilight 78
    hscan0 10
    vscan10 13

    [light]
    name027
    colorred ambilight 79
    colorgreen ambilight 80
    colorblue ambilight 81
    hscan0 10
    vscan6 10

    [light]
    name028
    colorred ambilight 82
    colorgreen ambilight 83
    colorblue ambilight 84
    hscan0 10
    vscan3 6

    [light]
    name029
    colorred ambilight 85
    colorgreen ambilight 86
    colorblue ambilight 87
    hscan0 10
    vscan0 3

    [light]
    name030
    colorred ambilight 88
    colorgreen ambilight 89
    colorblue ambilight 90
    hscan1 3
    vscan0 20

    [light]
    name031
    colorred ambilight 91
    colorgreen ambilight 92
    colorblue ambilight 93
    hscan3 5
    vscan0 20

    [light]
    name032
    colorred ambilight 94
    colorgreen ambilight 95
    colorblue ambilight 96
    hscan5 6
    vscan0 20

    [light]
    name033
    colorred ambilight 97
    colorgreen ambilight 98
    colorblue ambilight 99
    hscan6 8
    vscan0 20

    [light]
    name034
    colorred ambilight 100
    colorgreen ambilight 101
    colorblue ambilight 102
    hscan8 10
    vscan0 20

    [light]
    name035
    colorred ambilight 103
    colorgreen ambilight 104
    colorblue ambilight 105
    hscan10 11
    vscan0 20

    [light]
    name036
    colorred ambilight 106
    colorgreen ambilight 107
    colorblue ambilight 108
    hscan11 13
    vscan0 20

    [light]
    name037
    colorred ambilight 109
    colorgreen ambilight 110
    colorblue ambilight 111
    hscan13 15
    vscan0 20

    [light]
    name038
    colorred ambilight 112
    colorgreen ambilight 113
    colorblue ambilight 114
    hscan15 16
    vscan0 20

    [light]
    name039
    colorred ambilight 115
    colorgreen ambilight 116
    colorblue ambilight 117
    hscan16 18
    vscan0 20

    [light]
    name040
    colorred ambilight 118
    colorgreen ambilight 119
    colorblue ambilight 120
    hscan18 20
    vscan0 20

    [light]
    name041
    colorred ambilight 121
    colorgreen ambilight 122
    colorblue ambilight 123
    hscan20 21
    vscan0 20

    [light]
    name042
    colorred ambilight 124
    colorgreen ambilight 125
    colorblue ambilight 126
    hscan21 23
    vscan0 20

    [light]
    name043
    colorred ambilight 127
    colorgreen ambilight 128
    colorblue ambilight 129
    hscan23 25
    vscan0 20

    [light]
    name044
    colorred ambilight 130
    colorgreen ambilight 131
    colorblue ambilight 132
    hscan25 26
    vscan0 20

    [light]
    name045
    colorred ambilight 133
    colorgreen ambilight 134
    colorblue ambilight 135
    hscan26 28
    vscan0 20

    [light]
    name046
    colorred ambilight 136
    colorgreen ambilight 137
    colorblue ambilight 138
    hscan28 30
    vscan0 20

    [light]
    name047
    colorred ambilight 139
    colorgreen ambilight 140
    colorblue ambilight 141
    hscan30 31
    vscan0 20

    [light]
    name048
    colorred ambilight 142
    colorgreen ambilight 143
    colorblue ambilight 144
    hscan31 33
    vscan0 20

    [light]
    name049
    colorred ambilight 145
    colorgreen ambilight 146
    colorblue ambilight 147
    hscan33 35
    vscan0 20

    [light]
    name050
    colorred ambilight 148
    colorgreen ambilight 149
    colorblue ambilight 150
    hscan35 36
    vscan0 20

    [light]
    name051
    colorred ambilight 151
    colorgreen ambilight 152
    colorblue ambilight 153
    hscan36 38
    vscan0 20

    [light]
    name052
    colorred ambilight 154
    colorgreen ambilight 155
    colorblue ambilight 156
    hscan38 40
    vscan0 20

    [light]
    name053
    colorred ambilight 157
    colorgreen ambilight 158
    colorblue ambilight 159
    hscan40 41
    vscan0 20

    [light]
    name054
    colorred ambilight 160
    colorgreen ambilight 161
    colorblue ambilight 162
    hscan41 43
    vscan0 20

    [light]
    name055
    colorred ambilight 163
    colorgreen ambilight 164
    colorblue ambilight 165
    hscan43 45
    vscan0 20

    [light]
    name056
    colorred ambilight 166
    colorgreen ambilight 167
    colorblue ambilight 168
    hscan45 46
    vscan0 20

    [light]
    name057
    colorred ambilight 169
    colorgreen ambilight 170
    colorblue ambilight 171
    hscan46 48
    vscan0 20

    [light]
    name058
    colorred ambilight 172
    colorgreen ambilight 173
    colorblue ambilight 174
    hscan48 50
    vscan0 20

    [light]
    name059
    colorred ambilight 175
    colorgreen ambilight 176
    colorblue ambilight 177
    hscan50 51
    vscan0 20

    [light]
    name060
    colorred ambilight 178
    colorgreen ambilight 179
    colorblue ambilight 180
    hscan51 53
    vscan0 20

    [light]
    name061
    colorred ambilight 181
    colorgreen ambilight 182
    colorblue ambilight 183
    hscan53 55
    vscan0 20

    [light]
    name062
    colorred ambilight 184
    colorgreen ambilight 185
    colorblue ambilight 186
    hscan55 56
    vscan0 20

    [light]
    name063
    colorred ambilight 187
    colorgreen ambilight 188
    colorblue ambilight 189
    hscan56 58
    vscan0 20

    [light]
    name064
    colorred ambilight 190
    colorgreen ambilight 191
    colorblue ambilight 192
    hscan58 60
    vscan0 20

    [light]
    name065
    colorred ambilight 193
    colorgreen ambilight 194
    colorblue ambilight 195
    hscan60 61
    vscan0 20

    [light]
    name066
    colorred ambilight 196
    colorgreen ambilight 197
    colorblue ambilight 198
    hscan61 63
    vscan0 20

    [light]
    name067
    colorred ambilight 199
    colorgreen ambilight 200
    colorblue ambilight 201
    hscan63 65
    vscan0 20

    [light]
    name068
    colorred ambilight 202
    colorgreen ambilight 203
    colorblue ambilight 204
    hscan65 66
    vscan0 20

    [light]
    name069
    colorred ambilight 205
    colorgreen ambilight 206
    colorblue ambilight 207
    hscan66 68
    vscan0 20

    [light]
    name070
    colorred ambilight 208
    colorgreen ambilight 209
    colorblue ambilight 210
    hscan68 70
    vscan0 20

    [light]
    name071
    colorred ambilight 211
    colorgreen ambilight 212
    colorblue ambilight 213
    hscan70 71
    vscan0 20

    [light]
    name072
    colorred ambilight 214
    colorgreen ambilight 215
    colorblue ambilight 216
    hscan71 73
    vscan0 20

    [light]
    name073
    colorred ambilight 217
    colorgreen ambilight 218
    colorblue ambilight 219
    hscan73 75
    vscan0 20

    [light]
    name074
    colorred ambilight 220
    colorgreen ambilight 221
    colorblue ambilight 222
    hscan75 76
    vscan0 20

    [light]
    name075
    colorred ambilight 223
    colorgreen ambilight 224
    colorblue ambilight 225
    hscan76 78
    vscan0 20

    [light]
    name076
    colorred ambilight 226
    colorgreen ambilight 227
    colorblue ambilight 228
    hscan78 80
    vscan0 20

    [light]
    name077
    colorred ambilight 229
    colorgreen ambilight 230
    colorblue ambilight 231
    hscan80 81
    vscan0 20

    [light]
    name078
    colorred ambilight 232
    colorgreen ambilight 233
    colorblue ambilight 234
    hscan81 83
    vscan0 20

    [light]
    name079
    colorred ambilight 235
    colorgreen ambilight 236
    colorblue ambilight 237
    hscan83 85
    vscan0 20

    [light]
    name080
    colorred ambilight 238
    colorgreen ambilight 239
    colorblue ambilight 240
    hscan85 86
    vscan0 20

    [light]
    name081
    colorred ambilight 241
    colorgreen ambilight 242
    colorblue ambilight 243
    hscan86 88
    vscan0 20

    [light]
    name082
    colorred ambilight 244
    colorgreen ambilight 245
    colorblue ambilight 246
    hscan88 90
    vscan0 20

    [light]
    name083
    colorred ambilight 247
    colorgreen ambilight 248
    colorblue ambilight 249
    hscan90 91
    vscan0 20

    [light]
    name084
    colorred ambilight 250
    colorgreen ambilight 251
    colorblue ambilight 252
    hscan91 93
    vscan0 20

    [light]
    name085
    colorred ambilight 253
    colorgreen ambilight 254
    colorblue ambilight 255
    hscan93 95
    vscan0 20

    [light]
    name086
    colorred ambilight 256
    colorgreen ambilight 257
    colorblue ambilight 258
    hscan95 96
    vscan0 20

    [light]
    name087
    colorred ambilight 259
    colorgreen ambilight 260
    colorblue ambilight 261
    hscan96 98
    vscan0 20

    [light]
    name088
    colorred ambilight 262
    colorgreen ambilight 263
    colorblue ambilight 264
    hscan98 100
    vscan0 20

    [light]
    name089
    colorred ambilight 265
    colorgreen ambilight 266
    colorblue ambilight 267
    hscan90 100
    vscan3 6

    [light]
    name090
    colorred ambilight 268
    colorgreen ambilight 269
    colorblue ambilight 270
    hscan90 100
    vscan6 10

    [light]
    name091
    colorred ambilight 271
    colorgreen ambilight 272
    colorblue ambilight 273
    hscan90 100
    vscan10 13

    [light]
    name092
    colorred ambilight 274
    colorgreen ambilight 275
    colorblue ambilight 276
    hscan90 100
    vscan13 16

    [light]
    name093
    colorred ambilight 277
    colorgreen ambilight 278
    colorblue ambilight 279
    hscan90 100
    vscan16 20

    [light]
    name094
    colorred ambilight 280
    colorgreen ambilight 281
    colorblue ambilight 282
    hscan90 100
    vscan20 23

    [light]
    name095
    colorred ambilight 283
    colorgreen ambilight 284
    colorblue ambilight 285
    hscan90 100
    vscan23 26

    [light]
    name096
    colorred ambilight 286
    colorgreen ambilight 287
    colorblue ambilight 288
    hscan90 100
    vscan26 30

    [light]
    name097
    colorred ambilight 289
    colorgreen ambilight 290
    colorblue ambilight 291
    hscan90 100
    vscan30 33

    [light]
    name098
    colorred ambilight 292
    colorgreen ambilight 293
    colorblue ambilight 294
    hscan90 100
    vscan33 36

    [light]
    name099
    colorred ambilight 295
    colorgreen ambilight 296
    colorblue ambilight 297
    hscan90 100
    vscan36 40

    [light]
    name100
    colorred ambilight 298
    colorgreen ambilight 299
    colorblue ambilight 300
    hscan90 100
    vscan40 43

    [light]
    name101
    colorred ambilight 301
    colorgreen ambilight 302
    colorblue ambilight 303
    hscan90 100
    vscan43 46

    [light]
    name102
    colorred ambilight 304
    colorgreen ambilight 305
    colorblue ambilight 306
    hscan90 100
    vscan46 50

    [light]
    name103
    colorred ambilight 307
    colorgreen ambilight 308
    colorblue ambilight 309
    hscan90 100
    vscan50 53

    [light]
    name104
    colorred ambilight 310
    colorgreen ambilight 311
    colorblue ambilight 312
    hscan90 100
    vscan53 56

    [light]
    name105
    colorred ambilight 313
    colorgreen ambilight 314
    colorblue ambilight 315
    hscan90 100
    vscan56 60

    [light]
    name106
    colorred ambilight 316
    colorgreen ambilight 317
    colorblue ambilight 318
    hscan90 100
    vscan60 63

    [light]
    name107
    colorred ambilight 319
    colorgreen ambilight 320
    colorblue ambilight 321
    hscan90 100
    vscan63 66

    [light]
    name108
    colorred ambilight 322
    colorgreen ambilight 323
    colorblue ambilight 324
    hscan90 100
    vscan66 70

    [light]
    name109
    colorred ambilight 325
    colorgreen ambilight 326
    colorblue ambilight 327
    hscan90 100
    vscan70 73

    [light]
    name110
    colorred ambilight 328
    colorgreen ambilight 329
    colorblue ambilight 330
    hscan90 100
    vscan73 76

    [light]
    name111
    colorred ambilight 331
    colorgreen ambilight 332
    colorblue ambilight 333
    hscan90 100
    vscan76 80

    [light]
    name112
    colorred ambilight 334
    colorgreen ambilight 335
    colorblue ambilight 336
    hscan90 100
    vscan80 83

    [light]
    name113
    colorred ambilight 337
    colorgreen ambilight 338
    colorblue ambilight 339
    hscan90 100
    vscan83 86

    [light]
    name114
    colorred ambilight 340
    colorgreen ambilight 341
    colorblue ambilight 342
    hscan90 100
    vscan86 90

    [light]
    name115
    colorred ambilight 343
    colorgreen ambilight 344
    colorblue ambilight 345
    hscan90 100
    vscan90 93

    [light]
    name116
    colorred ambilight 346
    colorgreen ambilight 347
    colorblue ambilight 348
    hscan90 100
    vscan93 96

    [light]
    name117
    colorred ambilight 349
    colorgreen ambilight 350
    colorblue ambilight 351
    hscan90 100
    vscan96 100

    [light]
    name118
    colorred ambilight 352
    colorgreen ambilight 353
    colorblue ambilight 354
    hscan96 98
    vscan80 100

    [light]
    name119
    colorred ambilight 355
    colorgreen ambilight 356
    colorblue ambilight 357
    hscan95 96
    vscan80 100

    [light]
    name120
    colorred ambilight 358
    colorgreen ambilight 359
    colorblue ambilight 360
    hscan93 95
    vscan80 100

    [light]
    name121
    colorred ambilight 361
    colorgreen ambilight 362
    colorblue ambilight 363
    hscan91 93
    vscan80 100

    [light]
    name122
    colorred ambilight 364
    colorgreen ambilight 365
    colorblue ambilight 366
    hscan90 91
    vscan80 100

    [light]
    name123
    colorred ambilight 367
    colorgreen ambilight 368
    colorblue ambilight 369
    hscan88 90
    vscan80 100

    [light]
    name124
    colorred ambilight 370
    colorgreen ambilight 371
    colorblue ambilight 372
    hscan86 88
    vscan80 100

    [light]
    name125
    colorred ambilight 373
    colorgreen ambilight 374
    colorblue ambilight 375
    hscan85 86
    vscan80 100

    [light]
    name126
    colorred ambilight 376
    colorgreen ambilight 377
    colorblue ambilight 378
    hscan83 85
    vscan80 100

    [light]
    name127
    colorred ambilight 379
    colorgreen ambilight 380
    colorblue ambilight 381
    hscan81 83
    vscan80 100

    [light]
    name128
    colorred ambilight 382
    colorgreen ambilight 383
    colorblue ambilight 384
    hscan80 81
    vscan80 100

    [light]
    name129
    colorred ambilight 385
    colorgreen ambilight 386
    colorblue ambilight 387
    hscan78 80
    vscan80 100

    [light]
    name130
    colorred ambilight 388
    colorgreen ambilight 389
    colorblue ambilight 390
    hscan76 78
    vscan80 100

    [light]
    name131
    colorred ambilight 391
    colorgreen ambilight 392
    colorblue ambilight 393
    hscan75 76
    vscan80 100

    [light]
    name132
    colorred ambilight 394
    colorgreen ambilight 395
    colorblue ambilight 396
    hscan73 75
    vscan80 100

    [light]
    name133
    colorred ambilight 397
    colorgreen ambilight 398
    colorblue ambilight 399
    hscan71 73
    vscan80 100

    [light]
    name134
    colorred ambilight 400
    colorgreen ambilight 401
    colorblue ambilight 402
    hscan70 71
    vscan80 100

    [light]
    name135
    colorred ambilight 403
    colorgreen ambilight 404
    colorblue ambilight 405
    hscan68 70
    vscan80 100

    [light]
    name136
    colorred ambilight 406
    colorgreen ambilight 407
    colorblue ambilight 408
    hscan66 68
    vscan80 100

    [light]
    name137
    colorred ambilight 409
    colorgreen ambilight 410
    colorblue ambilight 411
    hscan65 66
    vscan80 100

    [light]
    name138
    colorred ambilight 412
    colorgreen ambilight 413
    colorblue ambilight 414
    hscan63 65
    vscan80 100

    [light]
    name139
    colorred ambilight 415
    colorgreen ambilight 416
    colorblue ambilight 417
    hscan61 63
    vscan80 100

    [light]
    name140
    colorred ambilight 418
    colorgreen ambilight 419
    colorblue ambilight 420
    hscan60 61
    vscan80 100

    [light]
    name141
    colorred ambilight 421
    colorgreen ambilight 422
    colorblue ambilight 423
    hscan58 60
    vscan80 100

    [light]
    name142
    colorred ambilight 424
    colorgreen ambilight 425
    colorblue ambilight 426
    hscan56 58
    vscan80 100

    [light]
    name143
    colorred ambilight 427
    colorgreen ambilight 428
    colorblue ambilight 429
    hscan55 56
    vscan80 100

    [light]
    name144
    colorred ambilight 430
    colorgreen ambilight 431
    colorblue ambilight 432
    hscan53 55
    vscan80 100

    [light]
    name145
    colorred ambilight 433
    colorgreen ambilight 434
    colorblue ambilight 435
    hscan51 53
    vscan80 100

    [light]
    name146
    colorred ambilight 436
    colorgreen ambilight 437
    colorblue ambilight 438
    hscan50 51
    vscan80 100

    [light]
    name147
    colorred ambilight 439
    colorgreen ambilight 440
    colorblue ambilight 441
    hscan48 50
    vscan80 100

    [light]
    name148
    colorred ambilight 442
    colorgreen ambilight 443
    colorblue ambilight 444
    hscan46 48
    vscan80 100

    [light]
    name149
    colorred ambilight 445
    colorgreen ambilight 446
    colorblue ambilight 447
    hscan45 46
    vscan80 100

    [light]
    name150
    colorred ambilight 448
    colorgreen ambilight 449
    colorblue ambilight 450
    hscan43 45
    vscan80 100

    [light]
    name151
    colorred ambilight 451
    colorgreen ambilight 452
    colorblue ambilight 453
    hscan41 43
    vscan80 100

    [light]
    name152
    colorred ambilight 454
    colorgreen ambilight 455
    colorblue ambilight 456
    hscan40 41
    vscan80 100

    [light]
    name153
    colorred ambilight 457
    colorgreen ambilight 458
    colorblue ambilight 459
    hscan38 40
    vscan80 100

    [light]
    name154
    colorred ambilight 460
    colorgreen ambilight 461
    colorblue ambilight 462
    hscan36 38
    vscan80 100

    [light]
    name155
    colorred ambilight 463
    colorgreen ambilight 464
    colorblue ambilight 465
    hscan35 36
    vscan80 100

    [light]
    name156
    colorred ambilight 466
    colorgreen ambilight 467
    colorblue ambilight 468
    hscan33 35
    vscan80 100

    [light]
    name157
    colorred ambilight 469
    colorgreen ambilight 470
    colorblue ambilight 471
    hscan31 33
    vscan80 100

    [light]
    name158
    colorred ambilight 472
    colorgreen ambilight 473
    colorblue ambilight 474
    hscan30 31
    vscan80 100

    [light]
    name159
    colorred ambilight 475
    colorgreen ambilight 476
    colorblue ambilight 477
    hscan28 30
    vscan80 100

    [light]
    name160
    colorred ambilight 478
    colorgreen ambilight 479
    colorblue ambilight 480
    hscan26 28
    vscan80 100

    [light]
    name161
    colorred ambilight 481
    colorgreen ambilight 482
    colorblue ambilight 483
    hscan25 26
    vscan80 100

    [light]
    name162
    colorred ambilight 484
    colorgreen ambilight 485
    colorblue ambilight 486
    hscan23 25
    vscan80 100

    [light]
    name163
    colorred ambilight 487
    colorgreen ambilight 488
    colorblue ambilight 489
    hscan21 23
    vscan80 100

    [light]
    name164
    colorred ambilight 490
    colorgreen ambilight 491
    colorblue ambilight 492
    hscan20 21
    vscan80 100

    [light]
    name165
    colorred ambilight 493
    colorgreen ambilight 494
    colorblue ambilight 495
    hscan18 20
    vscan80 100

    [light]
    name166
    colorred ambilight 496
    colorgreen ambilight 497
    colorblue ambilight 498
    hscan16 18
    vscan80 100

    [light]
    name167
    colorred ambilight 499
    colorgreen ambilight 500
    colorblue ambilight 501
    hscan15 16
    vscan80 100

    [light]
    name168
    colorred ambilight 502
    colorgreen ambilight 503
    colorblue ambilight 504
    hscan13 15
    vscan80 100

    [light]
    name169
    colorred ambilight 505
    colorgreen ambilight 506
    colorblue ambilight 507
    hscan11 13
    vscan80 100

    [light]
    name170
    colorred ambilight 508
    colorgreen ambilight 509
    colorblue ambilight 510
    hscan10 11
    vscan80 100

    [light]
    name171
    colorred ambilight 511
    colorgreen ambilight 512
    colorblue ambilight 513
    hscan8 10
    vscan80 100

    [light]
    name172
    colorred ambilight 514
    colorgreen ambilight 515
    colorblue ambilight 516
    hscan6 8
    vscan80 100

    [light]
    name173
    colorred ambilight 517
    colorgreen ambilight 518
    colorblue ambilight 519
    hscan5 6
    vscan80 100

    [light]
    name174
    colorred ambilight 520
    colorgreen ambilight 521
    colorblue ambilight 522
    hscan3 5
    vscan80 100

    [light]
    name175
    colorred ambilight 523
    colorgreen ambilight 524
    colorblue ambilight 525
    hscan1 3
    vscan80 100

    [light]
    name176
    colorred ambilight 526
    colorgreen ambilight 527
    colorblue ambilight 528
    hscan0 1
    vscan80 100

    Fehlerbeschreibung:

    Ich starte die Box, Licht geht an (weiß). Kurz darauf geht Licht kurz aus und wieder an (weiß) und bleibt dann so ohne sich zu ändern! Wenn ich Den Boblight Server deaktiviere und aktiviere geht Licht kurz aus und dann wieder an, also ist da wohl irgendwie eine Verbindung!

  • Config Fehler hätte ich gesagt. Normales Startverhalten:
    Lichter gehen an (bei mir Im Kreis nach und nach) und dann wieder aus - alles OK. Boblight startet im Kodi -> Lichter leuchten in den Farben kurz und gehen wiede raus - alles OK!

    Prefix bitte prüfen, dass passt so nicht. In der Arduino Config steht ein anderer Prefix als in der Boblight.conf - das sollte sogar schon das Problem sein.
    Die Channels sicherheitshalber nochmal kontrollieren ... ich bin mir nicht mehr sicher, wie das Verhältnis sein sollte (also zw. Channels und tatsächlich vorhandenen LEDs)

    das Einzige was am Ende zählt ist
    dass ihr lebt was ihr liebt und liebt wofür ihr lebt


    Kodi HTPC - W11 | AMD Athlon 3000G | Pioneer A 504R Bj. 96
    OMV NAS - NAS | Emby Server | LogitechMediaServer
    3x Logitech SqueezeBox & 3x RasPi PiCorePlayer
    Unifi Netzwerk | Sophos XGS Firewall | Agfeo TK | Kentix Security
    Loxone SmartHome

  • mir kommt bei 180 leds der folgende prefix raus
    41 64 61 00 B3 E6
    (händisch gerechnet und durch calculator kontrolliert)

    siehe auch attatchement in diesem post:
    https://hyperion-project.org/threads/migrat….358/#post-2834


    nicht vergessen: adalight fängt bei 0 zu zählen an, manche prefix rechner bei 1!

    in deiner conf stimmt auch die channel nuber nicht. die ist für 256 leds

  • jetzt hab ichs so, aber gehen tuts immernoch nicht ;(

    ta4_boblight.ino

    Spoiler anzeigen


    /* t4a_boblight
    * (C) 2014 Hans Luijten, http://www.tweaking4all.com
    *
    * t4a_boblight is free software and can be distributed and/or modified
    * freely as long as the copyright notice remains in place.
    * Nobody is allowed to charge you for this code.
    * Use of this code is entirely at your own risk.
    */

    #include "Adafruit_NeoPixel.h"

    // DEFINITIONS

    #define STARTCOLOR 0xFFFFFF // LED colors at start
    #define BLACK 0x000000 // LED color BLACK

    #define DATAPIN 13 // Datapin
    #define LEDCOUNT 180 // Number of LEDs used for boblight
    #define SHOWDELAY 200 // Delay in micro seconds before showing
    #define BAUDRATE 460800 // Serial port speed, 460800 tested with Arduino Uno R3
    #define BRIGHTNESS 90 // Max. brightness in %

    const char prefix[] = {0x41, 0x64, 0x61, 0x00, 0xb3, 0xe6}; // Start prefix
    char buffer[sizeof(prefix)]; // Temp buffer for receiving prefix data

    // Init LED strand, WS2811/WS2912 specific

    // These might work for other configurations:
    // NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
    // NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
    // NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products)
    // NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)

    Adafruit_NeoPixel strip = Adafruit_NeoPixel(LEDCOUNT, DATAPIN, NEO_GRB + NEO_KHZ800);

    int state; // Define current state
    #define STATE_WAITING 1 // - Waiting for prefix
    #define STATE_DO_PREFIX 2 // - Processing prefix
    #define STATE_DO_DATA 3 // - Handling incoming LED colors

    int readSerial; // Read Serial data (1)
    int currentLED; // Needed for assigning the color to the right LED

    void setup()
    {
    strip.begin(); // Init LED strand, set all black, then all to startcolor
    strip.setBrightness( (255 / 100) * BRIGHTNESS );
    setAllLEDs(BLACK, 0);
    setAllLEDs(STARTCOLOR, 5);
    Serial.begin(BAUDRATE); // Init serial speed
    state = STATE_WAITING; // Initial state: Waiting for prefix
    }


    void loop()
    {
    switch(state)
    {
    case STATE_WAITING: // *** Waiting for prefix ***
    if( Serial.available()>0 )
    {
    readSerial = Serial.read(); // Read one character
    if ( readSerial == prefix[0] ) // if this character is 1st prefix char
    { state = STATE_DO_PREFIX; } // then set state to handle prefix
    }
    break;
    case STATE_DO_PREFIX: // *** Processing Prefix ***
    if( Serial.available() > sizeof(prefix) - 2 )
    {
    Serial.readBytes(buffer, sizeof(prefix) - 1);
    for( int Counter = 0; Counter < sizeof(prefix) - 1; Counter++)
    {
    if( buffer[Counter] == prefix[Counter+1] )
    {
    state = STATE_DO_DATA; // Received character is in prefix, continue
    currentLED = 0; // Set current LED to the first one
    }
    else
    {
    state = STATE_WAITING; // Crap, one of the received chars is NOT in the prefix
    break; // Exit, to go back to waiting for the prefix
    } // end if buffer
    } // end for Counter
    } // end if Serial
    break;
    case STATE_DO_DATA: // *** Process incoming color data ***
    if( Serial.available() > 2 ) // if we receive more than 2 chars
    {
    Serial.readBytes( buffer, 3 ); // Abuse buffer to temp store 3 charaters
    strip.setPixelColor( currentLED++, buffer[0], buffer[1], buffer[2]); // and assing to LEDs
    }
    if( currentLED > LEDCOUNT ) // Reached the last LED? Display it!
    {
    strip.show(); // Make colors visible
    delayMicroseconds(SHOWDELAY); // Wait a few micro seconds
    state = STATE_WAITING; // Reset to waiting ...
    currentLED = 0; // and go to LED one
    break; // and exit ... and do it all over again
    }
    break;
    } // switch(state)
    } // loop


    // Sets the color of all LEDs in the strand to 'color'
    // If 'wait'>0 then it will show a swipe from start to end
    void setAllLEDs(uint32_t color, int wait)
    {
    for ( int Counter=0; Counter < LEDCOUNT; Counter++ ) // For each LED
    {
    strip.setPixelColor( Counter, color ); // .. set the color

    if( wait > 0 ) // if a wait time was set then
    {
    strip.show(); // Show the LED color
    delay(wait); // and wait before we do the next LED
    } // if wait
    } // for Counter
    strip.show(); // Show all LEDs
    } // setAllLEDs

    boblight.conf

    Spoiler anzeigen


    # config file created with BobLight Config Maker v.1.0
    # (C) Hans Luijten - http://www.tweaking4all.com
    # Orientation naming as seen from the REAR of the TV
    # Date: 20.03.2019 15:00:40

    [global]
    interface 127.0.0.1
    port 19333

    [device]
    name AmbiLight
    type momo
    output /dev/ttyUSB0
    channels 540
    prefix 41 64 61 00 b3 e6
    interval 20000
    rate 460800
    [definition=12,0]debug[/definition] off
    delayafteropen 100000

    [color]
    name red
    rgb FF0000
    adjust 1.0
    blacklevel 1.0
    gamma 1.0

    [color]
    name green
    rgb 00FF00

    [color]
    name blue
    rgb 0000FF

    # Bottom Start

    [light]
    name start1
    color red AmbiLight 1
    color green AmbiLight 2
    color blue AmbiLight 3
    hscan 48.3 50
    vscan 80 100

    [light]
    name start2
    color red AmbiLight 4
    color green AmbiLight 5
    color blue AmbiLight 6
    hscan 46.7 48.3
    vscan 80 100

    [light]
    name start3
    color red AmbiLight 7
    color green AmbiLight 8
    color blue AmbiLight 9
    hscan 45 46.7
    vscan 80 100

    [light]
    name start4
    color red AmbiLight 10
    color green AmbiLight 11
    color blue AmbiLight 12
    hscan 43.3 45
    vscan 80 100

    [light]
    name start5
    color red AmbiLight 13
    color green AmbiLight 14
    color blue AmbiLight 15
    hscan 41.7 43.3
    vscan 80 100

    [light]
    name start6
    color red AmbiLight 16
    color green AmbiLight 17
    color blue AmbiLight 18
    hscan 40 41.7
    vscan 80 100

    [light]
    name start7
    color red AmbiLight 19
    color green AmbiLight 20
    color blue AmbiLight 21
    hscan 38.3 40
    vscan 80 100

    [light]
    name start8
    color red AmbiLight 22
    color green AmbiLight 23
    color blue AmbiLight 24
    hscan 36.7 38.3
    vscan 80 100

    [light]
    name start9
    color red AmbiLight 25
    color green AmbiLight 26
    color blue AmbiLight 27
    hscan 35 36.7
    vscan 80 100

    [light]
    name start10
    color red AmbiLight 28
    color green AmbiLight 29
    color blue AmbiLight 30
    hscan 33.3 35
    vscan 80 100

    [light]
    name start11
    color red AmbiLight 31
    color green AmbiLight 32
    color blue AmbiLight 33
    hscan 31.7 33.3
    vscan 80 100

    [light]
    name start12
    color red AmbiLight 34
    color green AmbiLight 35
    color blue AmbiLight 36
    hscan 30 31.7
    vscan 80 100

    [light]
    name start13
    color red AmbiLight 37
    color green AmbiLight 38
    color blue AmbiLight 39
    hscan 28.3 30
    vscan 80 100

    [light]
    name start14
    color red AmbiLight 40
    color green AmbiLight 41
    color blue AmbiLight 42
    hscan 26.7 28.3
    vscan 80 100

    [light]
    name start15
    color red AmbiLight 43
    color green AmbiLight 44
    color blue AmbiLight 45
    hscan 25 26.7
    vscan 80 100

    [light]
    name start16
    color red AmbiLight 46
    color green AmbiLight 47
    color blue AmbiLight 48
    hscan 23.3 25
    vscan 80 100

    [light]
    name start17
    color red AmbiLight 49
    color green AmbiLight 50
    color blue AmbiLight 51
    hscan 21.7 23.3
    vscan 80 100

    [light]
    name start18
    color red AmbiLight 52
    color green AmbiLight 53
    color blue AmbiLight 54
    hscan 20 21.7
    vscan 80 100

    [light]
    name start19
    color red AmbiLight 55
    color green AmbiLight 56
    color blue AmbiLight 57
    hscan 18.3 20
    vscan 80 100

    [light]
    name start20
    color red AmbiLight 58
    color green AmbiLight 59
    color blue AmbiLight 60
    hscan 16.7 18.3
    vscan 80 100

    [light]
    name start21
    color red AmbiLight 61
    color green AmbiLight 62
    color blue AmbiLight 63
    hscan 15 16.7
    vscan 80 100

    [light]
    name start22
    color red AmbiLight 64
    color green AmbiLight 65
    color blue AmbiLight 66
    hscan 13.3 15
    vscan 80 100

    [light]
    name start23
    color red AmbiLight 67
    color green AmbiLight 68
    color blue AmbiLight 69
    hscan 11.7 13.3
    vscan 80 100

    [light]
    name start24
    color red AmbiLight 70
    color green AmbiLight 71
    color blue AmbiLight 72
    hscan 10 11.7
    vscan 80 100

    [light]
    name start25
    color red AmbiLight 73
    color green AmbiLight 74
    color blue AmbiLight 75
    hscan 8.3 10
    vscan 80 100

    [light]
    name start26
    color red AmbiLight 76
    color green AmbiLight 77
    color blue AmbiLight 78
    hscan 6.7 8.3
    vscan 80 100

    [light]
    name start27
    color red AmbiLight 79
    color green AmbiLight 80
    color blue AmbiLight 81
    hscan 5 6.7
    vscan 80 100

    [light]
    name start28
    color red AmbiLight 82
    color green AmbiLight 83
    color blue AmbiLight 84
    hscan 3.3 5
    vscan 80 100

    [light]
    name start29
    color red AmbiLight 85
    color green AmbiLight 86
    color blue AmbiLight 87
    hscan 1.7 3.3
    vscan 80 100

    [light]
    name start30
    color red AmbiLight 88
    color green AmbiLight 89
    color blue AmbiLight 90
    hscan 0 1.7
    vscan 80 100

    # Right Side

    [light]
    name right1
    color red AmbiLight 91
    color green AmbiLight 92
    color blue AmbiLight 93
    hscan 0 10
    vscan 96.7 100

    [light]
    name right2
    color red AmbiLight 94
    color green AmbiLight 95
    color blue AmbiLight 96
    hscan 0 10
    vscan 93.3 96.7

    [light]
    name right3
    color red AmbiLight 97
    color green AmbiLight 98
    color blue AmbiLight 99
    hscan 0 10
    vscan 90 93.3

    [light]
    name right4
    color red AmbiLight 100
    color green AmbiLight 101
    color blue AmbiLight 102
    hscan 0 10
    vscan 86.7 90

    [light]
    name right5
    color red AmbiLight 103
    color green AmbiLight 104
    color blue AmbiLight 105
    hscan 0 10
    vscan 83.3 86.7

    [light]
    name right6
    color red AmbiLight 106
    color green AmbiLight 107
    color blue AmbiLight 108
    hscan 0 10
    vscan 80 83.3

    [light]
    name right7
    color red AmbiLight 109
    color green AmbiLight 110
    color blue AmbiLight 111
    hscan 0 10
    vscan 76.7 80

    [light]
    name right8
    color red AmbiLight 112
    color green AmbiLight 113
    color blue AmbiLight 114
    hscan 0 10
    vscan 73.3 76.7

    [light]
    name right9
    color red AmbiLight 115
    color green AmbiLight 116
    color blue AmbiLight 117
    hscan 0 10
    vscan 70 73.3

    [light]
    name right10
    color red AmbiLight 118
    color green AmbiLight 119
    color blue AmbiLight 120
    hscan 0 10
    vscan 66.7 70

    [light]
    name right11
    color red AmbiLight 121
    color green AmbiLight 122
    color blue AmbiLight 123
    hscan 0 10
    vscan 63.3 66.7

    [light]
    name right12
    color red AmbiLight 124
    color green AmbiLight 125
    color blue AmbiLight 126
    hscan 0 10
    vscan 60 63.3

    [light]
    name right13
    color red AmbiLight 127
    color green AmbiLight 128
    color blue AmbiLight 129
    hscan 0 10
    vscan 56.7 60

    [light]
    name right14
    color red AmbiLight 130
    color green AmbiLight 131
    color blue AmbiLight 132
    hscan 0 10
    vscan 53.3 56.7

    [light]
    name right15
    color red AmbiLight 133
    color green AmbiLight 134
    color blue AmbiLight 135
    hscan 0 10
    vscan 50 53.3

    [light]
    name right16
    color red AmbiLight 136
    color green AmbiLight 137
    color blue AmbiLight 138
    hscan 0 10
    vscan 46.7 50

    [light]
    name right17
    color red AmbiLight 139
    color green AmbiLight 140
    color blue AmbiLight 141
    hscan 0 10
    vscan 43.3 46.7

    [light]
    name right18
    color red AmbiLight 142
    color green AmbiLight 143
    color blue AmbiLight 144
    hscan 0 10
    vscan 40 43.3

    [light]
    name right19
    color red AmbiLight 145
    color green AmbiLight 146
    color blue AmbiLight 147
    hscan 0 10
    vscan 36.7 40

    [light]
    name right20
    color red AmbiLight 148
    color green AmbiLight 149
    color blue AmbiLight 150
    hscan 0 10
    vscan 33.3 36.7

    [light]
    name right21
    color red AmbiLight 151
    color green AmbiLight 152
    color blue AmbiLight 153
    hscan 0 10
    vscan 30 33.3

    [light]
    name right22
    color red AmbiLight 154
    color green AmbiLight 155
    color blue AmbiLight 156
    hscan 0 10
    vscan 26.7 30

    [light]
    name right23
    color red AmbiLight 157
    color green AmbiLight 158
    color blue AmbiLight 159
    hscan 0 10
    vscan 23.3 26.7

    [light]
    name right24
    color red AmbiLight 160
    color green AmbiLight 161
    color blue AmbiLight 162
    hscan 0 10
    vscan 20 23.3

    [light]
    name right25
    color red AmbiLight 163
    color green AmbiLight 164
    color blue AmbiLight 165
    hscan 0 10
    vscan 16.7 20

    [light]
    name right26
    color red AmbiLight 166
    color green AmbiLight 167
    color blue AmbiLight 168
    hscan 0 10
    vscan 13.3 16.7

    [light]
    name right27
    color red AmbiLight 169
    color green AmbiLight 170
    color blue AmbiLight 171
    hscan 0 10
    vscan 10 13.3

    [light]
    name right28
    color red AmbiLight 172
    color green AmbiLight 173
    color blue AmbiLight 174
    hscan 0 10
    vscan 6.7 10

    [light]
    name right29
    color red AmbiLight 175
    color green AmbiLight 176
    color blue AmbiLight 177
    hscan 0 10
    vscan 3.3 6.7

    [light]
    name right30
    color red AmbiLight 178
    color green AmbiLight 179
    color blue AmbiLight 180
    hscan 0 10
    vscan 0 3.3

    # Top

    [light]
    name top1
    color red AmbiLight 181
    color green AmbiLight 182
    color blue AmbiLight 183
    hscan 0 1.7
    vscan 0 20

    [light]
    name top2
    color red AmbiLight 184
    color green AmbiLight 185
    color blue AmbiLight 186
    hscan 1.7 3.3
    vscan 0 20

    [light]
    name top3
    color red AmbiLight 187
    color green AmbiLight 188
    color blue AmbiLight 189
    hscan 3.3 5
    vscan 0 20

    [light]
    name top4
    color red AmbiLight 190
    color green AmbiLight 191
    color blue AmbiLight 192
    hscan 5 6.7
    vscan 0 20

    [light]
    name top5
    color red AmbiLight 193
    color green AmbiLight 194
    color blue AmbiLight 195
    hscan 6.7 8.3
    vscan 0 20

    [light]
    name top6
    color red AmbiLight 196
    color green AmbiLight 197
    color blue AmbiLight 198
    hscan 8.3 10
    vscan 0 20

    [light]
    name top7
    color red AmbiLight 199
    color green AmbiLight 200
    color blue AmbiLight 201
    hscan 10 11.7
    vscan 0 20

    [light]
    name top8
    color red AmbiLight 202
    color green AmbiLight 203
    color blue AmbiLight 204
    hscan 11.7 13.3
    vscan 0 20

    [light]
    name top9
    color red AmbiLight 205
    color green AmbiLight 206
    color blue AmbiLight 207
    hscan 13.3 15
    vscan 0 20

    [light]
    name top10
    color red AmbiLight 208
    color green AmbiLight 209
    color blue AmbiLight 210
    hscan 15 16.7
    vscan 0 20

    [light]
    name top11
    color red AmbiLight 211
    color green AmbiLight 212
    color blue AmbiLight 213
    hscan 16.7 18.3
    vscan 0 20

    [light]
    name top12
    color red AmbiLight 214
    color green AmbiLight 215
    color blue AmbiLight 216
    hscan 18.3 20
    vscan 0 20

    [light]
    name top13
    color red AmbiLight 217
    color green AmbiLight 218
    color blue AmbiLight 219
    hscan 20 21.7
    vscan 0 20

    [light]
    name top14
    color red AmbiLight 220
    color green AmbiLight 221
    color blue AmbiLight 222
    hscan 21.7 23.3
    vscan 0 20

    [light]
    name top15
    color red AmbiLight 223
    color green AmbiLight 224
    color blue AmbiLight 225
    hscan 23.3 25
    vscan 0 20

    [light]
    name top16
    color red AmbiLight 226
    color green AmbiLight 227
    color blue AmbiLight 228
    hscan 25 26.7
    vscan 0 20

    [light]
    name top17
    color red AmbiLight 229
    color green AmbiLight 230
    color blue AmbiLight 231
    hscan 26.7 28.3
    vscan 0 20

    [light]
    name top18
    color red AmbiLight 232
    color green AmbiLight 233
    color blue AmbiLight 234
    hscan 28.3 30
    vscan 0 20

    [light]
    name top19
    color red AmbiLight 235
    color green AmbiLight 236
    color blue AmbiLight 237
    hscan 30 31.7
    vscan 0 20

    [light]
    name top20
    color red AmbiLight 238
    color green AmbiLight 239
    color blue AmbiLight 240
    hscan 31.7 33.3
    vscan 0 20

    [light]
    name top21
    color red AmbiLight 241
    color green AmbiLight 242
    color blue AmbiLight 243
    hscan 33.3 35
    vscan 0 20

    [light]
    name top22
    color red AmbiLight 244
    color green AmbiLight 245
    color blue AmbiLight 246
    hscan 35 36.7
    vscan 0 20

    [light]
    name top23
    color red AmbiLight 247
    color green AmbiLight 248
    color blue AmbiLight 249
    hscan 36.7 38.3
    vscan 0 20

    [light]
    name top24
    color red AmbiLight 250
    color green AmbiLight 251
    color blue AmbiLight 252
    hscan 38.3 40
    vscan 0 20

    [light]
    name top25
    color red AmbiLight 253
    color green AmbiLight 254
    color blue AmbiLight 255
    hscan 40 41.7
    vscan 0 20

    [light]
    name top26
    color red AmbiLight 256
    color green AmbiLight 257
    color blue AmbiLight 258
    hscan 41.7 43.3
    vscan 0 20

    [light]
    name top27
    color red AmbiLight 259
    color green AmbiLight 260
    color blue AmbiLight 261
    hscan 43.3 45
    vscan 0 20

    [light]
    name top28
    color red AmbiLight 262
    color green AmbiLight 263
    color blue AmbiLight 264
    hscan 45 46.7
    vscan 0 20

    [light]
    name top29
    color red AmbiLight 265
    color green AmbiLight 266
    color blue AmbiLight 267
    hscan 46.7 48.3
    vscan 0 20

    [light]
    name top30
    color red AmbiLight 268
    color green AmbiLight 269
    color blue AmbiLight 270
    hscan 48.3 50
    vscan 0 20

    [light]
    name top31
    color red AmbiLight 271
    color green AmbiLight 272
    color blue AmbiLight 273
    hscan 50 51.7
    vscan 0 20

    [light]
    name top32
    color red AmbiLight 274
    color green AmbiLight 275
    color blue AmbiLight 276
    hscan 51.7 53.3
    vscan 0 20

    [light]
    name top33
    color red AmbiLight 277
    color green AmbiLight 278
    color blue AmbiLight 279
    hscan 53.3 55
    vscan 0 20

    [light]
    name top34
    color red AmbiLight 280
    color green AmbiLight 281
    color blue AmbiLight 282
    hscan 55 56.7
    vscan 0 20

    [light]
    name top35
    color red AmbiLight 283
    color green AmbiLight 284
    color blue AmbiLight 285
    hscan 56.7 58.3
    vscan 0 20

    [light]
    name top36
    color red AmbiLight 286
    color green AmbiLight 287
    color blue AmbiLight 288
    hscan 58.3 60
    vscan 0 20

    [light]
    name top37
    color red AmbiLight 289
    color green AmbiLight 290
    color blue AmbiLight 291
    hscan 60 61.7
    vscan 0 20

    [light]
    name top38
    color red AmbiLight 292
    color green AmbiLight 293
    color blue AmbiLight 294
    hscan 61.7 63.3
    vscan 0 20

    [light]
    name top39
    color red AmbiLight 295
    color green AmbiLight 296
    color blue AmbiLight 297
    hscan 63.3 65
    vscan 0 20

    [light]
    name top40
    color red AmbiLight 298
    color green AmbiLight 299
    color blue AmbiLight 300
    hscan 65 66.7
    vscan 0 20

    [light]
    name top41
    color red AmbiLight 301
    color green AmbiLight 302
    color blue AmbiLight 303
    hscan 66.7 68.3
    vscan 0 20

    [light]
    name top42
    color red AmbiLight 304
    color green AmbiLight 305
    color blue AmbiLight 306
    hscan 68.3 70
    vscan 0 20

    [light]
    name top43
    color red AmbiLight 307
    color green AmbiLight 308
    color blue AmbiLight 309
    hscan 70 71.7
    vscan 0 20

    [light]
    name top44
    color red AmbiLight 310
    color green AmbiLight 311
    color blue AmbiLight 312
    hscan 71.7 73.3
    vscan 0 20

    [light]
    name top45
    color red AmbiLight 313
    color green AmbiLight 314
    color blue AmbiLight 315
    hscan 73.3 75
    vscan 0 20

    [light]
    name top46
    color red AmbiLight 316
    color green AmbiLight 317
    color blue AmbiLight 318
    hscan 75 76.7
    vscan 0 20

    [light]
    name top47
    color red AmbiLight 319
    color green AmbiLight 320
    color blue AmbiLight 321
    hscan 76.7 78.3
    vscan 0 20

    [light]
    name top48
    color red AmbiLight 322
    color green AmbiLight 323
    color blue AmbiLight 324
    hscan 78.3 80
    vscan 0 20

    [light]
    name top49
    color red AmbiLight 325
    color green AmbiLight 326
    color blue AmbiLight 327
    hscan 80 81.7
    vscan 0 20

    [light]
    name top50
    color red AmbiLight 328
    color green AmbiLight 329
    color blue AmbiLight 330
    hscan 81.7 83.3
    vscan 0 20

    [light]
    name top51
    color red AmbiLight 331
    color green AmbiLight 332
    color blue AmbiLight 333
    hscan 83.3 85
    vscan 0 20

    [light]
    name top52
    color red AmbiLight 334
    color green AmbiLight 335
    color blue AmbiLight 336
    hscan 85 86.7
    vscan 0 20

    [light]
    name top53
    color red AmbiLight 337
    color green AmbiLight 338
    color blue AmbiLight 339
    hscan 86.7 88.3
    vscan 0 20

    [light]
    name top54
    color red AmbiLight 340
    color green AmbiLight 341
    color blue AmbiLight 342
    hscan 88.3 90
    vscan 0 20

    [light]
    name top55
    color red AmbiLight 343
    color green AmbiLight 344
    color blue AmbiLight 345
    hscan 90 91.7
    vscan 0 20

    [light]
    name top56
    color red AmbiLight 346
    color green AmbiLight 347
    color blue AmbiLight 348
    hscan 91.7 93.3
    vscan 0 20

    [light]
    name top57
    color red AmbiLight 349
    color green AmbiLight 350
    color blue AmbiLight 351
    hscan 93.3 95
    vscan 0 20

    [light]
    name top58
    color red AmbiLight 352
    color green AmbiLight 353
    color blue AmbiLight 354
    hscan 95 96.7
    vscan 0 20

    [light]
    name top59
    color red AmbiLight 355
    color green AmbiLight 356
    color blue AmbiLight 357
    hscan 96.7 98.3
    vscan 0 20

    [light]
    name top60
    color red AmbiLight 358
    color green AmbiLight 359
    color blue AmbiLight 360
    hscan 98.3 100
    vscan 0 20

    # Left Side

    [light]
    name left1
    color red AmbiLight 361
    color green AmbiLight 362
    color blue AmbiLight 363
    hscan 90 100
    vscan 0 3.3

    [light]
    name left2
    color red AmbiLight 364
    color green AmbiLight 365
    color blue AmbiLight 366
    hscan 90 100
    vscan 3.3 6.7

    [light]
    name left3
    color red AmbiLight 367
    color green AmbiLight 368
    color blue AmbiLight 369
    hscan 90 100
    vscan 6.7 10

    [light]
    name left4
    color red AmbiLight 370
    color green AmbiLight 371
    color blue AmbiLight 372
    hscan 90 100
    vscan 10 13.3

    [light]
    name left5
    color red AmbiLight 373
    color green AmbiLight 374
    color blue AmbiLight 375
    hscan 90 100
    vscan 13.3 16.7

    [light]
    name left6
    color red AmbiLight 376
    color green AmbiLight 377
    color blue AmbiLight 378
    hscan 90 100
    vscan 16.7 20

    [light]
    name left7
    color red AmbiLight 379
    color green AmbiLight 380
    color blue AmbiLight 381
    hscan 90 100
    vscan 20 23.3

    [light]
    name left8
    color red AmbiLight 382
    color green AmbiLight 383
    color blue AmbiLight 384
    hscan 90 100
    vscan 23.3 26.7

    [light]
    name left9
    color red AmbiLight 385
    color green AmbiLight 386
    color blue AmbiLight 387
    hscan 90 100
    vscan 26.7 30

    [light]
    name left10
    color red AmbiLight 388
    color green AmbiLight 389
    color blue AmbiLight 390
    hscan 90 100
    vscan 30 33.3

    [light]
    name left11
    color red AmbiLight 391
    color green AmbiLight 392
    color blue AmbiLight 393
    hscan 90 100
    vscan 33.3 36.7

    [light]
    name left12
    color red AmbiLight 394
    color green AmbiLight 395
    color blue AmbiLight 396
    hscan 90 100
    vscan 36.7 40

    [light]
    name left13
    color red AmbiLight 397
    color green AmbiLight 398
    color blue AmbiLight 399
    hscan 90 100
    vscan 40 43.3

    [light]
    name left14
    color red AmbiLight 400
    color green AmbiLight 401
    color blue AmbiLight 402
    hscan 90 100
    vscan 43.3 46.7

    [light]
    name left15
    color red AmbiLight 403
    color green AmbiLight 404
    color blue AmbiLight 405
    hscan 90 100
    vscan 46.7 50

    [light]
    name left16
    color red AmbiLight 406
    color green AmbiLight 407
    color blue AmbiLight 408
    hscan 90 100
    vscan 50 53.3

    [light]
    name left17
    color red AmbiLight 409
    color green AmbiLight 410
    color blue AmbiLight 411
    hscan 90 100
    vscan 53.3 56.7

    [light]
    name left18
    color red AmbiLight 412
    color green AmbiLight 413
    color blue AmbiLight 414
    hscan 90 100
    vscan 56.7 60

    [light]
    name left19
    color red AmbiLight 415
    color green AmbiLight 416
    color blue AmbiLight 417
    hscan 90 100
    vscan 60 63.3

    [light]
    name left20
    color red AmbiLight 418
    color green AmbiLight 419
    color blue AmbiLight 420
    hscan 90 100
    vscan 63.3 66.7

    [light]
    name left21
    color red AmbiLight 421
    color green AmbiLight 422
    color blue AmbiLight 423
    hscan 90 100
    vscan 66.7 70

    [light]
    name left22
    color red AmbiLight 424
    color green AmbiLight 425
    color blue AmbiLight 426
    hscan 90 100
    vscan 70 73.3

    [light]
    name left23
    color red AmbiLight 427
    color green AmbiLight 428
    color blue AmbiLight 429
    hscan 90 100
    vscan 73.3 76.7

    [light]
    name left24
    color red AmbiLight 430
    color green AmbiLight 431
    color blue AmbiLight 432
    hscan 90 100
    vscan 76.7 80

    [light]
    name left25
    color red AmbiLight 433
    color green AmbiLight 434
    color blue AmbiLight 435
    hscan 90 100
    vscan 80 83.3

    [light]
    name left26
    color red AmbiLight 436
    color green AmbiLight 437
    color blue AmbiLight 438
    hscan 90 100
    vscan 83.3 86.7

    [light]
    name left27
    color red AmbiLight 439
    color green AmbiLight 440
    color blue AmbiLight 441
    hscan 90 100
    vscan 86.7 90

    [light]
    name left28
    color red AmbiLight 442
    color green AmbiLight 443
    color blue AmbiLight 444
    hscan 90 100
    vscan 90 93.3

    [light]
    name left29
    color red AmbiLight 445
    color green AmbiLight 446
    color blue AmbiLight 447
    hscan 90 100
    vscan 93.3 96.7

    [light]
    name left30
    color red AmbiLight 448
    color green AmbiLight 449
    color blue AmbiLight 450
    hscan 90 100
    vscan 96.7 100

    # Bottom End

    [light]
    name end1
    color red AmbiLight 451
    color green AmbiLight 452
    color blue AmbiLight 453
    hscan 98.3 100
    vscan 80 100

    [light]
    name end2
    color red AmbiLight 454
    color green AmbiLight 455
    color blue AmbiLight 456
    hscan 96.7 98.3
    vscan 80 100

    [light]
    name end3
    color red AmbiLight 457
    color green AmbiLight 458
    color blue AmbiLight 459
    hscan 95 96.7
    vscan 80 100

    [light]
    name end4
    color red AmbiLight 460
    color green AmbiLight 461
    color blue AmbiLight 462
    hscan 93.3 95
    vscan 80 100

    [light]
    name end5
    color red AmbiLight 463
    color green AmbiLight 464
    color blue AmbiLight 465
    hscan 91.7 93.3
    vscan 80 100

    [light]
    name end6
    color red AmbiLight 466
    color green AmbiLight 467
    color blue AmbiLight 468
    hscan 90 91.7
    vscan 80 100

    [light]
    name end7
    color red AmbiLight 469
    color green AmbiLight 470
    color blue AmbiLight 471
    hscan 88.3 90
    vscan 80 100

    [light]
    name end8
    color red AmbiLight 472
    color green AmbiLight 473
    color blue AmbiLight 474
    hscan 86.7 88.3
    vscan 80 100

    [light]
    name end9
    color red AmbiLight 475
    color green AmbiLight 476
    color blue AmbiLight 477
    hscan 85 86.7
    vscan 80 100

    [light]
    name end10
    color red AmbiLight 478
    color green AmbiLight 479
    color blue AmbiLight 480
    hscan 83.3 85
    vscan 80 100

    [light]
    name end11
    color red AmbiLight 481
    color green AmbiLight 482
    color blue AmbiLight 483
    hscan 81.7 83.3
    vscan 80 100

    [light]
    name end12
    color red AmbiLight 484
    color green AmbiLight 485
    color blue AmbiLight 486
    hscan 80 81.7
    vscan 80 100

    [light]
    name end13
    color red AmbiLight 487
    color green AmbiLight 488
    color blue AmbiLight 489
    hscan 78.3 80
    vscan 80 100

    [light]
    name end14
    color red AmbiLight 490
    color green AmbiLight 491
    color blue AmbiLight 492
    hscan 76.7 78.3
    vscan 80 100

    [light]
    name end15
    color red AmbiLight 493
    color green AmbiLight 494
    color blue AmbiLight 495
    hscan 75 76.7
    vscan 80 100

    [light]
    name end16
    color red AmbiLight 496
    color green AmbiLight 497
    color blue AmbiLight 498
    hscan 73.3 75
    vscan 80 100

    [light]
    name end17
    color red AmbiLight 499
    color green AmbiLight 500
    color blue AmbiLight 501
    hscan 71.7 73.3
    vscan 80 100

    [light]
    name end18
    color red AmbiLight 502
    color green AmbiLight 503
    color blue AmbiLight 504
    hscan 70 71.7
    vscan 80 100

    [light]
    name end19
    color red AmbiLight 505
    color green AmbiLight 506
    color blue AmbiLight 507
    hscan 68.3 70
    vscan 80 100

    [light]
    name end20
    color red AmbiLight 508
    color green AmbiLight 509
    color blue AmbiLight 510
    hscan 66.7 68.3
    vscan 80 100

    [light]
    name end21
    color red AmbiLight 511
    color green AmbiLight 512
    color blue AmbiLight 513
    hscan 65 66.7
    vscan 80 100

    [light]
    name end22
    color red AmbiLight 514
    color green AmbiLight 515
    color blue AmbiLight 516
    hscan 63.3 65
    vscan 80 100

    [light]
    name end23
    color red AmbiLight 517
    color green AmbiLight 518
    color blue AmbiLight 519
    hscan 61.7 63.3
    vscan 80 100

    [light]
    name end24
    color red AmbiLight 520
    color green AmbiLight 521
    color blue AmbiLight 522
    hscan 60 61.7
    vscan 80 100

    [light]
    name end25
    color red AmbiLight 523
    color green AmbiLight 524
    color blue AmbiLight 525
    hscan 58.3 60
    vscan 80 100

    [light]
    name end26
    color red AmbiLight 526
    color green AmbiLight 527
    color blue AmbiLight 528
    hscan 56.7 58.3
    vscan 80 100

    [light]
    name end27
    color red AmbiLight 529
    color green AmbiLight 530
    color blue AmbiLight 531
    hscan 55 56.7
    vscan 80 100

    [light]
    name end28
    color red AmbiLight 532
    color green AmbiLight 533
    color blue AmbiLight 534
    hscan 53.3 55
    vscan 80 100

    [light]
    name end29
    color red AmbiLight 535
    color green AmbiLight 536
    color blue AmbiLight 537
    hscan 51.7 53.3
    vscan 80 100

    [light]
    name end30
    color red AmbiLight 538
    color green AmbiLight 539
    color blue AmbiLight 540
    hscan 50 51.7
    vscan 80 100

    weder Windows noch s905x

  • das device richitg? Am windows musst du im Gerätemanager nachsehen, welcher COM Port dein Arduino erkannt wird und den in der boblight.conf auch angeben. Beim S905x genauso.
    Das Ganze ist wirklich ein wenig Tricky ...
    Ist das Verhalten völlig unverändert?

    das Einzige was am Ende zählt ist
    dass ihr lebt was ihr liebt und liebt wofür ihr lebt


    Kodi HTPC - W11 | AMD Athlon 3000G | Pioneer A 504R Bj. 96
    OMV NAS - NAS | Emby Server | LogitechMediaServer
    3x Logitech SqueezeBox & 3x RasPi PiCorePlayer
    Unifi Netzwerk | Sophos XGS Firewall | Agfeo TK | Kentix Security
    Loxone SmartHome

    Einmal editiert, zuletzt von noob_at_pc (20. März 2019 um 15:39)

  • haha, ich habs... Hab die Baudrate geändert und nun gehts...


    t4a_boblight.ino

    Spoiler anzeigen


    /* t4a_boblight
    * (C) 2014 Hans Luijten, http://www.tweaking4all.com
    *
    * t4a_boblight is free software and can be distributed and/or modified
    * freely as long as the copyright notice remains in place.
    * Nobody is allowed to charge you for this code.
    * Use of this code is entirely at your own risk.
    */

    #include "Adafruit_NeoPixel.h"

    // DEFINITIONS

    #define STARTCOLOR 0xFFFFFF // LED colors at start
    #define BLACK 0x000000 // LED color BLACK

    #define DATAPIN 13 // Datapin
    #define LEDCOUNT 180 // Number of LEDs used for boblight
    #define SHOWDELAY 200 // Delay in micro seconds before showing
    #define BAUDRATE 115200 // Serial port speed, 460800 tested with Arduino Uno R3
    #define BRIGHTNESS 90 // Max. brightness in %

    const char prefix[] = {0x41, 0x64, 0x61, 0x00, 0xb3, 0xe6}; // Start prefix
    char buffer[sizeof(prefix)]; // Temp buffer for receiving prefix data

    // Init LED strand, WS2811/WS2912 specific

    // These might work for other configurations:
    // NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
    // NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
    // NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products)
    // NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)

    Adafruit_NeoPixel strip = Adafruit_NeoPixel(LEDCOUNT, DATAPIN, NEO_GRB + NEO_KHZ800);

    int state; // Define current state
    #define STATE_WAITING 1 // - Waiting for prefix
    #define STATE_DO_PREFIX 2 // - Processing prefix
    #define STATE_DO_DATA 3 // - Handling incoming LED colors

    int readSerial; // Read Serial data (1)
    int currentLED; // Needed for assigning the color to the right LED

    void setup()
    {
    strip.begin(); // Init LED strand, set all black, then all to startcolor
    strip.setBrightness( (255 / 100) * BRIGHTNESS );
    setAllLEDs(BLACK, 0);
    setAllLEDs(STARTCOLOR, 5);
    Serial.begin(BAUDRATE); // Init serial speed
    state = STATE_WAITING; // Initial state: Waiting for prefix
    }


    void loop()
    {
    switch(state)
    {
    case STATE_WAITING: // *** Waiting for prefix ***
    if( Serial.available()>0 )
    {
    readSerial = Serial.read(); // Read one character
    if ( readSerial == prefix[0] ) // if this character is 1st prefix char
    { state = STATE_DO_PREFIX; } // then set state to handle prefix
    }
    break;
    case STATE_DO_PREFIX: // *** Processing Prefix ***
    if( Serial.available() > sizeof(prefix) - 2 )
    {
    Serial.readBytes(buffer, sizeof(prefix) - 1);
    for( int Counter = 0; Counter < sizeof(prefix) - 1; Counter++)
    {
    if( buffer[Counter] == prefix[Counter+1] )
    {
    state = STATE_DO_DATA; // Received character is in prefix, continue
    currentLED = 0; // Set current LED to the first one
    }
    else
    {
    state = STATE_WAITING; // Crap, one of the received chars is NOT in the prefix
    break; // Exit, to go back to waiting for the prefix
    } // end if buffer
    } // end for Counter
    } // end if Serial
    break;
    case STATE_DO_DATA: // *** Process incoming color data ***
    if( Serial.available() > 2 ) // if we receive more than 2 chars
    {
    Serial.readBytes( buffer, 3 ); // Abuse buffer to temp store 3 charaters
    strip.setPixelColor( currentLED++, buffer[0], buffer[1], buffer[2]); // and assing to LEDs
    }
    if( currentLED > LEDCOUNT ) // Reached the last LED? Display it!
    {
    strip.show(); // Make colors visible
    delayMicroseconds(SHOWDELAY); // Wait a few micro seconds
    state = STATE_WAITING; // Reset to waiting ...
    currentLED = 0; // and go to LED one
    break; // and exit ... and do it all over again
    }
    break;
    } // switch(state)
    } // loop


    // Sets the color of all LEDs in the strand to 'color'
    // If 'wait'>0 then it will show a swipe from start to end
    void setAllLEDs(uint32_t color, int wait)
    {
    for ( int Counter=0; Counter < LEDCOUNT; Counter++ ) // For each LED
    {
    strip.setPixelColor( Counter, color ); // .. set the color

    if( wait > 0 ) // if a wait time was set then
    {
    strip.show(); // Show the LED color
    delay(wait); // and wait before we do the next LED
    } // if wait
    } // for Counter
    strip.show(); // Show all LEDs
    } // setAllLEDs


    Boblight.conf

    Spoiler anzeigen

    # config file created with BobLight Config Maker v.1.0
    # (C) Hans Luijten - http://www.tweaking4all.com
    # Orientation naming as seen from the REAR of the TV
    # Date: 20.03.2019 14:57:34

    [global]
    interface 127.0.0.1
    port 19333

    [device]
    name AmbiLight
    type momo
    output /dev/ttyUSB0
    channels 540
    prefix 41 64 61 00 b3 e6
    interval 20000
    rate 115200
    [definition=12,0]debug[/definition] off
    delayafteropen 100000

    Danke für eure Hilfe!!! Ist alles viel gewesen ;) Aber eigentlich recht simple wenn man weiß wo was stehen soll!!

  • hast du mal ein testvideo angesehen damit du weißt ob alles richtig eingestellt ist?

    Gibt extra welche für Ambilight

    das Einzige was am Ende zählt ist
    dass ihr lebt was ihr liebt und liebt wofür ihr lebt


    Kodi HTPC - W11 | AMD Athlon 3000G | Pioneer A 504R Bj. 96
    OMV NAS - NAS | Emby Server | LogitechMediaServer
    3x Logitech SqueezeBox & 3x RasPi PiCorePlayer
    Unifi Netzwerk | Sophos XGS Firewall | Agfeo TK | Kentix Security
    Loxone SmartHome

  • Ganz banal: das Thema Masse beachtet? Also arduino und Led Strip müssen gleiche Masse bekommen

    das Einzige was am Ende zählt ist
    dass ihr lebt was ihr liebt und liebt wofür ihr lebt


    Kodi HTPC - W11 | AMD Athlon 3000G | Pioneer A 504R Bj. 96
    OMV NAS - NAS | Emby Server | LogitechMediaServer
    3x Logitech SqueezeBox & 3x RasPi PiCorePlayer
    Unifi Netzwerk | Sophos XGS Firewall | Agfeo TK | Kentix Security
    Loxone SmartHome

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!