Stream

Join this community to post or comment

M Otter

Software Help (LightshowPi)  - 
 
Great project! I've build a little disco light from spare parts and it works really well! But I can't get the synchronized_lights.py to work on startup or reboot. Tried to use rc.local and crontab so far - but no luck with that. Did anyone accomplished this before?
1
Tom Enos's profile photoM Otter's profile photo
4 comments
M Otter
 
Thanks Tom! Works like charm!
This should be added to the HowTo!

One more thing: It would absolutely great to change the custom_channel_mapping on the fly WHILE the code is running!
I'm thinking of different config files (something like default[1] .. [5].cfg) which are randomly chosen every 5-15 s or so.
I tried some code manipulation, but I'm not very good in python and as soon as I change something, everything crashes  °.°

Would this be possible at all?
Add a comment...

Matthew McDermott

Software Help (LightshowPi)  - 
 
Does this warning affect the performance of LightShowPi? From what I understand it is an error of taking the log (to find the decibel volume) when there is no sound (log0). I have noticed that sometimes when I pause the audio source and restart it, the lights take some time to turn back on, possibly indicating that this warning might be an issue. Thanks in advance for your help on this page!
1
Todd Giles's profile photoMatthew McDermott's profile photo
2 comments
 
Thanks, that answers my questions. That makes sense why the best performance will be running off a playlist with cached settings. Still, I am impressed with the audio-in mode. Awesome work!
Add a comment...

Garnett Haines

Software Help (LightshowPi)  - 
 
Got the following error while installing. I am just a python beginner and would appreciate any help.
1
Ryan Jennings's profile photoGarnett Haines's profile photo
2 comments
 
Thanks Ryan. My problem was that I typed $$ instead of &&. My bad.
Add a comment...

K McWhirter

Software Help (LightshowPi)  - 
 
I updated lightshowpi last night, and I can't get any of the example scripts to work, which bums me out, cause I want to incorporate a preshow script.  I have tried to execute them in the examples directory, and up one level in the py directory.  No matter what example script I try to run I get similar errors:

  File "/home/pi/lightshowpi/py/hardware_controller.py", line 273, in turn_on_light
    if is_pin_pwm(i):
  File "/home/pi/lightshowpi/py/hardware_controller.py", line 163, in is_pin_pwm
    return PIN_MODES[i].lower() == "pwm"
IndexError: list index out of range

I added a print line for "lights" and "light" in a couple of the files, and noticed that even though it sees all the "_GPIO_PINS", and gets the "len" correctly.  The for loop only counts to 8, and then kicks out the errors above.  I have not really looked at the pwm error.  My brain hurts enough just from trying to find what I found.  ;)

I also used pep8 to fix some missing space around operator errors it found.  That seemed to get rid of at least 1 other issue I believe.  

I am not a programmer, but have watched the PyQuick Series on YouTube, and have started playing a little with python... I am starting to recognize some common structures.  I definitely am appreciating this code, and the work you folks have done!!!

Anyway, if anyone knows what might be happening, I would be interested in any explanation.  I am sure it is going to take me a very long time to figure out how all the pieces fit together, and hopefully understand some of the code.  ;)  

BTW:  I might mention I am on a B+, utilizing 12 of the onboard GPIO channels (no expansion chips), with pwm enabled.  
1
Todd Giles's profile photoTom Enos's profile photo
3 comments
 
I am working on it.  I will be posting a fix soon.  Just waiting on some breadboards for testing with expanders.
Add a comment...

Owen Grace

Software Help (LightshowPi)  - 
 
Hello,  I have been using the Raspberry Pi and Webiopi to allow people to turn light on and off in my Lego display for a couple of years.

Now I want to add music and light up the house.

I have everything install tested and working.
Awesome build!!! 

But now that I have a test set up I was wondering about the fade option. 
When I test flashing everything seems normal but when I try fade or the sample song that must have fade in it.  There is a loud buzzing coming from the relays.
Is this normal?
Can I turn off the fade option? or reduce the fade to 0 so it is like off?
Do I have to worry about the buzzing?
Do I need to turn "Active Low" on?

I just don't want to burn out the relays before I even get started.

I have 8 relay module like +Cory Dorning pictures. 

Is there  a different relay you would recommend?
1
Bruce Goheen's profile photoErik V's profile photo
8 comments
Erik V
 
I also use the Sainsmart SSR. I started with the EMR because they were cheaper, but I couldn't hear the music over the buzzing.
Add a comment...

Cory Dorning

Software Help (LightshowPi)  - 
 
Anyone able to provide a simple cronjob to just start_music_and_lights @ 6 and stop_music_and_lights @ midnight?

I did some searching  around here but can't seem to get anything to work.
2
Cory Dorning's profile photoYohan Bohan's profile photo
16 comments
 
Yep, I keep that line as don't not care to have my Pi on all night long. "Waste not, Want not". Wasting electricity(l know very little), Not letting little hacker wanna b's getting in my Pi. 
Add a comment...

Barry Murphy

Software Help (LightshowPi)  - 
 
Whats the most amount of relays someone has used in a setup and have you had multiple PI's controlling relays and all networked together? keen to go for a blast in 2015 so I have a year to plan as I can see I didnt have enough time this year... I want to do something like this https://www.youtube.com/watch?v=wjqxUMl4JWk that has fading out multiple relays etc
4
chris usey's profile photoBarry Murphy's profile photo
3 comments
 
Thanks guys, I thought as much and did see the lighting control boards, i was wondering however if it were possible to add lights that do specific functions, like a tube light that starts the first led, goes to the second then the third , then the first one goes off and the process continues, almost like a racing light. Or even if it were possible to add controllers such as the light-o-rama ones onto the GPIO of a PI to control specific functions.

Is it possible to control data on these lights, i.e. I have a 20m strip of LED's and I'm wondering if its possible to control the color, sequence etc that the LED's are on from a GPIO to make the shows more colourful. http://www.aliexpress.com/item/Waterproof-20M-SMD-5050-600Leds-RGB-LED-Strip-and-44-Key-IR-Remote-Control-and-12V/1982427553.html


And lastly what relay can I use to fade lights in and our rather than just on/off.
Add a comment...

Paul Fernkopf

Software Help (LightshowPi)  - 
 
Does anyone else have the problem with network problems after a sample song plays?
1
chris usey's profile photo
 
I experienced that problem once on my regular Pi model B when I was trying to use a config file that I had for my B+. Something with the extra pins being defined and not being present caused the network to die every time I played a song
Add a comment...

Kyle Mace

Software Help (LightshowPi)  - 
 
Hello everyone,
Has anyone gotten the latest LightShowPi working as a spectrum analyzer?
1
Bruce Goheen's profile photo
Add a comment...

MrtHazza

Software Help (LightshowPi)  - 
 
I want to make a party light. i have rgb led stripes all over my room. red is channel 1, green cannel, blue channel 3. With some music it works nicely but with some it just light white because thera are deep, midle an high tones i think. How can i improve this?

1
MrtHazza's profile photoCarlton and Melody Cabral's profile photo
4 comments
 
I start ordering lights and once I get this sorted out I wil post back 
Add a comment...

MrtHazza

Software Help (LightshowPi)  - 
 
The Software Runs fine but the Audio of my pi is just crackling very hard and a loud 50Hz signal is hearable...What can i do? Have Somebody an Idea? Its the B+ Model
1
MrtHazza's profile photo
4 comments
 
no one an idea?
Add a comment...

LamborghiniDriver19

Software Help (LightshowPi)  - 
 
Hello everybody! I have just got a RPi to use in a school project and I am attempting to create the spectrum analyzer from Scott Driscoll. So far everything had gone ok but I am having trouble installing the software for the LED strip from Github. https://github.com/adammhaile/RPi-LPD8806 If someone could help me get this installed that would be fantastic! I am hoping to have this project built in the next day or two so I have time to write the paper for it. Thanks!
RPi-LPD8806 - DEPRECATED!!! Checkout the new library, BiblioPixel - Follow the linked website.
1
Bruce Goheen's profile photoLamborghiniDriver19's profile photo
2 comments
 
+Bruce Goheen​ I do realise that this page is only for lightshowpi but I wasnt sure where else to go to get quick help. Thanks! 
Add a comment...

Forrest Logan

Software Help (LightshowPi)  - 
 
Hi guys, help with usb audio in dongle?
I've been using the llihhtshowpi software and Everything works perfectly, lights sync to files loaded on the Pi and even was able to get a headless shell script running for them, but when it comes to audio in if I edit the /etc/modprobe.d/alsa-base.conf to make the usb sound card the lights will sync to an audio in, but no sound output will occur. I was able to get sound to come out of the usb but not in audio in mode does anyone know how to get audio in synced then produce audio out? 
1
Forrest Logan's profile photoTodd Giles's profile photo
6 comments
 
Forrest - I've started work to enable that in the audioin branch - I've yet to have a chance to really test it though, feel free to give it a try and let me know the results:

https://bitbucket.org/togiles/lightshowpi/branch/audioin
Add a comment...

Marc Stair

Software Help (LightshowPi)  - 
 
Ok so moving forward in my first light build (and raspberry pi build).  my prototype is working GREAT thanks to some help from the community!  However it is a simply 8 channel rely (and not solid state to be changed soon)  And I want more!  how do I change the "/home/pi/.lights.cfg " to fire 16 of the pins.  I think that this is possible and it is probable fairly easy but I get an IndexError...  any ideas or information I could read?
1
Bruce Goheen's profile photo
 
Do you have PWM enabled? I've only received that error when set to PWM which I wouldn't recommend with mechanical relays. Otherwise, try defining each pin separately in pin_modes as onoff,onoff,onoff,onoff once for each pin. There should be examples for 8 and 16 pin gpio_pins in the default config.
Add a comment...

Marc Stair

Software Help (LightshowPi)  - 
 
New to the lightshowpi and the raspberry.  I built my light show and everything works great.  But when I try to play a different mp3 I get the error message.

decoder.Error:  file does not start with RIFF id or fmt chunk missing

Can anyone lend a hand?

Thanks, 
Marc
1
Marc Stair's profile photoChase Cromwell's profile photo
18 comments
 
I know this is an old thread, but mabye renaming it or moving it via ftp corrupted the file. 
Add a comment...

Owen Grace

Software Help (LightshowPi)  - 
 
Order 2 new SSR and a hand full extras... 

I have just found another area where off  and on are reversed.
1) the preshow when I set on:30, off:5  the reverse happens
2) when I test the commands for the webui on is off and off is on.

Where is off and on set?  I need to switch the base state.
1
chris usey's profile photoOwen Grace's profile photo
4 comments
 
Thanks for the great post.
Add a comment...

Chad Brochard

Software Help (LightshowPi)  - 
 
What is the best way to turn all lights on and leave them on? I have been using hardware_controller. Py --state=on. This turns them on but some of my channels flicker a bit. It may just be a hardware issue. But I thought I would start here.
Thanks
1
Asdrubal R. Velasquez Lagrave's profile photoChad Brochard's profile photo
2 comments
 
I thought it might be but the offending relay board is currently buried behind the tree under a pile of gifts. I might just remove the bad channels and swap the lights around a bit.
Add a comment...

Derwent Ready

Software Help (LightshowPi)  - 
 
Hi guys,

I was wondering if you might be able to advise me on my project. I wanted to make a lightshowpi style setup but using RF/RC Switches to make it as portable/plug'n'play as possible (so I can move from house to house without needing to bring my own lights). I ported RCswitch (of Arduino and WiringPi fame) to Python and that works fine. I modified the synchonized_lights script to only trigger if brightness is above a threshold (removing the check for PMW from update_lights). My problem is that the RF transmitter seems to just flood the airways (sometimes even triggering my other set of switches on different codes) and the switches rarely trigger on or off.

Python takes 0.72 seconds to send a remote code and I tried adjusting for this by having update_lights only trigger over a certain brightness and after at least 1 second after the last trigger event but it's still not really working.

(My first version worked fairly well but was single threaded and affected audio playback rather badly. My second attempt was threaded and that just didn't work at all).

So I resigned myself to trying to drive the transmitter from an Arduino Uno, having the Pi send a trigger pulse to the Arduino and then having the Arduino send the code. The Arduino can send a code in about 0.57 seconds so a bit faster but I'm still having trouble with it rarely triggering. I set the Arduino to only send a code if the pin state changed so it shouldn't really be flooding the transmitter with requests.

The Pi is set to only send the Arduino a trigger request once every 2.4 seconds and the audio/brightness threshold is currently set to 0.2 (with the average for the 2 demo song being 0.4-0.6). I have the Arduino set to input_pullup to try and reduce noise interference and I have the Pi set its output pins to GPIO.HIGH over the threshold brightness and GPIO.LOW below it. The Arduino checks for a LOW current input and a previous input of HIGH before sending the on code and vice versa to send the off code.

I'm starting to wonder if a relay board is the only answer. I'd rather not do it as it reduces the portability a fair amount.

I had another problem that I can't quite track down. When I first modified the code, I made the script pre-cache a new song and THEN play it to save on playback processing but in calculate_levels the line data = data * window throws a “TypeError: only integer arrays with one element can be converted to an index” error. This doesn't seem to happen when analysing whilst playing and I can't quite see why. (I'm happy to provide code somewhere) I basically took the main playback loop code and removed the output.write( data ) line from it then merged it with the caching code into its own precache function.

Any help would be appreciated :)
1
Tom Enos's profile photoDerwent Ready's profile photo
5 comments
 
Cool thanks. I'll check it out.
Add a comment...

Barry Murphy

Software Help (LightshowPi)  - 
 
Suggestions for hardware? I currently use SainSmart 16 channel relay

I'm keen to get lights to dim in and out, interested in 16 channel or more relays that are the best to use... been looking at light-o-rama stuff but would prefer to use PI and opensource.
1
Barry Murphy's profile photoTodd Giles's profile photo
3 comments
 
Definitely, several people have been looking into doing that and are experimenting with various ways.  Paul Dunn has made an extension to the base software to set one as the master, and then have multiple slaves.  Take a look at his post on our developer group here for more details:

https://groups.google.com/d/topic/lightshowpi-dev/-dIJ2NuYwOE/discussion
Add a comment...

Erick Miramontes

Software Help (LightshowPi)  - 
 
IS there a program or something that you guys use to control christmas lights a certain way or patterns? Something like Vixen . I tried to download it but i keep getting an error message saying it can not open .
1
Erick Miramontes's profile photochris usey's profile photo
9 comments
 
No problem ! There was no special coding done for the 2014 video !
Add a comment...