[RELEASE] Official XBMC boblight Addon

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
beta-j Offline
Junior Member
Posts: 19
Joined: Jul 2011
Reputation: 0
Post: #221
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.
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #222
(2012-03-04 13:58)beta-j Wrote:  [global]
interface 127.0.0.1
port 19333

[device]
Here it is - I just copied it off the tutorial page.
Quote:name arduino
output /dev/ttyACM0
channels 6
type momo
interval 20000
rate 38400
prefix 55 AA

#arduino bootloader runs when opening the serial port for the first time
#delay transmission one second after opening so we don.t send shit to the bootloader
delayafteropen 1000000
#debug on

[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

[light]
name main
color red arduino 5
color green arduino 6
color blue arduino 4
hscan 0 50
vscan 0 100

if your problem is software related and if you aren´t experienced with electronics I´d suggest to use some ULN2003A, then you do not have to solder that much.
find quote
beta-j Offline
Junior Member
Posts: 19
Joined: Jul 2011
Reputation: 0
Post: #223
(2012-03-12 07:53)phil65 Wrote:  if your problem is software related and if you aren´t experienced with electronics I´d suggest to use some ULN2003A, then you do not have to solder that much.


Actually I'm an electrical engineer - so I'm not really worried about the electronics - and in fact I'm already using a ULN2003A - it makes it that much easier to put everything together on a veroboard.

For the time being however I've hooked up a single RGB LED directly to pins 9,10 and 11 of the Arduino to eliminate any possible points of failure until I get everything working.
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #224
(2012-03-12 10:56)beta-j Wrote:  
(2012-03-12 07:53)phil65 Wrote:  if your problem is software related and if you aren´t experienced with electronics I´d suggest to use some ULN2003A, then you do not have to solder that much.


Actually I'm an electrical engineer - so I'm not really worried about the electronics - and in fact I'm already using a ULN2003A - it makes it that much easier to put everything together on a veroboard.

For the time being however I've hooked up a single RGB LED directly to pins 9,10 and 11 of the Arduino to eliminate any possible points of failure until I get everything working.

which software did you take for your arduino?
enabling debug mode in boblight.conf could also help to see what´s going on...
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #225
i´m tryin to run boblightd on my fritzbox router now with freetz installed.
if i run it with a config file which works on ubuntu it says that it cannot find any devices, colors and lights... any ideas?
here´s the output. using r 417.
could it have to do with the filesystem (squashfs) the router is using?

Code:
root@fritz:/var/tmp/boblight# boblightd
(InitLog)                       start of log /mod/root/.boblight/boblightd.log
(PrintFlags)                    starting boblightd
(CConfig::LoadConfigFromFile)   opening /etc/boblight.conf
(CConfig::CheckConfig)          checking config lines
(CConfig::CheckDeviceConfig)    ERROR: /etc/boblight.conf no devices defined
(CConfig::CheckColorConfig)     ERROR: /etc/boblight.conf no colors defined
(CConfig::CheckLightConfig)     ERROR: /etc/boblight.conf no lights defined

and here´s some info about the compiled binaries.

Code:
> file packages/target-mipsel_uClibc-0.9.31.1/boblight-417/root/usr/bin/boblightd
packages/target-mipsel_uClibc-0.9.31.1/boblight-417/root/usr/bin/boblightd: ELF 32-bit LSB executable, MIPS, MIPS32 version 1 (SYSV), dynamically linked (uses shared libs), with unknown capability 0xf41 = 0x756e6700, with unknown capability 0x70100 = 0x3040000, stripped

root@fritz:/var/media/ftp/uStor01/archiv# ldd ./boblightd
        libdl.so.0 => /lib/libdl.so.0 (0x2aabe000)
        libm.so.0 => /lib/libm.so.0 (0x2aad1000)
        librt.so.0 => /lib/librt.so.0 (0x2aaf9000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x2ab0a000)
        libuClibc++.so.0 => /usr/lib/freetz/libuClibc++.so.0 (0x2ab2d000)
        libc.so.0 => /lib/libc.so.0 (0x2ab61000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2abdc000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x2aaa8000)

root@fritz:/var/media/ftp/uStor01/archiv# ldd ./boblight-constant
        libdl.so.0 => /lib/libdl.so.0 (0x2aabe000)
        libm.so.0 => /lib/libm.so.0 (0x2aad1000)
        librt.so.0 => /lib/librt.so.0 (0x2aaf9000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x2ab0a000)
        libuClibc++.so.0 => /usr/lib/freetz/libuClibc++.so.0 (0x2ab2d000)
        libc.so.0 => /lib/libc.so.0 (0x2ab61000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2abdc000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x2aaa8000)

root@fritz:/var/media/ftp/uStor01/archiv# ./boblightd --help
Usage: boblightd [OPTION]

  options:

ERROR: Unknown option -
  -c  set the config file, default is /etc/boblight.conf
  -f  fork
(This post was last modified: 2012-03-13 10:13 by phil65.)
find quote
smajor Offline
Junior Member
Posts: 28
Joined: Feb 2012
Reputation: 1
Post: #226
(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?

Adalight with Lightpack calculator (with boblight support) http://sanya.tarhelyszolgaltato.eu/
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #227
(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.
find quote
George Offline
Senior Member
Posts: 109
Joined: Feb 2010
Reputation: 0
Location: The Netherlands
Post: #228
(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.
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #229
(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.
(This post was last modified: 2012-03-13 17:01 by phil65.)
find quote
George Offline
Senior Member
Posts: 109
Joined: Feb 2010
Reputation: 0
Location: The Netherlands
Post: #230
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
find quote
Post Reply