XBMC Community Forum
[RELEASE] Official XBMC boblight Addon - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Service Add-ons (/forumdisplay.php?fid=152)
+---- Thread: [RELEASE] Official XBMC boblight Addon (/showthread.php?tid=116331)



RE: - smajor - 2012-03-13 11:27

(2012-03-10 12:08)beta-j Wrote:  
bobo1on1 Wrote:The channels in boblight.conf don't match the arduino pins, you should use channels 4, 5 and 6 as shown in the howto.
Also, set hscan to 0 100 since it's the only light you have.

So if i'm understanding correctly - since I have a single RGB LED strip, the number of channels in boblight.conf should be 3 and it should use channels 1,2 and 3 no?

I tried setting it with 6 channels and using 4,5 and 6 as well as 3 channels using 1,2 and 3 but no luck so far.

25 leds are 75 channels, 50 leds are 150 channels and so on
how many leds do You have on that strip?


RE: - phil65 - 2012-03-13 11:48

(2012-03-13 11:27)smajor Wrote:  
(2012-03-10 12:08)beta-j Wrote:  
bobo1on1 Wrote:The channels in boblight.conf don't match the arduino pins, you should use channels 4, 5 and 6 as shown in the howto.
Also, set hscan to 0 100 since it's the only light you have.

So if i'm understanding correctly - since I have a single RGB LED strip, the number of channels in boblight.conf should be 3 and it should use channels 1,2 and 3 no?

I tried setting it with 6 channels and using 4,5 and 6 as well as 3 channels using 1,2 and 3 but no luck so far.

25 leds are 75 channels, 50 leds are 150 channels and so on
how many leds do You have on that strip?

no, wrong. three channels for one strip, not for one led.


RE: - George - 2012-03-13 16:29

(2012-03-13 11:48)phil65 Wrote:  
(2012-03-13 11:27)smajor Wrote:  
(2012-03-10 12:08)beta-j Wrote:  
bobo1on1 Wrote:The channels in boblight.conf don't match the arduino pins, you should use channels 4, 5 and 6 as shown in the howto.
Also, set hscan to 0 100 since it's the only light you have.

So if i'm understanding correctly - since I have a single RGB LED strip, the number of channels in boblight.conf should be 3 and it should use channels 1,2 and 3 no?

I tried setting it with 6 channels and using 4,5 and 6 as well as 3 channels using 1,2 and 3 but no luck so far.

25 leds are 75 channels, 50 leds are 150 channels and so on
how many leds do You have on that strip?

no, wrong. three channels for one strip, not for one led.

No, not wrong. RGB -> Red, Green and Blue. 3 channels for one LED. So 50 LED's are 150 channels. Not that difficult.


RE: - phil65 - 2012-03-13 16:54

(2012-03-13 16:29)George Wrote:  
(2012-03-13 11:48)phil65 Wrote:  
(2012-03-13 11:27)smajor Wrote:  
(2012-03-10 12:08)beta-j Wrote:  
bobo1on1 Wrote:The channels in boblight.conf don't match the arduino pins, you should use channels 4, 5 and 6 as shown in the howto.
Also, set hscan to 0 100 since it's the only light you have.

So if i'm understanding correctly - since I have a single RGB LED strip, the number of channels in boblight.conf should be 3 and it should use channels 1,2 and 3 no?

I tried setting it with 6 channels and using 4,5 and 6 as well as 3 channels using 1,2 and 3 but no luck so far.

25 leds are 75 channels, 50 leds are 150 channels and so on
how many leds do You have on that strip?

no, wrong. three channels for one strip, not for one led.

No, not wrong. RGB -> Red, Green and Blue. 3 channels for one LED. So 50 LED's are 150 channels. Not that difficult.

Believe me. LED strips are several RGB leds arranged in paralle (--> they all send out the same coulours all the time)l, so you only need 3 channels for one strip with several leds.


RE: - George - 2012-03-13 19:47

Quote:Believe me. LED strips are several RGB leds arranged in paralle (--> they all send out the same coulours all the time)l, so you only need 3 channels for one strip with several leds.

Sorry, you're right. I thought you were referring to the channels in the boblight.conf. Confused


RE: [RELEASE] Official XBMC boblight Addon - smajor - 2012-03-13 23:00

So what are we talking about then? Smile I was thinking boblight.conf too Big Grin


RE: [RELEASE] Official XBMC boblight Addon - schumi2004 - 2012-03-13 23:13

I'm posting my question because i noticed something in beta-j's config.
It's about the color section in boblight.conf

I went back to boblight wiki at google code page and noticed this example.

Code:
[color]
name            red
rgb             FF0000

[color]
name            green
rgb             00FF00

[color]
name            blue
rgb             0000FF

[color]
name            yellow
rgb             FFFF00
adjust          0.5
blacklevel      0.1
gamma           2.3

[color]
name            white
rgb             FFFFFF
adjust          0.3
blacklevel      0.7
gamma           1.6

I'm running boblight on OpenELEC using Arduino Uno R3 and the led strands from Adafruit and so far it's working perfect.
Only playing with some color settings to fit my needs.
In the default config shipped in boblight i only saw RED, GREEN and BLUE but when i saw beta-j's post and reading the wiki i noticed YELLOW and WHITE as well.
Can i add these 2 colors to my config or doesn't that make sense and is it only for certain setups? The led strands i'm using only have RED, GREEN and BLUE so i'm guessing it doesn't make sense to add WHITE and YELLOW to it or am i wrong?


RE: [RELEASE] Official XBMC boblight Addon - phil65 - 2012-03-14 00:04

(2012-03-13 23:13)schumi2004 Wrote:  I'm posting my question because i noticed something in beta-j's config.
It's about the color section in boblight.conf

I went back to boblight wiki at google code page and noticed this example.

Code:
[color]
name            red
rgb             FF0000

[color]
name            green
rgb             00FF00

[color]
name            blue
rgb             0000FF

[color]
name            yellow
rgb             FFFF00
adjust          0.5
blacklevel      0.1
gamma           2.3

[color]
name            white
rgb             FFFFFF
adjust          0.3
blacklevel      0.7
gamma           1.6

I'm running boblight on OpenELEC using Arduino Uno R3 and the led strands from Adafruit and so far it's working perfect.
Only playing with some color settings to fit my needs.
In the default config shipped in boblight i only saw RED, GREEN and BLUE but when i saw beta-j's post and reading the wiki i noticed YELLOW and WHITE as well.
Can i add these 2 colors to my config or doesn't that make sense and is it only for certain setups? The led strands i'm using only have RED, GREEN and BLUE so i'm guessing it doesn't make sense to add WHITE and YELLOW to it or am i wrong?
white and yellow aren´t used in the lights section so they do not have any effect. they only make sense if you have yellow leds for example if I understand it correctly.
btw, to get the colors right i added an adjust=0.65 for blue. colors fit very well now. don´tknow if that counts for blue leds in general.


RE: - beta-j - 2012-03-14 13:14

(2012-03-13 00:51)phil65 Wrote:  which software did you take for your arduino?

here it is:

Code:
void setup()
{
  Serial.begin(38400);
}

  //arduno
  uint8_t outputs[] = {9, 10, 11};

#define NROUTPUTS (sizeof(outputs))
uint8_t values[NROUTPUTS];

void loop()
{
  WaitForPrefix();

  for (uint8_t i = 0; i < NROUTPUTS; i++)
  {
    while(!Serial.available());
    values[i] = Serial.read();
  }

  for (uint8_t i = 0; i < NROUTPUTS; i++)
    analogWrite(outputs[i], values[i]);
}

//boblightd needs to send 0×55 0xAA before sending the channel bytes
void WaitForPrefix()
{
  uint8_t first=0, second=0;
  while (second !=0x55 || first !=0xAA);
  {
    while (!Serial.available());
    second = first;
    first = Serial.read();
  }
}

(2012-03-13 11:48)phil65 Wrote:  
(2012-03-13 11:27)smajor Wrote:  
(2012-03-10 12:08)beta-j Wrote:  So if i'm understanding correctly - since I have a single RGB LED strip, the number of channels in boblight.conf should be 3 and it should use channels 1,2 and 3 no?

I tried setting it with 6 channels and using 4,5 and 6 as well as 3 channels using 1,2 and 3 but no luck so far.

25 leds are 75 channels, 50 leds are 150 channels and so on
how many leds do You have on that strip?

no, wrong. three channels for one strip, not for one led.


We need to distinguish between the different kinds of LED strips that are available. The one I'm using is simply a string of some 25 LEDs connected in parallel - i.e. the entire strip only has 4 pins (R,G,B and GND).

However i know there are other LED strips which allow for addressing of each LED individually (not sure how these work though).


RE: [RELEASE] Official XBMC boblight Addon - smajor - 2012-03-14 14:13

(2012-03-13 23:13)schumi2004 Wrote:  I'm running boblight on OpenELEC using Arduino Uno R3 and the led strands from Adafruit and so far it's working perfect.

Have You seen this?
http://www.raspberrypi.org/archives/810
Do You think adalight would work with this too.
$25 fullhd player would be nice. 8)


RE: [RELEASE] Official XBMC boblight Addon - schumi2004 - 2012-03-14 15:00

(2012-03-14 00:04)phil65 Wrote:  -cut-
btw, to get the colors right i added an adjust=0.65 for blue. colors fit very well now. don´tknow if that counts for blue leds in general.
Thanks. I'm going to try this and see if it's betetr as my current config.

Currently i have:
[color]
name red
rgb CC0000
[color]
name green
rgb 00FF00
[color]
name blue
rgb 0000DD

(2012-03-14 14:13)smajor Wrote:  
(2012-03-13 23:13)schumi2004 Wrote:  I'm running boblight on OpenELEC using Arduino Uno R3 and the led strands from Adafruit and so far it's working perfect.

Have You seen this?
http://www.raspberrypi.org/archives/810
Do You think adalight would work with this too.
$25 fullhd player would be nice. 8)
I have seen it but i doubt if it will be powerful enough. XBMC will probably work but i don't know what to expect from the performance it delivers. From what i know Boblight itself isn't that resource heavy so if your lucky it will work.


RE: [RELEASE] Official XBMC boblight Addon - Memphiz - 2012-03-14 17:30

Won't work on rbpi for now because the ctypes module for python is not compiling atm (same problem like for ios devices). And if someone get it compiled in the future its unlikley that it will work on that embedded boxes (maybe a bit - but not the full fps).


RE: [RELEASE] Official XBMC boblight Addon - POst05 - 2012-03-14 23:58

Can i use boblight for music? Why isn't projectm or mildrop supported?


[RELEASE] Official XBMC boblight Addon - Memphiz - 2012-03-15 00:11

because its not possible atm. What do you think? *narf*


RE: [RELEASE] Official XBMC boblight Addon - POst05 - 2012-03-15 00:27

Sorry for this stupid question, but i couldn't find a statement why it isn't supported. I thought i would be easy Sad