gkaindl / ambi-tv

a flexible ambilight clone for embedded linux
296 stars 85 forks source link

LED position and push button functions #45

Open drefk2000 opened 10 years ago

drefk2000 commented 10 years ago

Alright, so I got the grabber to work after running the correct rasbian version (2013-07-26) but I don't get how to configure the leds. I started at bottom left and went right, skipped 6 leds for the foot, and continued right. after that I curved the ledstrip and continued up and around the screen. I have no idea how to correctly adress them other then the bottom bit (I think) 0-21, X6, 28-51. I have 32 leds on both sides and 53 on top. Can anyone help me make sense of this?

My leds are located aprox. 1 cm from the actual screen making them a little bit bigger then 46''. How do I configure so that looks good? I installed a push button and I would like to have it as on/off for the strip. I only want the ambilight function, no mood light or anything like that. How is that done? I want this to start in the background when the R-PI starts. How should my rc.local look and will I need to send options with the command? If I do, what should the options be?

A lot of questions, I know but I want the best possible experiance from this project.

Even though its not working yet and I have had several setbacks and "back to the top of the list" issues, I'm having a blast. Soldering, tinkering and playing around makes Drefk a very happy old man..

EDIT: I changed the ledstrip so I no longer have a hole for the foot. I still need help with the config file though

duenorh commented 10 years ago

leds

This is how I have my leds set up. I start from the foot of the tv and go to the left. My .conf file looks like this leds-top 39-76 # left-to-right leds-bottom 17-0,4X,112-97 # left-to-right leds-left 38-18 # top-to-bottom leds-right 77-96 # top-to-bottom

*edited to switch bottom leds

Phil1988 commented 10 years ago

the numbers on the bottom leds must be switched at your drawing. Your config looks right.

@ drefk2000: show us a image like duenorh that shows us how you bild your LED stripes - as well as the number of the leds and the direction of the connections. I think this might help a lot

drefk2000 commented 10 years ago

I have ordered another ledstrip (still LPD8806, with 48 diods per m) I suspect something is fishy with this one. The first 20 leds shines extremly bright whitish and the others with a barley visable red ligt. a few here and there has other colours (maybe ten of them) but they also shines very weak, I have also ordered a 9v 2,5 Amps poweradapter insted of the 5 v 900mah I have now. So I guess I have to wait another month to try again. I have really tried to find someone who carries the lpd8806 in Sweden but no such luck, Damn ebay sellers, at least let me pay for super duper mega all out shipping!!

This is the way the strip is installed now. No space for the foot, I managed to fit it between the foot and the screen

image

The Tv will be wallmounted in a couple of days anyway, so I tried my hardest to have no hole

EDIT: Its this one I ordered:

LPD8806 48LED 24ic per mater

1) LED QTY : 48pc / M

2) IC QTY : 24pc / M

3) Input voltage : DC5-9V

4) Max Power : 14.4W / M

5) Grey Grade : 128

6) Image Pixel : 48 / M

7) Waterproof Grade : IP67

8) Packing : 5000mm_12mm_4mm, 5M/Reel,3M adhensive tape,

9)PCB color:white,

http://www.ebay.com/itm/111219688075?var=410239946741&ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

Phil1988 commented 10 years ago

So 52 LEDs on bottom, 53 on top and 32 left and right? Im not sure, because I havent done it but to me this must be working

leds-top 136-84 # left-to-right leds-bottom 0-51 # left-to-right leds-left 137-168 # top-to-bottom leds-right 83-52 # top-to-bottom

tell me if it works...

and about the 9v power supply: If your LEDs need 5V (the PI does) you cant use it!!! Taking a power supply with higher current is ok but not higher voltage! take like a 5V 10A supply or something similar... But a higher voltage will grill your PI and LEDs

drefk2000 commented 10 years ago

I will try that, but as I said I have other strange behavior from the strip to address first. I will try it when I get my new strip and power adapter. I hope it will help

drefk2000 commented 10 years ago

@ Phil1988 "and about the 9v power supply: If your LEDs need 5V (the PI does) you cant use it!!! Taking a power supply with higher current is ok but not higher voltage! take like a 5V 10A supply or something similar... But a higher voltage will grill your PI and LEDs"

Have a look att the specifications of the 48/meter:

3) Input voltage : DC5-9V

Im using a seperete one for the pi @ 5 v

Angora commented 10 years ago

To eleminate flickering of the LEDs You must connect the LEDs and the pi to the same power source. I wouldnt try 9V but instead 5V@4-10A. Because 900mA sounds very low.

@ Phil1988 "and about the 9v power supply: If your LEDs need 5V (the PI does) you cant use it!!! Taking a power supply with higher current is ok but not higher voltage! take like a 5V 10A supply or something similar... But a higher voltage will grill your PI and LEDs"

Have a look att the specifications of the 48/meter:

3) Input voltage : DC5-9V

Im using a seperete one for the pi @ 5 v

— Reply to this email directly or view it on GitHubhttps://github.com/gkaindl/ambi-tv/issues/45#issuecomment-29586840 .

Angora commented 10 years ago

Something about the power: "Typically, the model B uses between 700-1000mA depending on what peripherals are connected and the model A can use as little as 500mA with no peripherals attached. The maximum power the Raspberry Pi can use is 1 Amp. If you need to connect a USB device that will take the power requirements of the Raspberry Pi above 1 Amp then you must connect it to an externally powered USB hub." So 900mA might be not enough. Try 5V@4A. If you do not power the LEDs and rpi from the same power source, You will geht flickering. (Tried it myself) Am 02.12.2013 07:37 schrieb "Malte Wellbrock" malte.wellbrock@gmail.com:

To eleminate flickering of the LEDs You must connect the LEDs and the pi to the same power source. I wouldnt try 9V but instead 5V@4-10A. Because 900mA sounds very low.

@ Phil1988 "and about the 9v power supply: If your LEDs need 5V (the PI does) you cant use it!!! Taking a power supply with higher current is ok but not higher voltage! take like a 5V 10A supply or something similar... But a higher voltage will grill your PI and LEDs"

Have a look att the specifications of the 48/meter:

3) Input voltage : DC5-9V

Im using a seperete one for the pi @ 5 v

— Reply to this email directly or view it on GitHubhttps://github.com/gkaindl/ambi-tv/issues/45#issuecomment-29586840 .

drefk2000 commented 10 years ago

Why would I get flickering leds by using seperate power supplies for the pi and the leds? I have two 5v supplies today and even if I have other problems there is no flickering leds. Explain to me how having diffrent power supplies could possibly cause that.

I will still try to use the 9v 2,5 amp I bought for the leds an my 5v for my PI. Then I'll know.

There is too much guessing here, and no facts. Someone guessed that if I should use the 9v I would burn my ledstrip even though I just had posted that at 48leds/meter it handles 5-9v. And now flickering leds with no explanation as to why... Not good enough, I'll have to try for myself

Skickat från min iPhone

2 dec 2013 kl. 07:37 skrev "Angora" notifications@github.com:

To eleminate flickering of the LEDs You must connect the LEDs and the pi to the same power source. I wouldnt try 9V but instead 5V@4-10A. Because 900mA sounds very low.

@ Phil1988 "and about the 9v power supply: If your LEDs need 5V (the PI does) you cant use it!!! Taking a power supply with higher current is ok but not higher voltage! take like a 5V 10A supply or something similar... But a higher voltage will grill your PI and LEDs"

Have a look att the specifications of the 48/meter:

3) Input voltage : DC5-9V

Im using a seperete one for the pi @ 5 v

— Reply to this email directly or view it on GitHubhttps://github.com/gkaindl/ambi-tv/issues/45#issuecomment-29586840 . — Reply to this email directly or view it on GitHub.

Angora commented 10 years ago

Well, i can't explain it, like most of the guys around this project can't. I've tried it, i've seen it and i solved it the way i told you. I'm just trying to help by sharing my experience, but if you want to try it on your own, just go ahead. The weird thing is, if you use Boblight it wont flicker with two sperate power supplys. With ambilight it does (for many). And so far i haven't seen a good explanation for this. I wish you good luck that everything will go okay.

2013/12/2 drefk2000 notifications@github.com

Why would I get flickering leds by using seperate power supplies for the pi and the leds? I have two 5v supplies today and even if I have other problems there is no flickering leds. Explain to me how having diffrent power supplies could possibly cause that.

I will still try to use the 9v 2,5 amp I bought for the leds an my 5v for my PI. Then I'll know.

There is too much guessing here, and no facts. Someone guessed that if I should use the 9v I would burn my ledstrip even though I just had posted that at 48leds/meter it handles 5-9v. And now flickering leds with no explanation as to why... Not good enough, I'll have to try for myself

Skickat från min iPhone

2 dec 2013 kl. 07:37 skrev "Angora" notifications@github.com:

To eleminate flickering of the LEDs You must connect the LEDs and the pi to the same power source. I wouldnt try 9V but instead 5V@4-10A. Because 900mA sounds very low.

@ Phil1988 "and about the 9v power supply: If your LEDs need 5V (the PI does) you cant use it!!! Taking a power supply with higher current is ok but not higher voltage! take like a 5V 10A supply or something similar... But a higher voltage will grill your PI and LEDs"

Have a look att the specifications of the 48/meter:

3) Input voltage : DC5-9V

Im using a seperete one for the pi @ 5 v

— Reply to this email directly or view it on GitHub< https://github.com/gkaindl/ambi-tv/issues/45#issuecomment-29586840> . — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/gkaindl/ambi-tv/issues/45#issuecomment-29600439 .

drefk2000 commented 10 years ago

It not that I don't belive you, I just have to see it for myself and if it happens I must try to explain it. I can't stand "It's this way but we don't know why"

Skickat från min iPhone

2 dec 2013 kl. 10:03 skrev "Angora" notifications@github.com:

Well, i can't explain it, like most of the guys around this project can't. I've tried it, i've seen it and i solved it the way i told you. I'm just trying to help by sharing my experience, but if you want to try it on your own, just go ahead. The weird thing is, if you use Boblight it wont flicker with two sperate power supplys. With ambilight it does (for many). And so far i haven't seen a good explanation for this. I wish you good luck that everything will go okay.

2013/12/2 drefk2000 notifications@github.com

Why would I get flickering leds by using seperate power supplies for the pi and the leds? I have two 5v supplies today and even if I have other problems there is no flickering leds. Explain to me how having diffrent power supplies could possibly cause that.

I will still try to use the 9v 2,5 amp I bought for the leds an my 5v for my PI. Then I'll know.

There is too much guessing here, and no facts. Someone guessed that if I should use the 9v I would burn my ledstrip even though I just had posted that at 48leds/meter it handles 5-9v. And now flickering leds with no explanation as to why... Not good enough, I'll have to try for myself

Skickat från min iPhone

2 dec 2013 kl. 07:37 skrev "Angora" notifications@github.com:

To eleminate flickering of the LEDs You must connect the LEDs and the pi to the same power source. I wouldnt try 9V but instead 5V@4-10A. Because 900mA sounds very low.

@ Phil1988 "and about the 9v power supply: If your LEDs need 5V (the PI does) you cant use it!!! Taking a power supply with higher current is ok but not higher voltage! take like a 5V 10A supply or something similar... But a higher voltage will grill your PI and LEDs"

Have a look att the specifications of the 48/meter:

3) Input voltage : DC5-9V

Im using a seperete one for the pi @ 5 v

— Reply to this email directly or view it on GitHub< https://github.com/gkaindl/ambi-tv/issues/45#issuecomment-29586840> . — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/gkaindl/ambi-tv/issues/45#issuecomment-29600439 .

— Reply to this email directly or view it on GitHub.

sn00zerman commented 10 years ago

I use 2 different power supplies, one for the PI and one for the LED-strips. You need to make sure to connect the GND of both power-supplies together, otherwise you would get flickering LEDs !

best regards, Kris

-=[http://www.digitalplayground.be]=- where fun meets technology

On 2 dec 2013 10:03 "Angora" notifications@github.com wrote:

Well, i can't explain it, like most of the guys around this project can't. I've tried it, i've seen it and i solved it the way i told you. I'm just trying to help by sharing my experience, but if you want to try it on your own, just go ahead. The weird thing is, if you use Boblight it wont flicker with two sperate power supplys. With ambilight it does (for many). And so far i haven't seen a good explanation for this. I wish you good luck that everything will go okay.

2013/12/2 drefk2000 notifications@github.com

Why would I get flickering leds by using seperate power supplies for the pi and the leds? I have two 5v supplies today and even if I have other problems there is no flickering leds. Explain to me how having diffrent power supplies could possibly cause that.

I will still try to use the 9v 2,5 amp I bought for the leds an my 5v for my PI. Then I'll know.

There is too much guessing here, and no facts. Someone guessed that if I should use the 9v I would burn my ledstrip even though I just had posted that at 48leds/meter it handles 5-9v. And now flickering leds with no explanation as to why... Not good enough, I'll have to try for myself

Skickat från min iPhone

2 dec 2013 kl. 07:37 skrev "Angora" notifications@github.com:

To eleminate flickering of the LEDs You must connect the LEDs and the pi to the same power source. I wouldnt try 9V but instead 5V@4-10A. Because 900mA sounds very low.

@ Phil1988 "and about the 9v power supply: If your LEDs need 5V (the PI does) you cant use it!!! Taking a power supply with higher current is ok but not higher voltage! take like a 5V 10A supply or something similar... But a higher voltage will grill your PI and LEDs"

Have a look att the specifications of the 48/meter:

3) Input voltage : DC5-9V

Im using a seperete one for the pi @ 5 v

— Reply to this email directly or view it on GitHub< https://github.com/gkaindl/ambi-tv/issues/45#issuecomment-29586840> . — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/gkaindl/ambi-tv/issues/45#issuecomment-296 00439 .

— Reply to this email directly or view it on GitHub https://github.com/gkaindl/ambi-tv/issues/45#issuecomment-29602771.

drefk2000 commented 10 years ago

See? A solution! Thank you

Skickat från min iPhone

2 dec 2013 kl. 10:16 skrev "Kris" notifications@github.com:

I use 2 different power supplies, one for the PI and one for the LED-strips. You need to make sure to connect the GND of both power-supplies together, otherwise you would get flickering LEDs !

best regards, Kris

-=[http://www.digitalplayground.be]=- where fun meets technology

On 2 dec 2013 10:03 "Angora" notifications@github.com wrote:

Well, i can't explain it, like most of the guys around this project can't. I've tried it, i've seen it and i solved it the way i told you. I'm just trying to help by sharing my experience, but if you want to try it on your own, just go ahead. The weird thing is, if you use Boblight it wont flicker with two sperate power supplys. With ambilight it does (for many). And so far i haven't seen a good explanation for this. I wish you good luck that everything will go okay.

2013/12/2 drefk2000 notifications@github.com

Why would I get flickering leds by using seperate power supplies for the pi and the leds? I have two 5v supplies today and even if I have other problems there is no flickering leds. Explain to me how having diffrent power supplies could possibly cause that.

I will still try to use the 9v 2,5 amp I bought for the leds an my 5v for my PI. Then I'll know.

There is too much guessing here, and no facts. Someone guessed that if I should use the 9v I would burn my ledstrip even though I just had posted that at 48leds/meter it handles 5-9v. And now flickering leds with no explanation as to why... Not good enough, I'll have to try for myself

Skickat från min iPhone

2 dec 2013 kl. 07:37 skrev "Angora" notifications@github.com:

To eleminate flickering of the LEDs You must connect the LEDs and the pi to the same power source. I wouldnt try 9V but instead 5V@4-10A. Because 900mA sounds very low.

@ Phil1988 "and about the 9v power supply: If your LEDs need 5V (the PI does) you cant use it!!! Taking a power supply with higher current is ok but not higher voltage! take like a 5V 10A supply or something similar... But a higher voltage will grill your PI and LEDs"

Have a look att the specifications of the 48/meter:

3) Input voltage : DC5-9V

Im using a seperete one for the pi @ 5 v

— Reply to this email directly or view it on GitHub< https://github.com/gkaindl/ambi-tv/issues/45#issuecomment-29586840> . — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub<https://github.com/gkaindl/ambi-tv/issues/45#issuecomment-296 00439> .

— Reply to this email directly or view it on GitHub https://github.com/gkaindl/ambi-tv/issues/45#issuecomment-29602771. — Reply to this email directly or view it on GitHub.

drefk2000 commented 10 years ago

It works like a charm now. No flickering lights, the PI is running at 5 volts and the strip at 9 volts. I put the strips GND on the GND pin of the GPIO. this has been a fun project. Im probably doing it again on my bed room tv.