IMPORTANT SHIPPING DEADLINE INFORMATION - New Year's Eve and New Year's day - please read before placing your order!

Atmoduino - Ambilight for the masses
Moderators: adafruit_support_bill, adafruit

Re: Atmoduino - Ambilight for the masses

by F0x123 on Fri Jul 06, 2012 6:58 pm

well, so I think now the pde file is working.
I have 50 leds, firts one left bottom corner. so I have to change the channels right? do I need 50 zones (top zones 24, left and right 13)? and if so, is zone 37 channel 0?

what are right settings for using this setup with xbmc 11 and win7?

please help me.
F0x123
 
Posts: 10
Joined: Sun May 06, 2012 7:24 am

Re: Atmoduino - Ambilight for the masses

by F0x123 on Sat Jul 07, 2012 8:52 pm

nobody there to help me? I fixed the zones and switched the wrong colors in the ino file. now all channels and colors are correct, but I need to turn on use fullscreen window rather than true fullscreen in xbmc. therefore atmowin works but I got tearing.

Is there any fix for this?
what is meant with GDI live mode?
Is there any plugin I can use for my setup and xbmc?

I am thankfull for every hint.
F0x123
 
Posts: 10
Joined: Sun May 06, 2012 7:24 am

Re: Atmoduino - Ambilight for the masses

by ventrax on Mon Jul 09, 2012 4:09 am

Thanks for this.

I've been using the original AtmoWin for several years now together with Carsten Pressers original AtmoLight. I've been using this with XMBC and Eventghost with great success.

I've been looking at adalight to expand my channels to more than 4 for a long time now, but have been wanting to use the atmowin software instead of adallight. In my experience the Atmowin software is the software that uses least CPU for processing. (Just remember to not use "Enable Desktop Composition" under "System Properties" -> "Performance Options")

This project is exactly what I've been looking for.

I'll give this a go and let you know how it goes.
ventrax
 
Posts: 3
Joined: Thu Mar 01, 2012 8:12 am

Re: Atmoduino - Ambilight for the masses

by scorpie on Mon Jul 09, 2012 9:56 am

@F0x123

it is not working with xbmc, for xbmc you need boblight and linux. If you don't want to use linux, give mediaportal a try. There is a plugin for it to reduce cpu usage.

To get rid of the stuttering u should use true fullscreen instead of fullscreen window, but then the screen capture function of atmowin is not working anymore and you should disable sync playback to video, too.

About the settings - have you read one of my previous posts.

If you still need help, just let me know.

scorpie
scorpie
 
Posts: 54
Joined: Fri Apr 20, 2012 4:35 pm

Re: Atmoduino - Ambilight for the masses

by F0x123 on Mon Jul 09, 2012 12:17 pm

ventrax wrote:Thanks for this.

I've been using the original AtmoWin for several years now together with Carsten Pressers original AtmoLight. I've been using this with XMBC and Eventghost with great success.


So you use the AtmoWin Software with XBMC without any problems? Is Carsten Pressers Atmolight a plugin for XBMC?

I've been looking at adalight to expand my channels to more than 4 for a long time now, but have been wanting to use the atmowin software instead of adallight. In my experience the Atmowin software is the software that uses least CPU for processing. (Just remember to not use "Enable Desktop Composition" under "System Properties" -> "Performance Options")

This project is exactly what I've been looking for.

I'll give this a go and let you know how it goes.


Where do I find this option? In AtmoWin? XBMC? Atmolight? Or my graphic card OS Settings?
F0x123
 
Posts: 10
Joined: Sun May 06, 2012 7:24 am

Re: Atmoduino - Ambilight for the masses

by F0x123 on Mon Jul 09, 2012 12:27 pm

scorpie wrote:@F0x123

it is not working with xbmc, for xbmc you need boblight and linux. If you don't want to use linux, give mediaportal a try. There is a plugin for it to reduce cpu usage.


what is not working? atmoduino? Like I said, I fixed the colours in the ino file and setup the correct positions of each light. That is working nicely. Just tearing is annoying me.

To get rid of the stuttering u should use true fullscreen instead of fullscreen window, but then the screen capture function of atmowin is not working anymore and you should disable sync playback to video, too.


Yes I know that with true fullscreen no tearing will happen, but than all LED are off because no screen capturing is possible. I think I need a plugin like boblight or atmowinx has to use a different capturing mode. That is why I asked what is meant with "GDI live mode"? Is this just the "live" setting instead of a fixed colour in atmowinx software?

Does the directshow filter of atmowinx help in any way? there is a readme how to install and register this filter e.g. for VLC.

About the settings - have you read one of my previous posts.

If you still need help, just let me know.

scorpie


There is a boblight for xbmc and windows but it also causes micro stuttering in HD movies while DXVA is active and I need DXVA to be able to play HD content. :(
F0x123
 
Posts: 10
Joined: Sun May 06, 2012 7:24 am

Re: Atmoduino - Ambilight for the masses

by scorpie on Mon Jul 09, 2012 2:19 pm

I always had little stuttering with xbmc on win 7, and becaus of that I switched back to mediaportal and windows xp.
you are able to use other codec, like lav and I don't have micro juddering. even with boblight you should have the same problems.

In my opinion there are some possibilities for you

1. xbmc with windows and fullscreen windows - juddering and tearing
2. xbmc with windows and true fullscreen - no or just a bit juddering and tearing, but no ambilight, atmolight ot whatever you will call it
3. xbmc with linux and boblight - there is a server/client solution, but that's all I know
4. mediaportal and xp (only 32bit is supported) - not juddering no tearing, at least it works for me.

That is why I asked what is meant with "GDI live mode"? Is this just the "live" setting instead of a fixed colour in atmowinx software?

Does the directshow filter of atmowinx help in any way? there is a readme how to install and register this filter e.g. for VLC.


Sorry, can't help with this.
scorpie
scorpie
 
Posts: 54
Joined: Fri Apr 20, 2012 4:35 pm

Re: Atmoduino - Ambilight for the masses

by ajstrande on Mon Jul 09, 2012 5:36 pm

Carsten Pressers Atmolight is just a hardware driver for lights just like the arduino. They both are now working with the atmowin software.

To be able to run it with XMBC on Windows you just have to use the option in XBMC to use fullscreen window instead of true fullscreen.
ajstrande
 
Posts: 6
Joined: Tue Nov 15, 2011 10:47 am

Re: Atmoduino - Ambilight for the masses

by Waitwhat on Sat Jul 14, 2012 3:45 pm

I've been trying to follow along the this thread trying to get my ws2801 to work with the software to no avail. I've been trying to get this to run for awhile now
I tried different fastSPI_LED file and the arduino code and nothing...

Could someone post the files they used to get it to work? (like the SPI files, and the arduino code)

Does the IDE version to upload to arduino matter?

Also, I'm a bit of a noob at this.
Waitwhat
 
Posts: 2
Joined: Sat Jul 14, 2012 3:35 pm

Re: Atmoduino - Ambilight for the masses

by scorpie on Tue Jul 17, 2012 5:11 pm

take the fast spi from this post. it's working with IDE 1.0

viewtopic.php?f=25&t=27746&start=15#p144193
scorpie
 
Posts: 54
Joined: Fri Apr 20, 2012 4:35 pm

Re: Atmoduino - Ambilight for the masses

by Waitwhat on Tue Jul 17, 2012 9:29 pm

I'm using IDE 1.01 will this affect anything?

Could you point me to the arduino code you used?

Thanks for the help.
Waitwhat
 
Posts: 2
Joined: Sat Jul 14, 2012 3:35 pm

Re: Atmoduino - Ambilight for the masses

by scorpie on Thu Jul 19, 2012 3:58 pm

Download this

http://depositfiles.com/files/43mo30avr

It is the IDE 1.0 with the fast spi and atmoduino sketchbook
scorpie
 
Posts: 54
Joined: Fri Apr 20, 2012 4:35 pm

Atmoduino - Ambilight for the masses

by zwickl on Sat Jul 28, 2012 9:21 pm

Hello there,

my Setup is the following:

Hardware:
- 50 LED Strip with LPD6803 (supported by FastSPI)
- Arduino Duemilanove ATMega328
- Mac

So I tried a lot of possible solutions to get the LED's working.
Wirering is fine so far, used Pins 11 & 13 - got it from the Adafruit LPD6803 sheet,
Image

Only *.pde i got working so far, is the official strandtest.pde from adafruit
(https://github.com/adafruit/LPD6803-RGB-Pixels)
This one had the Rainbow and Blinking effect - but in totally false colors.

So via google i stumbled on your project and am hoping to get my own 50 channel Ambilight System with the help of boblightd and xbmc working. What changes would I have to make to your Atmoduino and the boblightd config to get them to communicating and to get rid of the wrong colors ?

Thank you in advance.

Christian
zwickl
 
Posts: 3
Joined: Sat Jul 28, 2012 9:13 pm

Re: Atmoduino - Ambilight for the masses

by scorpie on Mon Jul 30, 2012 11:44 am

@zwickl,

könnt ich hier in deutsch schreiben?

Sorry I'm not common with boblight, can't help here.

But maybe this is working for the wrong colors

1. try playing with the red values, maybe you have to change the the position of the b, g, and r like

// Sometimes chipsets wire in a backwards sort of way
struct CRGB { unsigned char b; unsigned char r; unsigned char g; };
struct CRGB { unsigned char b; unsigned char g; unsigned char r; };
struct CRGB { unsigned char g; unsigned char b; unsigned char r; };
struct CRGB { unsigned char g; unsigned char r; unsigned char b; };
struct CRGB { unsigned char r; unsigned char b; unsigned char g; };
struct CRGB { unsigned char r; unsigned char g; unsigned char b; };
struct CRGB *leds;


this are all possibilities - I think. comment out what you don't need with //

2. replace in the blue line the LPD8806 with LPD6803
3. play with the datarate in the green line, you can use numbers 0-7, for me 2 works perfect like
FastSPI_LED.setDataRate(2);

#include <FastSPI_LED.h>

//Set the number of leds in the strip.
#define NUM_LEDS 120

// Sometimes chipsets wire in a backwards sort of way
struct CRGB { unsigned char b; unsigned char r; unsigned char g; };
// struct CRGB { unsigned char r; unsigned char g; unsigned char b; };
struct CRGB *leds;


#define PIN 4
void setup(){
Serial.begin(115200);
FastSPI_LED.setLeds(NUM_LEDS);

//Change this to match your led strip
FastSPI_LED.setChipset(CFastSPI_LED::SPI_LPD8806);
FastSPI_LED.setDataRate(0);

//If non-default SPI pins have been used change this.
FastSPI_LED.setPin(PIN,11,13);

FastSPI_LED.init();
FastSPI_LED.start();
leds = (struct CRGB*)FastSPI_LED.getRGBData();
clearLeds();
}

int readByte(){
while(Serial.available()==0){
FastSPI_LED.stop();
}
FastSPI_LED.start();
return Serial.read();
}

void clearLeds(){
for(int tmpChannel=0; tmpChannel<NUM_LEDS; tmpChannel++){
leds[tmpChannel].r = 0;
leds[tmpChannel].b = 0;
leds[tmpChannel].g = 0;
};
FastSPI_LED.show();
}

void loop(){
if(readByte() == 0xFF){
if(readByte() == 0x00){
if(readByte() == 0x00){
int channels = readByte();
for(int channel=0; channel<channels; channel++){
leds[channel].r = readByte();
leds[channel].b = readByte();
leds[channel].g = readByte();
}
FastSPI_LED.show();
}
}
}
}
scorpie
 
Posts: 54
Joined: Fri Apr 20, 2012 4:35 pm

Re: Atmoduino - Ambilight for the masses

by Macuk83 on Fri Nov 02, 2012 7:23 pm

What is the code i have to upload to my arduino? Previous posts say the atmoduino.ino but i cant find that.
Macuk83
 
Posts: 1
Joined: Fri Nov 02, 2012 7:20 pm