Page 1 of 2

Raspberry: Sound to Light with Line In?

Posted: Sat Apr 25, 2015 8:55 am
by chka
Hello thanks for this great project for the pi, one question;

I would like use the sound to light option on the pi, unter mac os the project works with the normal line in.

But at the pi it will not work, what can i do?

Thanks at first

Re: Raspberry: Sound to Light with Line In?

Posted: Sat Apr 25, 2015 4:02 pm
by mcallegari
Hi, which version of the Pi do you have ? 1 or 2 ?

The RPi doesn't have an audio input line by default, so you need an extra audio card to have one.
I've done some experiments with a very cheap (and crappy) USB soundcard. Something like this:
http://www.amazon.co.uk/Dynamode-USB-So ... +soundcard

To be honest though, I've never tested audio input on the RPi, since the developments started on version 1, where I strongly do no recommend to do audio input. The CPU is not enough for it.

I'm gonna test it on the RPi 2 as soon as I can.

Re: Raspberry: Sound to Light with Line In?

Posted: Sat Apr 25, 2015 4:19 pm
by chka
at the moment i have the first pi,
the 2 version of the pi is ordert today.

it will be great if you can test this, sound to light is important vor me

Re: Raspberry: Sound to Light with Line In?

Posted: Sun Apr 26, 2015 8:59 am
by mcallegari
Just tested.
It worked out of the box (RPi 2)

Re: Raspberry: Sound to Light with Line In?

Posted: Sun Apr 26, 2015 2:20 pm
by chka
great news, thanks for testing, so i will order the usb sound card :)

Re: Raspberry: Sound to Light with Line In?

Posted: Wed Apr 29, 2015 7:51 pm
by chka
what for a device is the line in?
Sorrowed is audio out but what is in?

I have testet all of them but it will not work
Bildschirmfoto 2015-04-29 um 21.50.49.png
Bildschirmfoto 2015-04-29 um 21.50.49.png (32.99 KiB) Viewed 5895 times

Re: Raspberry: Sound to Light with Line In?

Posted: Wed Apr 29, 2015 7:56 pm
by mcallegari
Leave default device.
As I said, the Pi doesn't have an audio in by default, so the device you see is actually the sound card (which is ?) lines.

Re: Raspberry: Sound to Light with Line In?

Posted: Wed Apr 29, 2015 7:59 pm
by chka
It is this one; http://www.amazon.de/gp/product/B00JKYZ ... ge_o00_s00


dmesg | grep usb show this;

usb 1-1.4: Product: C-Media USB Headphone Set
[ 3.628873] input: C-Media USB Headphone Set as /devices/platform/bcm2708_usb/usb1/1-1/1-1.4/1-1.4:1.3/0003:0D8C:000C.0001/input/input0
[ 3.645655] hid-generic 0003:0D8C:000C.0001: input,hidraw0: USB HID v1.00 Device [C-Media USB Headphone Set ] on usb-bcm2708_usb-1.4/input3

Re: Raspberry: Sound to Light with Line In?

Posted: Wed Apr 29, 2015 8:00 pm
by mcallegari
same chipset that I have, so it has to work

Re: Raspberry: Sound to Light with Line In?

Posted: Wed Apr 29, 2015 8:04 pm
by chka
ok maybe the problem is i use the Apple EarPods as a mic, and no original microphone

Re: Raspberry: Sound to Light with Line In?

Posted: Sat May 09, 2015 8:43 pm
by chka
it will not work, have you install or configurate anything on the pi

Re: Raspberry: Sound to Light with Line In?

Posted: Sun May 10, 2015 8:45 am
by mcallegari
Nope. As I said, it worked out of the box, with no additional configurations

Re: Raspberry: Sound to Light with Line In?

Posted: Sun May 10, 2015 6:52 pm
by chka
what is the type of the microphone, maybe this is the problem

Re: Raspberry: Sound to Light with Line In?

Posted: Mon May 11, 2015 8:47 am
by mcallegari
I used some crappy old headphones with integrated microphone.
I've got also an old microphone bundled with an old Creative SoundBlaster NX.
They both work without any special adjustment

Re: Raspberry: Sound to Light with Line In?

Posted: Mon May 11, 2015 9:03 am
by chka
mhh....
is it possible so see the line in volume anywhere as a audio diagram?

maybe the sound card will noch work

Re: Raspberry: Sound to Light with Line In?

Posted: Mon May 11, 2015 3:16 pm
by mcallegari
You can try like this:
http://linuxconfig.org/how-to-test-micr ... cture-alsa

I don't remember if arecord is in the image though. In case, just install it

Re: Raspberry: Sound to Light with Line In?

Posted: Mon May 11, 2015 5:07 pm
by chka
it will not work:

Code: Select all

root@raspberry-pi:~# cat /proc/asound/cards
 0 [ALSA           ]: bcm2835 - bcm2835 ALSA
                      bcm2835 ALSA
 1 [Set            ]: USB-Audio - C-Media USB Headphone Set
                      C-Media USB Headphone Set at usb-bcm2708_usb-1.4, full speed
root@raspberry-pi:~# arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@raspberry-pi:~# arecord -d 10 /tmp/test-mic.wav
arecord: main:682: audio open error: No such file or directory

Re: Raspberry: Sound to Light with Line In?

Posted: Mon May 11, 2015 8:37 pm
by chka
it works!!!!!!!!


But i have to start the audiotriger on the gui, over the webpanal it will not start

Re: Raspberry: Sound to Light with Line In?

Posted: Mon May 11, 2015 8:37 pm
by mcallegari
chka wrote:it works!!!!!!!!
But i have to start the audiotriger on the gui, over the webpanal it will not start
Ah OK ! That explains everything then.
You might have found some issue with the web interface. I'll check it as soon as I can

Re: Raspberry: Sound to Light with Line In?

Posted: Tue May 12, 2015 7:54 am
by chka
i have add my project so you can see it.

when one of my trigger work, the other one will be enable over the web interface and work also