Shop OBEX P1 Docs P2 Docs Learn Events
2 audio source to 1 headset — Parallax Forums

2 audio source to 1 headset

jmspaggijmspaggi Posts: 629
edited 2010-11-17 11:12 in Propeller 1
Hi,

I have connected to my propeller a VS1053 OGG player and an AR1010 FM Receiver.

Both of them are working A1 separatly.

When I put them together, it's still working fine. Perfect.

But when I connect the 2 lefts and the 2 rights to the headset, it's not working anymore. It's like if each cheap is absorbing the signal from the other one.

My goal was to use the propeller to select if it's the AR1010 or the VS1053 I want to use, and mute the other one, but even by muting it's not working.

I tried to put a small diode between the 2, and it's not working.

Any idea how I can handle that? One idea was to connect Vdd to the propeller, and power the VS1053 or the AR1010 when required. But I'm not sure the prop will be hable to handle that. So I can put a 2N2222 instead, but is there another cleaner way? Because it will require 2 more pins, and I don't have :(

Thanks,

JM

Comments

  • kwinnkwinn Posts: 8,697
    edited 2010-11-12 21:03
    jmspaggi wrote: »
    Hi,

    But when I connect the 2 lefts and the 2 rights to the headset, it's not working anymore. It's like if each cheap is absorbing the signal from the other one.

    JM

    What you said is essentially correct. The audio (AC) signals are interfering with each other. You need a "mixer" to accomplish this. It may be as simple as putting a resistor between the two outputs from each channel (L & R) and the L/R headphone connection. Start with 600 ohms and try decreasing the value if the volume is too low.
  • MacTuxLinMacTuxLin Posts: 821
    edited 2010-11-12 21:05
    jmspaggi wrote: »
    Hi,

    I have connected to my propeller a VS1053 OGG player and an AR1010 FM Receiver.

    JM

    I'm passively experimenting with VS1000d (OGG player) with my prop for a while now. Never tried VS1053. Its a codec chip so you're performing encoding as well? Any circuit?
  • jmspaggijmspaggi Posts: 629
    edited 2010-11-13 06:12
    @Kwinn: Thanks! I will try that this morning and keep the forum posted. I don't need to have the 2 playing at the same time. I just need to have one at the time. 4 resistors are a small footprint. So that might be a good option.

    @MacTuxLin: I'm using the Sparkfun breadboard for the VS1053: http://www.sparkfun.com/commerce/product_info.php?products_id=8954 I'm not (yet) using the encoding option, but I will probably. So far it's used to build a audio system to put in my card. I will use the encoding option to be able to take audio notes if required. I can provide all what I did if you want, but it's badly done ;)

    JM
  • jmspaggijmspaggi Posts: 629
    edited 2010-11-17 11:12
    Ok.

    So I tried with resistors from 600 ohms to 10 ohms, and it's working very well!!! Thanks a lot for this hint.

    I did not noticed real differences between 600 Ohms and 10 Ohms. So at the end I kept 220 from one side, and 100 from the other side, so both sources have a pretty equivalent level.

    Now I have to buy an amplifier for the car, and install everything inside ;)

    JM
Sign In or Register to comment.