[RELEASE] Official XBMC boblight Addon

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
lrusak Offline
Fan
Posts: 384
Joined: Sep 2011
Reputation: 3
Location: Canada
Post: #261
(2012-03-18 08:10)phil65 Wrote:  i think you can, even when using openelec. some openelec addons have a sleep.d folder in their root, the boblightd addon seems to get it too I think ( https://github.com/OpenELEC/OpenELEC.tv/...6d3c9f77cf )
I´m still waitin for a new PVR build, if you don ´t use PVR an OpenELEC version with this change should be available from the official daily builds.
and if that does not work you can still build your own OpenELEC image.

excellent, I'll update my build and see if it is included in the latest one. If not I'll just wait. Thanks for pointing this out

"PPC is too slow, your CPU has no balls to handle HD content." ~ davilla

[Image: watched-clearlogo.jpg]
find quote
lrusak Offline
Fan
Posts: 384
Joined: Sep 2011
Reputation: 3
Location: Canada
Post: #262
(2012-03-19 07:38)lrusak Wrote:  
(2012-03-18 08:10)phil65 Wrote:  i think you can, even when using openelec. some openelec addons have a sleep.d folder in their root, the boblightd addon seems to get it too I think ( https://github.com/OpenELEC/OpenELEC.tv/...6d3c9f77cf )
I´m still waitin for a new PVR build, if you don ´t use PVR an OpenELEC version with this change should be available from the official daily builds.
and if that does not work you can still build your own OpenELEC image.

excellent, I'll update my build and see if it is included in the latest one. If not I'll just wait. Thanks for pointing this out

just updated to latest build "OpenELEC Version: devel-20120318030055-r10162" but it did not seem to solve my problem

"PPC is too slow, your CPU has no balls to handle HD content." ~ davilla

[Image: watched-clearlogo.jpg]
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 7,684
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #263
Please don't go that far off-topic. I understand that build issues and OpenELEC stuff might be related to the addon, but the distance seems more and more to increase.

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #264
sorry Tongue
@Memphiz/Bobo1on1: do you have an idea for my problem? or can i cancel the project "boblightd on fritzbox"? Big Grin
(This post was last modified: 2012-03-19 12:52 by phil65.)
find quote
beta-j Offline
Junior Member
Posts: 19
Joined: Jul 2011
Reputation: 0
Post: #265
So after trying out pretty much every option imaginable I decided to ignore the tutorial completely and work my way from the ground up in order to try and identify the problem.

I am using the simplest possible test setup: [Image: UntitledSketch_bb.jpg]

I simplified (in my view) the Arduino code to the following:
Code:
int red, green, blue;
int redPin =9;
int greenPin =10;
int bluePin =11;

void setup()
{
  Serial.begin(38400);
  int red=255;
  int blue=255;
  int green=255;
}

void loop()
{
if (Serial.available()>=4) {
if(Serial.read() == 0xaa){
red = Serial.read();
green= Serial.read();
blue = Serial.read();
}
}

analogWrite (redPin, red);
analogWrite (greenPin, green);
analogWrite (bluePin, blue);
delay(10); //just to be safe
}

and my boblight.conf now looks like this:

Code:
[global]
interface       127.0.0.1
port            19333

[device]
name            arduino
output          /dev/ttyACM0
channels        3
type            momo
interval        20000
rate            38400
prefix          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  3000000
debug          on

[color]
name            red
rgb             FF0000

[color]
name            green
rgb             00FF00

[color]
name            blue
rgb             0000FF

[light]
name            main
color           red     arduino 1
color           green   arduino 2
color           blue    arduino 3
hscan           0 100
vscan           0 100

The end result is that boblight is now showing some signs of life and seems to be actually working. My only problem is that the red LED does not light up at all for some reason. It's not a hardware issue as I tested it with a direct +5V and it lit up fine. Any ideas what it might be?
find quote
phil65 Offline
Skilled Skinner
Posts: 4,456
Joined: Mar 2009
Reputation: 56
Location: Cologne, Germany
Post: #266
(2012-03-19 15:09)beta-j Wrote:  So after trying out pretty much every option imaginable I decided to ignore the tutorial completely and work my way from the ground up in order to try and identify the problem.

I am using the simplest possible test setup: [Image: UntitledSketch_bb.jpg]

I simplified (in my view) the Arduino code to the following:
Code:
int red, green, blue;
int redPin =9;
int greenPin =10;
int bluePin =11;

void setup()
{
  Serial.begin(38400);
  int red=255;
  int blue=255;
  int green=255;
}

void loop()
{
if (Serial.available()>=4) {
if(Serial.read() == 0xaa){
red = Serial.read();
green= Serial.read();
blue = Serial.read();
}
}

analogWrite (redPin, red);
analogWrite (greenPin, green);
analogWrite (bluePin, blue);
delay(10); //just to be safe
}

and my boblight.conf now looks like this:

Code:
[global]
interface       127.0.0.1
port            19333

[device]
name            arduino
output          /dev/ttyACM0
channels        3
type            momo
interval        20000
rate            38400
prefix          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  3000000
debug          on

[color]
name            red
rgb             FF0000

[color]
name            green
rgb             00FF00

[color]
name            blue
rgb             0000FF

[light]
name            main
color           red     arduino 1
color           green   arduino 2
color           blue    arduino 3
hscan           0 100
vscan           0 100

The end result is that boblight is now showing some signs of life and seems to be actually working. My only problem is that the red LED does not light up at all for some reason. It's not a hardware issue as I tested it with a direct +5V and it lit up fine. Any ideas what it might be?

Does the red LED work on the other channels? Tried a smaller resistor?
I wouldn´t change the arduino code because a) the one from bobo1on1 is proven and b)you probably won´t get support from the devs when using some modified software code Big Grin
(This post was last modified: 2012-03-19 15:19 by phil65.)
find quote
beta-j Offline
Junior Member
Posts: 19
Joined: Jul 2011
Reputation: 0
Post: #267
Quote:Does the red LED work on the other channels? Tried a smaller resistor?
I wouldn´t change the arduino code because a) the one from bobo1on1 is proven and b)you probably won´t get support from the devs when using some modified software code Big Grin

OK...fixed it...turns out it was a dead contact on my breadboard.

I was referring the tutorial posted here: http://hackhappy.org/linux/build-your-ow...-boblight/

for some reason that arduino code and boblight.conf combination is not working for me.

Anyway...everything's working now, so I'm happy...now I just need to scale up to an LED strip and 12V supply and try and make the light change sa bit more responsive.

thanks for your help guys Smile
find quote
gsjosh Offline
Junior Member
Posts: 25
Joined: Jan 2010
Reputation: 0
Post: #268
I'm trying to run the add-on on my Win7 HTPC running Eden.

Code:
22:48:14 T:1836  NOTICE: Starting XBMC, Platform: Windows 7, 64-bit (WoW) Service Pack 1 build 7601. Built on Sep  6 2011 (Git:20110906-5e50c25, compiler 1600)

I have installed boblight 1.3b1 which is also available on Windows and my strands flickered RED GREEN BLUE once after starting, meaning bonlighthd can find the strands.

Now I've tried installing the add-on, which works fine, until it tries to download the library at first run. I get the simple error "Error, failed. script.xbmc.boblight).

I checked the log and tried to install the .dll manually, but same problem.

Code:
22:48:19 T:4860  NOTICE: boblight: Error loading C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.xbmc.boblight\resources\lib\lib​boblight-win32.0.dll - only demo mode.
22:48:26 T:4860  NOTICE: boblight: try to fetch libboblight
22:48:27 T:4860  NOTICE: boblight: http://mirrors.xbmc.org/build-deps/addon-deps/binaries/libboblight\win32\libboblight-win32.0.dll.zip -> C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.xbmc.boblight\resources\lib\lib​boblight-win32.0.dll
22:48:27 T:4860   ERROR: Error Type: <type 'exceptions.TypeError'>
22:48:27 T:4860   ERROR: Error Contents: function takes exactly 1 argument (2 given)
22:48:27 T:4860   ERROR: Traceback (most recent call last):
                                              File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.xbmc.boblight\default.py", line 166, in <module>
                                                tools_downloadLibBoblight()
                                              File "C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.xbmc.boblight\resources\lib\too​ls.py", line 73, in tools_downloadLibBoblight
                                                xbmc.executebuiltin('XBMC.Extract("%s","%s")' % (dest + ".zip", destdir), True)
                                            TypeError: function takes exactly 1 argument (2 given)

What's going wrong here? I know the .zip containing the .dll is there (I downloaded it manually).
(This post was last modified: 2012-03-19 23:57 by gsjosh.)
find quote
schumi2004 Offline
Fan
Posts: 642
Joined: Aug 2011
Reputation: 4
Post: #269
@gsjosh 1.3b1 is incompatible you need to use kimp93's bin. http://forum.xbmc.org/showthread.php?pid...3pid986377

I got it partially working for a friend of mine, it fails on the config now. Arduino is connected to COM4 but when i enter this in boblight.conf it can't be found.
Entering COM4 as output device didn't work, any suggestions?

[Image: watched-clearlogo.jpg]
(This post was last modified: 2012-03-20 00:12 by schumi2004.)
find quote
hotlobster Offline
Senior Member
Posts: 241
Joined: Jan 2009
Reputation: 0
Location: Paris FR
Post: #270
Hi

I've just changed my Atmolight setup with some 2801 adressable strips using standard adalight arduin .pde + boblightd.
Everything works really good so far, and cpu usage for 100 leds is just almost the same as before with my 4 standard rgb strips.

Just a quick question, it seems boblight only handles 8 bit colors. Is it planned in a near future to make it works with 16M colors or at least 32k colors ?
Colors should be more accurate that way.

Regards.
find quote
Post Reply