Stream

Join this community to post or comment
Pinned by moderator

Todd Giles
owner

General Discussion  - 
 
For those of you who use the default pwm mode with your lightshow - I've made a change to the default settings to use onoff mode.  This was done in hopes to reduce the # of mechanical relay failures of new users (sorry +Jason Telemax).

If you download the newest version from the stable or master branch, you'll see this change in the defaults.  To switch back to pwm mode you'll need ensure your /home/pi/.lights.cfg file contains the following line in the [hardware] section:

pin_modes = pwm

For more information on playing with your configuration file, visit the following page:

http://lightshowpi.org/software-configuration/
9
Colin Brown's profile photo
 
Good call Todd. Especially since led lights are selling for a lot less than they did a year ago. 
Add a comment...

Tom Enos
moderator

General Discussion  - 
 
Google is messing with the Google Voice login page again.
So if your using sms and you installed lightshowpi before the date and time of this post, you will need to update pygooglevoice.
sudo pip install pygooglevoice --upgrade

version bumped to 0.5.2
2
Add a comment...

bcman Main (bcman12358)

Software Help (LightshowPi)  - 
 
when i try to run install.sh i get...
E: package'ffmpeg' has no installation candidate
NOTE: installation failed trying libav-tools
WARNING: the following packages can not be authenticated
libavdevice55 libavfilter5 libav-tools
E: there are problems and -y was used without ---force-yes
ERROR: a problem occurred while installing ffmpeg.
1
Ben Jacobus's profile photoTom Enos's profile photo
2 comments
 
If that doesn't work try
sudo apt-get update
sudo apt-get upgrade
Add a comment...

Ben Jacobus

Web UI Development  - 
 
Is there any plans to put this into the main build anytime soon? Otherwise to coexist with the main branch is it suggested to install in its own account?
1
Tom Enos's profile photoTodd Giles's profile photo
2 comments
 
Would be happy to pull in a webui into the same build at some point, but hadn't yet as (a) there are multiple web ui implementations out there and I was kind of waiting to see which one garnered the most support and (b) I'd really like to re-write some of the guts of lightshowpi before integrating a specific webui.

That said, I've not had the time recently either, so not much progress has been made on (b).

The nice thing since it is open source we do have existing options for multiple web ui implementations, which is a good thing!
Add a comment...

Steve Haber

Hardware Discussion  - 
 
I'm looking to update the amperage my show can drive, so I picked up a few of these to drive some of my bigger channels.

Channels turn on fine, and am getting ~3.2vDC when PWM=high, but it doesn't seem to turn the relay on.

https://www.amazon.com/gp/product/B0087ZTN08/ref=as_li_tl?ie=UTF8&tag=sth2258-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B0087ZTN08&linkId=2456c2fab2e431af0c4270bde9662c1a

When I drive it directly with a 9vDC battery, it works no problem. The data sheet (albeit in Chinese) shows driving voltage at 4-32vDC (http://www.anv.com.tw/download.php?op=1&id=8).

Could that difference of .8vDC really be the issue with triggering this relay?

EDIT: I wired an AA battery (1.5v) in series to my positive terminal and got enough voltage to power the relay. Any downside to this? It would seem other than a fastly drained AA battery, that would be all?

EDIT2: For those interested in using the same setup as I, here are some links to the products that I used.

Very simple sketch - http://imgur.com/a/kiWKS

Required -

1. Solid state relay - https://www.amazon.com/gp/product/B0087ZTN08/ref=as_li_tl?ie=UTF8&tag=sth2258-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B0087ZTN08&linkId=2456c2fab2e431af0c4270bde9662c1a

2. Battery holder - https://www.amazon.com/gp/product/B00EPQK3DY/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B00EPQK3DY&linkCode=as2&tag=sth2258-20&linkId=26a05b7507ea65740cf82f28be423340

2
Tom Enos's profile photoRussell Pyburn's profile photo
4 comments
 
It's cheap and simple to use transistors, just send the 3v from the RPI to the base of the transistors, 5v to the collector and connect the relays in series with either the collector or emitter (with the emitter going to ground). You can solder the transistors pretty easily, they all tie into the same 5v supply and ground, the only "individual" circuits would be comming from the 3v RPI GPIO to the base of each transistor. I used a very similar SSR to yours last year for my projects and thats how I did it. The RPI just doesn't push enough mA to pick up those relays.
Add a comment...

Matthias Pröll

Software Help (LightshowPi)  - 
 
Hey guys,

I want to stream my music over wifi to LightShowPi.
How can I get this working?
I use a OnePlus 3, rooted, Android 6.0.1 and a Raspi 2 B

1
Matthias Pröll's profile photoTom Enos's profile photo
4 comments
 
If the audio quality is bad it's not lightshowpi. it's either shareport-sync, airAudio, your stream or any combination of them. Also don't forget the RPI doesn't have the greatest sound hardware to begin with.
Add a comment...

Matt Weaver

General Discussion  - 
 
Is there a way to reduce the number of channel outputs to say to 6 or 4? For the project I'm doing I think having 8 channels may be to busy, so I'm wanting to slim down the number of strings of lights.

Thanks!!
1
Tom Enos's profile photoMatt Weaver's profile photo
2 comments
 
Ironically I just figured that out before you replied, but thanks!! :)
Add a comment...

Benjamin Ellis

Software Help (LightshowPi)  - 
 
Can someone help me .. my crontab will not launch upon reboot..
here is my settings:

Crontab -e:

#set enviornment variable
SYNCHRONIZED_LIGHTS_HOME=/home/pi/lightshowpi


# Start playing playlist at 5:30pm
30 17 * * * exec $SYNCHRONIZED_LIGHTS_HOME/bin/start_music_and_lights >> $SYNCHRONIZED_LIGHTS_HOME/logs/music_and_lights.play 2>&1 &

# Stop playing lights at 9:30pm
30 21 * * * exec $SYNCHRONIZED_LIGHTS_HOME/bin/stop_music_and_lights >> $SYNCHRONIZED_LIGHTS_HOME/logs/music_and_lights.stop 2>&1 &

#at Boot turn on ligts if after 5:30pm
@reboot exec python $SYNCHRONIZED_LIGHTS_HOME/crontab/boot.py


Here is my boot.py:
#!/usr/bin/env python

from datetime import datetime
import subprocess
import os

start = datetime.strptime("17:30:00","%H:%M:%S").time().strftime("%H%M%S")
ends = datetime.strptime("21:30:00","%H:%M:%S").time().strftime("%H%M%S")

now = datetime.now().strftime("%H%M%S")

if now > start and now < end:
subprocess.Popen(["sudo",
os.getenv("SYNCHRONIZED_LIGHTS_HOME") + "/bin/start_music_and_lights",
"&"])

Here is my Start_music and lights file:

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# Check that the home environment variable is set
if [ -z ${SYNCHRONIZED_LIGHTS_HOME} ]; then
cat $DIR/env_error_msg
exit 1
fi

$SYNCHRONIZED_LIGHTS_HOME/bin/stop_music_and_lights
$SYNCHRONIZED_LIGHTS_HOME/bin/play_sms &
$SYNCHRONIZED_LIGHTS_HOME/bin/check_sms &
$SYNCHRONIZED_LIGHTS_HOME/bin/pifm
$SYNCHRONIZED_LIGHTS_HOME/py/synchronized_lights.py --file=/home/pi/lightshowpi/music/.playlist

Does this look correct? Why wont it launch on reboot? +Tom Enos +Todd Giles  Any help please?
1
Benjamin Ellis's profile photo
4 comments
 
Ok that works! thanks now i just got to make the PIFM work i have it listening on 100.1 but i have to work on the antenna and output...
Add a comment...

Benjamin Ellis

Software Help (LightshowPi)  - 
 
Hey i have a @reboot in my crontab to start light show pi incase the power is out before and restores after my start time as it wouldnt kick off the cron tab if mised.

. This is in my boot.py. Does this look correct? Can someone please confirm? I always get my < > mixed up...


#!/usr/bin/env python

from datetime import datetime
import subprocess
import os

after = datetime.strptime("17:30:00","%H:%M:%S").time().strftime("%H%M%S")
before = datetime.strptime("21:30:00","%H:%M:%S").time().strftime("%H%M%S")

now = datetime.now().strftime("%H%M%S")

if after < now and now > before:
subprocess.Popen(["sudo",
os.getenv("SYNCHRONIZED_LIGHTS_HOME") + "/bin/start_music_and_lights",
"&"])
1
Tom Enos's profile photoBenjamin Ellis's profile photo
2 comments
 
+Tom Enos​ thanks again. This makes more since. I got the < > but the validation was confusing me 
Add a comment...

Matt Weaver

General Discussion  - 
 
Hello all, I just got my LightShow up and running, (lets call it pre pre planning for my ugly christmas sweater, they won't know what hit them), and I'm playing with the sample music that comes with it, and it seems that the songs use all 8 of the LEDs in some way or another. But when I run a "normal" version of jingle bells, I really only get 3 LEDs blinking.

Am I missing something, or is because normal songs don't have a wide range of tones, I'm only going to get a few LEDs blinking for these songs?

Can anyone recommend a good song selection, or something that would use the full range of what it can do.

Thanks
1
Matt Weaver's profile photoDavid Moss's profile photo
3 comments
 
Another suggestion is to modify the config file, and change the min_frequency, and max_frequency to 27.5 and 4186 respectively.  This is the range of a piano, and works well!
Add a comment...

Chris Collins

General Discussion  - 
 
Hey all, I just set up my first lightshow pi... I'm still using just hte breadboard and 8 channels, but I have a SainSmart 16 Relay Module I'd like to set up for my full show... has anyone had luck mapping an additional 8 channels? I have an idea to play "Baby It's Cold Outside" having each half of my yard do half of the duet... Any thoughts?
1
Tom Enos's profile photo
 
16 channels is easy, even without expansion chips. With 3 MCP27s17's and 3 MCP27017's I have tested 96 channels (that took a lot of breadboards).

Look at this for pin numbering.
http://pi4j.com/images/j8header-2b.png

These would be my first choices for a 16 channel setup on a B+, zero, 2B, 3B
gpio_pins=0,1,2,3,4,5,6,7,21,22,23,24,25,26,27,28

The hard part is going to be isolating the two halves of the duet.
It's going to take a lot of playing with
custom_channel_frequencies
and
custom_channel_mapping

But an easy way out would be to generate a sync file and then play with the order of gpio_pins

Most of the duets have big differences in the frequencies of the male and female singers. So you should see the channels that respond to each of them and then simply reorder gpio_pins to fit the channels on each half of the board.

Also note it will take a little work to make the sainsmart 16 channel relay board work with the RPI. You would be better off getting 2 5v 8 channel SSR modules

+Tony Freeman did a lot of testing and managed to work out the details for this 12V relay board
results
https://plus.google.com/102177995812978746060/posts/6dajotp71qK
work process
https://plus.google.com/102177995812978746060/posts/fiGFQ9LLKpu

Others have not had the same problems, take +Mike Tomas for example https://plus.google.com/109574045326352752735/posts/KJupKrTFoTU
Not the exact same hardware setup, only some in common.

But if you do look at +Tony Freeman's comments for help.

Or as always, just make a post to the community and someone will share their experience.

And I hope that you would post a video of your final show, we would love to see it.
Add a comment...

About this community

http://lightshowpi.org/ Come join the fun and create a Halloween, Christmas, or whenever lightshow (karaoke, dance party anyone?) - synchronizing the lights to music using your Raspberry Pi as the central controller (i.e. no external computer necessary). As of today, our software automates the creation of a lightshow using the frequency spectrum of the song that is playing back. There are also many add ons - such as SMS control (e.g. change the volume via sms, or allow your neighbors to vote for the next song in the show), pre show lighting configuration, and many others in development. Come and join our community and contribute to the project, we'd love to have you :-)

Kevin Holy

General Discussion  - 
 
Hi! New here, last year i did a simple 8 channel Arduino project without music. This year I would like to take it to the next level and include a FM transmitter and to be able to have a web selection of song. I came across this project thanks to friendly people over at reddit! With that being said, coming from Arduino i have never used a PI so i apologize for the noob questions that may be coming as i have pieces come in. Does this project support 16 channel SSR? What are my options for creating a remote song selection?

Thanks,

Kevin
1
Todd Giles's profile photo
7 comments
 
You can take a look at user videos to see what people have done with it (select Lightshow Videos from the filters at the left).
Add a comment...

Lee Taylor

Web UI Development  - 
 
Hi everyone,

I'm new to the light show stuff and I'm trying to install the webUI. I keep running into the same issue when running ./install.sh. Here is whats going on:

Cloning into 'wiringPi'...
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
./install.sh: line 82: cd: wiringPi: No such file or directory
./install.sh: line 84: ./build: No such file or directory
Houston we have a problem.....
Git and configure WiringPi2 failed with exit code 0

Any help would be great!

Thanks
1
Bronze Cooley's profile photoTom Enos's profile photo
3 comments
 
Gordons site is down right now. It happens from time to time. Give it a little time to come back online.

If you can't wait, then edit install.sh to point to this repo
git clone https://github.com/WiringPi/WiringPi.git
instead of
git clone git://git.drogon.net/wiringPi
Add a comment...

Bradley Martinis

Software Help (LightshowPi)  - 
 
Hello! I'm having a problem and I can't figure it out at all--any help would be greatly appreciated. I'm trying to do audio-in mode. The music is looping back from my phone to my speakers through the Pi like it should, but the lights aren't flashing like they should be. The lights flash when I play one of the sample songs on the Pi, but audio-in just won't do it. Any suggestions? Thanks!
1
Benjamin Ellis's profile photoTom Enos's profile photo
2 comments
 
Also list the hardware you are using.
Add a comment...

Krambakla K.

Software Help (LightshowPi)  - 
 
Hello! I am very new at the Lightshow Pi and it works great with mp3 files. But now I want to connect Shairport and Lightshow Pi. In the photo below, you can see, what I changed in the overrides.cfg . But I actually don't really understand, how to start Lightshow Pi. When I play music via Airplay and then type in the console: sudo python py/synchronized_lights.py , then starts just the demo song. Can somebody please help me? :)
1
Krambakla K.'s profile photoTom Enos's profile photo
4 comments
 
I tested this and it does work.
Can you detail the commands you used to install lightshowpi and sharpoint-sync?
Add a comment...

Caleb B

Software Help (LightshowPi)  - 
 
OK is it possible to stream music to software using ssh? I am using raspicast
1
Caleb B's profile photoTom Enos's profile photo
14 comments
 
Well it looks like omxplayer will work without x. I tested it and it works fine. No audio problems with lightshowpi
Add a comment...

Benjamin Ellis

Hardware Discussion  - 
 
I have been reading about the hardware. My question is what do you perfer for 16 Channels? 1 Sainsmart 16 Mechanical Relay or 2 Sain Smart 8 mechanical or 2 SainSmart 8 SSR relays? I have been reading everyones issues with all. i had 8 SSR last year and blew 2. So i am increasing to 16 to help the load and to add a few more lights. I know i can modify the 16th by removing a cap or jumping the 3.3v to 5v for power. Or Can i do to Smart 8 mechanical without an adapter? Please give me your optionion. I am going towards the 16 in one, i know the mechanical is much noiser than SSR .. but just curious on opinons.
1
Benjamin Ellis's profile photoTom Enos's profile photo
3 comments
 
"the question if I do two 8s. I can just hook to the gpio and power them accordingly (own power cord) right?"

Yes. At most if you mix the relays (ssr vs mechanical) most (not all) mechanical are active low so you just need to use the invert_channel setting in the config.
Add a comment...

Caleb B

Software Help (LightshowPi)  - 
 
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM sysdefault
Traceback (most recent call last):
  File "py/synchronized_lights.py", line 902, in <module>
    play_song()
  File "py/synchronized_lights.py", line 785, in play_song
    output, fft_calc, music_file, light_delay = setup_audio(song_filename)
  File "py/synchronized_lights.py", line 556, in setup_audio
    output = set_audio_device(sample_rate, num_channels)
  File "py/synchronized_lights.py", line 261, in set_audio_device
    output_device = aa.PCM(aa.PCM_PLAYBACK, aa.PCM_NORMAL, cm.lightshow.audio_in_card)
alsaaudio.ALSAAudioError: No such file or directory [default]
[cjb@alarmpi lightshowpi]$


I keep getting this error any Ideas? Running Arch Linux
1
Tom Enos's profile photoCaleb B's profile photo
4 comments
Caleb B
 
I added this "dtparam=audio=on" to boot/config.txt. I then rebooted and tried again and it worked
Add a comment...

John Rivera

General Discussion  - 
 
greetings everyone, new to the group - I am a total rookie when it comes to raspberry pi - and was tasked by my younger brother with a little project or two for a small coffeeshop he is opening - one of which I believe lightshow pi may be a good solution for (or at least - a category all of y'all are very familiar with!)  I learned a ton about relays and how to wire things up properly and what I can do with them but thinking for the small needs of the projects - I may be going way overkill - I am great at following instructions and eager to learn so first let me present my question and goal:

he has a small sign with contains 10 marquee style letters which are lit via 3V LED bulbs (currently each unit powered by two AA batteries)

he would like them to turn off once an hour, and then one at a time each channel/letter turn back on.    - so would be looking to severe the battery boxes and wiring them all to some sort of relay circuit to control via a raspberry pi zero. 

they are currently extremely bright also - so looking at the small schematic I drew up via SSR's - I do not believe I would have any options for dimming via PWM - but once again...total rookie.

the lights are 3V and total draw from all (measured with multimeter) is .819mA @ 3V with all powered up at once so max draw under 1A - with each light consuming from between 65mA up to 117mA 

so I guess my real question is - is doing 10 channels via relays - overkill for something so simple?   any recommendations for something simpler? attached is my incredibly crude diagram of the relay side of things

thanks in advance for any/all pointers.   some of the setups used on here are wild/awesome.   five year old daughter already wants us to make a light party for dance parties in the house ! (power supply for relay board should be 3V/1A   and the measurements of current draw were estimated in diagram
)
1
Tom Enos's profile photoJohn Rivera's profile photo
7 comments
 
that Karaoke set up looks great!   there are a couple small projects that will be done so far but more or less been grabbing a bit of everything and letting them slowly ship in from china!

pifi dac+, tinyLCD TFT screens, cheapo USB sound card, cheap USB wifi dongle, PIR motion sensors, breakout board, piezo buzzers, various switches, momentary and tactile buttons, breadboards, various length jumpers and configurations, OLED displays, some mechanical relays (2/4/8 channel),  PCB headers, etc!

software side of things will just be going through other examples I can find and seeing what I can modify and use to work for our situation.  like I said complete and total rookie when it comes to all of this just been reading and reading and reading for the past month

going to more or less breadboard a few ideas with our daughter to play around with very basic stuff to help familiarize myself a bit more also  and get very simple things going  and expand from there!
Add a comment...

Peter Cinibulk

Software Help (LightshowPi)  - 
 
With the pi 3 is it possible to use bluetooth to play music? Without any usb audio hardware
1
Jim Myers's profile photoTom Enos's profile photo
5 comments
 
To clarify, lightshowpi will not see it as an audio source.
Add a comment...