Atmoduino - Ambilight for the masses

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
scorpie
 
Posts: 54
Joined: Fri Apr 20, 2012 4:35 pm

Re: Atmoduino - Ambilight for the masses

Post by scorpie »

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

ajstrande
 
Posts: 6
Joined: Tue Nov 15, 2011 10:47 am

Re: Atmoduino - Ambilight for the masses

Post by ajstrande »

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.

Waitwhat
 
Posts: 2
Joined: Sat Jul 14, 2012 3:35 pm

Re: Atmoduino - Ambilight for the masses

Post by Waitwhat »

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.

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

Re: Atmoduino - Ambilight for the masses

Post by scorpie »

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

http://forums.adafruit.com/viewtopic.ph ... 15#p144193

Waitwhat
 
Posts: 2
Joined: Sat Jul 14, 2012 3:35 pm

Re: Atmoduino - Ambilight for the masses

Post by Waitwhat »

I'm using IDE 1.01 will this affect anything?

Could you point me to the arduino code you used?

Thanks for the help.

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

Re: Atmoduino - Ambilight for the masses

Post by scorpie »

Download this

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

It is the IDE 1.0 with the fast spi and atmoduino sketchbook

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

Atmoduino - Ambilight for the masses

Post by zwickl »

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

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

Re: Atmoduino - Ambilight for the masses

Post by scorpie »

@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();
}
}
}
}

Macuk83
 
Posts: 1
Joined: Fri Nov 02, 2012 7:20 pm

Re: Atmoduino - Ambilight for the masses

Post by Macuk83 »

What is the code i have to upload to my arduino? Previous posts say the atmoduino.ino but i cant find that.

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

Re: Atmoduino - Ambilight for the masses

Post by scorpie »

]copy and past the text above in a textfile and name it atmoduino.ino. thats it

or use this one, its working for me with the lpd8806 chips
[attachment=0]AtmoDuino.txt[/attachment
Attachments
AtmoDuino.txt
rename to ino
(1.49 KiB) Downloaded 1218 times

demmax2004
 
Posts: 239
Joined: Fri Nov 30, 2012 2:41 am

Re: Atmoduino - Ambilight for the masses

Post by demmax2004 »

Only Windows users.
The best for Windows.
Adalight supported in the Server IR 2.0.9 Ambilight Edition, all the details HERE

demmax2004
 
Posts: 239
Joined: Fri Nov 30, 2012 2:41 am

Re: Atmoduino - Ambilight for the masses

Post by demmax2004 »

added wizard zones
Video HERE

demmax2004
 
Posts: 239
Joined: Fri Nov 30, 2012 2:41 am

Re: Atmoduino - Ambilight for the masses

Post by demmax2004 »

AmbiBox 2.1.4 support Atmoduino

Schicksal
 
Posts: 3
Joined: Wed Nov 06, 2013 4:15 am

Re: Atmoduino - Ambilight for the masses

Post by Schicksal »

Can someone pls post a working FastSPI for lpd8806?
My stripes don't light um and do nothing.

------------edit-------------
done.
my stripes lights up like they should.
the colours are correct (had to change the RGB order).

now sometimes some LEDs lights up in total blue. just like lightnings. only a mini part of a second
then everything ist ok for a while and then again somewhere else. sometimes on the left side, sometimes on the right side.
any idea?
should i play with the datarate or anything else? perhaps some settings in atmowin or the mediaportal plugin?
Last edited by Schicksal on Mon Dec 02, 2013 7:08 am, edited 1 time in total.

User avatar
olli123
 
Posts: 1
Joined: Sun Dec 01, 2013 9:11 am

Re: Atmoduino - Ambilight for the masses

Post by olli123 »

Hi there,

i´m playing around with a WS2801 32 LED stripe and Arduino Uno.

Target: Use AtmoWin with Atmoduino!!!

Problem: Test Leds Programm is running fine, no problems.......
Trying tu run Atmoduino on the Arduino brings up the problem.

Frist the LEDs stay dark. After playing around with it i found out that changing the Com port speed to 9600baud brings changes. With different speed the LEDs are flickering around.
When i use the color changer mode in AtmoWin i see some leds going on showing colours some leds stay out.
Yesterday only the first 5 Leds turns on and the rest 27 Leds stay dark.
So i see that the stripe is reacting to the controll commands but it does not do the correct display of the color.
When switching the AtmoWin mode to Static color the stripe freeze but does not display the static color...........

So i think there is a problem with the data transfer between the PC and the Arduino Com Port.
Do anybody know about that problem? What can i do to get it to work correctly?

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”