Windows - HOW-TO setup Boblight for Windows and Boblight XBMC

  Thread Rating:
  • 6 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
MrHenky Offline
Member
Posts: 50
Joined: Aug 2008
Reputation: 0
Location: Ritterhude, Germany
Post: #31
(2013-06-03 19:31)pseudoheld Wrote:  I can't get boblight to work!
im running on windows 8 with 50 ws2801 hooked up to an arduino uno.
when i start boblight the colorswirl goes of and it says setup succeeded but after that i can't get it working. neither via xbmc plugin or via bobdroid.

here is my boblight.conf
i set the output to com3 (which is correct)
is the channels and type correct?

Code:
#[global]
interface    127.0.0.1
port        19333

[device]
name        ambilight
output     /dev/com3
channels    150
type        atmo
interval    10000
prefix        FF
rate        115200

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

[color]
name        green
rgb            00FF00
gamma        0.86
adjust        0.96
blacklevel    0.0

[color]
name        blue
rgb            0000FF
gamma        0.95
adjust        0.8
blacklevel    0.0

also here is the output of the boblight window with me starting xbmc (xbmc saying boblight connected) and then starting a movie...

any ideas whats wrongConfused

Your prefix is wrong. This should do it, I guess: 416461003164

Also, you should configure 150 LEDs, not only 50. (Red, Green, Blue)

Use this calculator:
http://sanya.tarhelyszolgaltato.eu/

And read here:
http://forum.xbmc.org/showthread.php?tid=116331&pid=1059881#pid1059881
(This post was last modified: 2013-06-03 19:39 by MrHenky.)
find quote
pseudoheld Offline
Senior Member
Posts: 109
Joined: Dec 2008
Reputation: 0
Post: #32
(2013-06-03 19:36)MrHenky Wrote:  Your prefix is wrong. This should do it, I guess: 416461003164

Also, you should configure 150 LEDs, not only 50. (Red, Green, Blue)

Use this calculator:
http://sanya.tarhelyszolgaltato.eu/

And read here:
http://forum.xbmc.org/showthread.php?tid=116331&pid=1059881#pid1059881

ok changed the prefix.
i used the exact calc you suggested but why do i have to configure 150 leds? i have only 50 hooked up. is each color one LED?

here is my settings on the calc:
http://sanya.tarhelyszolgaltato.eu/index...=1&comb=40
(This post was last modified: 2013-06-03 19:50 by pseudoheld.)
find quote
TeKo Offline
Posting Freak
Posts: 964
Joined: Dec 2011
Reputation: 11
Post: #33
(2013-06-03 19:47)pseudoheld Wrote:  
(2013-06-03 19:36)MrHenky Wrote:  Your prefix is wrong. This should do it, I guess: 416461003164

Also, you should configure 150 LEDs, not only 50. (Red, Green, Blue)

Use this calculator:
http://sanya.tarhelyszolgaltato.eu/

And read here:
http://forum.xbmc.org/showthread.php?tid=116331&pid=1059881#pid1059881

ok changed the prefix.
i used the exact calc you suggested but why do i have to configure 150 leds? i have only 50 hooked up. is each color one LED?

here is the setting on the calc:
http://sanya.tarhelyszolgaltato.eu/index...=1&comb=40

You dont, he is wrong.

You set 150 channels and 50 LEDs but you did that in your conf.

The prefix depends on the software you use on the arduino.

41 64 61 00 31 64 is the right prefix for a 50 LED setup running the official Adalight software.
(This post was last modified: 2013-06-03 19:54 by TeKo.)
find quote
pseudoheld Offline
Senior Member
Posts: 109
Joined: Dec 2008
Reputation: 0
Post: #34
(2013-06-03 19:54)TeKo Wrote:  You dont, he is wrong.

You set 150 channels and 50 LEDs but you did that in your conf.

The prefix depends on the software you use on the arduino.

41 64 61 00 31 64 is the right prefix for a 50 LED setup running the official Adalight software.

so then my conf is correct?
then i don't know why it wont run...
anything else wrong with my conf??

Code:
#[global]
interface    127.0.0.1
port        19333

[device]
name        ambilight
output     /dev/com3
channels    150
type        atmo
interval    10000
prefix        41 64 61 00 31 64
rate        115200

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

[color]
name        green
rgb            00FF00
gamma        0.86
adjust        0.96
blacklevel    0.0

[color]
name        blue
rgb            0000FF
gamma        0.95
adjust        0.8
blacklevel    0.0

[light]
name            50
color           red     ambilight 148
color           green   ambilight 149
color           blue    ambilight 150
hscan           0 4.17
vscan           92.86 100

[light]
name            49
color           red     ambilight 145
color           green   ambilight 146
color           blue    ambilight 147
hscan           0 4.17
vscan           85.71 92.86

[light]
name            48
color           red     ambilight 142
color           green   ambilight 143
color           blue    ambilight 144
hscan           0 4.17
vscan           78.57 85.71

[light]
name            47
color           red     ambilight 139
color           green   ambilight 140
color           blue    ambilight 141
hscan           0 4.17
vscan           71.43 78.57

[light]
name            46
color           red     ambilight 136
color           green   ambilight 137
color           blue    ambilight 138
hscan           0 4.17
vscan           64.29 71.43

[light]
name            45
color           red     ambilight 133
color           green   ambilight 134
color           blue    ambilight 135
hscan           0 4.17
vscan           57.14 64.29

[light]
name            44
color           red     ambilight 130
color           green   ambilight 131
color           blue    ambilight 132
hscan           0 4.17
vscan           50 57.14

[light]
name            43
color           red     ambilight 127
color           green   ambilight 128
color           blue    ambilight 129
hscan           0 4.17
vscan           42.86 50

[light]
name            42
color           red     ambilight 124
color           green   ambilight 125
color           blue    ambilight 126
hscan           0 4.17
vscan           35.72 42.86

[light]
name            41
color           red     ambilight 121
color           green   ambilight 122
color           blue    ambilight 123
hscan           0 4.17
vscan           28.57 35.72

[light]
name            40
color           red     ambilight 118
color           green   ambilight 119
color           blue    ambilight 120
hscan           0 4.17
vscan           21.43 28.57

[light]
name            39
color           red     ambilight 115
color           green   ambilight 116
color           blue    ambilight 117
hscan           0 4.17
vscan           14.29 21.43

[light]
name            38
color           red     ambilight 112
color           green   ambilight 113
color           blue    ambilight 114
hscan           0 4.17
vscan           7.15 14.29

[light]
name            37
color           red     ambilight 109
color           green   ambilight 110
color           blue    ambilight 111
hscan           0 4.17
vscan           0 7.14

[light]
name            36
color           red     ambilight 106
color           green   ambilight 107
color           blue    ambilight 108
hscan           4.17 8.33
vscan           0 7.14

[light]
name            35
color           red     ambilight 103
color           green   ambilight 104
color           blue    ambilight 105
hscan           8.33 12.5
vscan           0 7.14

[light]
name            34
color           red     ambilight 100
color           green   ambilight 101
color           blue    ambilight 102
hscan           12.5 16.67
vscan           0 7.14

[light]
name            33
color           red     ambilight 97
color           green   ambilight 98
color           blue    ambilight 99
hscan           16.67 20.83
vscan           0 7.14

[light]
name            32
color           red     ambilight 94
color           green   ambilight 95
color           blue    ambilight 96
hscan           20.83 25
vscan           0 7.14

[light]
name            31
color           red     ambilight 91
color           green   ambilight 92
color           blue    ambilight 93
hscan           25 29.17
vscan           0 7.14

[light]
name            30
color           red     ambilight 88
color           green   ambilight 89
color           blue    ambilight 90
hscan           29.17 33.33
vscan           0 7.14

[light]
name            29
color           red     ambilight 85
color           green   ambilight 86
color           blue    ambilight 87
hscan           33.33 37.5
vscan           0 7.14

[light]
name            28
color           red     ambilight 82
color           green   ambilight 83
color           blue    ambilight 84
hscan           37.5 41.67
vscan           0 7.14

[light]
name            27
color           red     ambilight 79
color           green   ambilight 80
color           blue    ambilight 81
hscan           41.67 45.83
vscan           0 7.14

[light]
name            26
color           red     ambilight 76
color           green   ambilight 77
color           blue    ambilight 78
hscan           45.83 50
vscan           0 7.14

[light]
name            25
color           red     ambilight 73
color           green   ambilight 74
color           blue    ambilight 75
hscan           50 54.17
vscan           0 7.14

[light]
name            24
color           red     ambilight 70
color           green   ambilight 71
color           blue    ambilight 72
hscan           54.17 58.33
vscan           0 7.14

[light]
name            23
color           red     ambilight 67
color           green   ambilight 68
color           blue    ambilight 69
hscan           58.33 62.5
vscan           0 7.14

[light]
name            22
color           red     ambilight 64
color           green   ambilight 65
color           blue    ambilight 66
hscan           62.5 66.67
vscan           0 7.14

[light]
name            21
color           red     ambilight 61
color           green   ambilight 62
color           blue    ambilight 63
hscan           66.67 70.83
vscan           0 7.14

[light]
name            20
color           red     ambilight 58
color           green   ambilight 59
color           blue    ambilight 60
hscan           70.83 75
vscan           0 7.14

[light]
name            19
color           red     ambilight 55
color           green   ambilight 56
color           blue    ambilight 57
hscan           75 79.17
vscan           0 7.14

[light]
name            18
color           red     ambilight 52
color           green   ambilight 53
color           blue    ambilight 54
hscan           79.17 83.33
vscan           0 7.14

[light]
name            17
color           red     ambilight 49
color           green   ambilight 50
color           blue    ambilight 51
hscan           83.33 87.5
vscan           0 7.14

[light]
name            16
color           red     ambilight 46
color           green   ambilight 47
color           blue    ambilight 48
hscan           87.5 91.67
vscan           0 7.14

[light]
name            15
color           red     ambilight 43
color           green   ambilight 44
color           blue    ambilight 45
hscan           91.67 95.83
vscan           0 7.14

[light]
name            14
color           red     ambilight 40
color           green   ambilight 41
color           blue    ambilight 42
hscan           95.83 100
vscan           0 7.14

[light]
name            13
color           red     ambilight 37
color           green   ambilight 38
color           blue    ambilight 39
hscan           95.83 100
vscan           7.14 14.29

[light]
name            12
color           red     ambilight 34
color           green   ambilight 35
color           blue    ambilight 36
hscan           95.83 100
vscan           14.29 21.43

[light]
name            11
color           red     ambilight 31
color           green   ambilight 32
color           blue    ambilight 33
hscan           95.83 100
vscan           21.43 28.57

[light]
name            10
color           red     ambilight 28
color           green   ambilight 29
color           blue    ambilight 30
hscan           95.83 100
vscan           28.57 35.71

[light]
name            9
color           red     ambilight 25
color           green   ambilight 26
color           blue    ambilight 27
hscan           95.83 100
vscan           35.71 42.86

[light]
name            8
color           red     ambilight 22
color           green   ambilight 23
color           blue    ambilight 24
hscan           95.83 100
vscan           42.86 50

[light]
name            7
color           red     ambilight 19
color           green   ambilight 20
color           blue    ambilight 21
hscan           95.83 100
vscan           50 57.14

[light]
name            6
color           red     ambilight 16
color           green   ambilight 17
color           blue    ambilight 18
hscan           95.83 100
vscan           57.14 64.28

[light]
name            5
color           red     ambilight 13
color           green   ambilight 14
color           blue    ambilight 15
hscan           95.83 100
vscan           64.28 71.43

[light]
name            4
color           red     ambilight 10
color           green   ambilight 11
color           blue    ambilight 12
hscan           95.83 100
vscan           71.43 78.57

[light]
name            3
color           red     ambilight 7
color           green   ambilight 8
color           blue    ambilight 9
hscan           95.83 100
vscan           78.57 85.71

[light]
name            2
color           red     ambilight 4
color           green   ambilight 5
color           blue    ambilight 6
hscan           95.83 100
vscan           85.71 92.85

[light]
name            1
color           red     ambilight 1
color           green   ambilight 2
color           blue    ambilight 3
hscan           95.83 100
vscan           92.85 100
find quote
TeKo Offline
Posting Freak
Posts: 964
Joined: Dec 2011
Reputation: 11
Post: #35
Code:
[global]
port      19333

[device]
name            ambilight
type            momo
output          /dev/com3
channels        150
prefix            41 64 61 00 31 64
interval        20000
rate            115200
debug           off
delayafteropen    1000000

If you are using adalight try this.
find quote
pseudoheld Offline
Senior Member
Posts: 109
Joined: Dec 2008
Reputation: 0
Post: #36
(2013-06-03 21:32)TeKo Wrote:  
Code:
[global]
port      19333

[device]
name            ambilight
type            momo
output          /dev/com3
channels        150
prefix            41 64 61 00 31 64
interval        20000
rate            115200
debug           off
delayafteropen    1000000

If you are using adalight try this.

THANKS!!! ITS WORKING Big Grin
find quote
TeKo Offline
Posting Freak
Posts: 964
Joined: Dec 2011
Reputation: 11
Post: #37
New boblight version is up.
find quote
ian804 Offline
Junior Member
Posts: 6
Joined: May 2012
Reputation: 0
Location: Doncaster, UK
Post: #38
I just want to thank you for this.

I've had my setup going for about 4-5 months now and used both Prismatik and the Adalight version to control the LED's, and this seems to have virtually no CPU footprint compared to the other two. It may be how I set mine up but Prismatik seemed to eat about 20-25% of my CPU (AMD A10-5700) and create an ever increasing memory footprint (up to 2gb before flushing and starting again). Adalight was better but still saw an increase in CPU and memory usage.

I looked into boblight but was a bit unsure as everything that I saw suggested it wasn't able to natively run in Windows. So, again, thanks for putting this and making it so simple that I could follow it without any problems!
find quote
illiac4 Offline
Fan
Posts: 531
Joined: May 2009
Reputation: 3
Post: #39
Hi here is a little mod to start boblight with xbmc only and close it after you will close XBMC. It will also hide the cmd screen.

So the modified .bat file will look similar to:
Code:
MODE COM8:115200,N,8,1 >NUL
clear

tasklist /FI "IMAGENAME eq boblightd.exe" 2>NUL | find /I /N "boblightd.exe">NUL
if "%ERRORLEVEL%"=="0" goto running

C:\boblightd\boblightd.exe -c c:\boblightd\boblight.conf -f
ping 1.1.1.1 -n 1 -w 3000 > nul
"C:\Program Files (x86)\XBMC\XBMC.exe" -p
taskkill /f /im boblightd.exe

Also create a file called XBMC.vbs in the same directory with content:
Code:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "start.bat", 0

Now run the XBMC.vbs to start XBMC. You can of course make a shortcut to XBMC.vbs on desktop and if you want change an icon so it will have an icon from XBMC.
(This post was last modified: 2013-06-25 08:22 by illiac4.)
find quote
TeKo Offline
Posting Freak
Posts: 964
Joined: Dec 2011
Reputation: 11
Post: #40
Nice but I dont really see why I should close boblight with XBMC.

Just have it running all the time.
find quote
wolfgr Offline
Junior Member
Posts: 41
Joined: Mar 2012
Reputation: 0
Post: #41
(2013-06-25 16:23)TeKo Wrote:  Nice but I dont really see why I should close boblight with XBMC.

Just have it running all the time.

i use ServiceEX so i can start boblight with windows and keep it running no matter what.Some times when using boblight with my enigma box or android app ,it crashes so ServiseEX run it again and keep it alive.
find quote
TeKo Offline
Posting Freak
Posts: 964
Joined: Dec 2011
Reputation: 11
Post: #42
(2013-07-03 23:56)wolfgr Wrote:  
(2013-06-25 16:23)TeKo Wrote:  Nice but I dont really see why I should close boblight with XBMC.

Just have it running all the time.

i use ServiceEX so i can start boblight with windows and keep it running no matter what.Some times when using boblight with my enigma box or android app ,it crashes so ServiseEX run it again and keep it alive.

With Win 7 / 8 (dont know if Vista or even XP) you can do that without additional software.
find quote
wolfgr Offline
Junior Member
Posts: 41
Joined: Mar 2012
Reputation: 0
Post: #43
really?....i am a noob ,do u know any guide how to do it in win7?
find quote
TeKo Offline
Posting Freak
Posts: 964
Joined: Dec 2011
Reputation: 11
Post: #44
(2013-07-05 14:42)wolfgr Wrote:  really?....i am a noob ,do u know any guide how to do it in win7?

I dont know the exact steps right now but I can check when Im home.

http://windows.microsoft.com/en-us/windo...ule-a-task
(This post was last modified: 2013-07-06 01:25 by TeKo.)
find quote
BAWLSOUT Offline
Junior Member
Posts: 3
Joined: Jul 2013
Reputation: 0
Post: #45
I have a few questions, on your OP you gave a link to the "LEDStream for SM16716 LEDs". I ordered the SM16716's from ebay the other day, this is just code to test the lights correct?

I noticed people had issues with the name and type fields in the conf file, do you have suggestions for what I should use for the sm16716 leds?

Thanks, so excited to see this project in action.
find quote
Post Reply