Im wondering if it is possible to make a 2 audio input, 1 audio output stereo switch using the ATtiny85-20PU. I know i need a button to switch inputs and have an led to indicate selected input. what im wondering is would it possible to this so that the other input is silent? im thinking something along the lines of this but a lot nicer:
the inputs would be from a ps3 (using the old cable for stereo output and a 2xphono to 3.5mm stereo jack) and my pc hooked up to my logic3 2.1 speakers (came out when the ps2 was around) so would look like this.
PS3-----
-- Button ---- attiny ------ Speakers
pc -----/
Would i need any relays if so what would you recommend? what about capacitors and resistors?
Power would be either Battery or usb powered (my motherboard has an always on usb port for charging iphones)
I understand the programing interface as i used it for my i2c temp sensors but that was with help from uni im a mechanical engineer not electrical so please be nice
Thanks in advance
A DPDT latching relay might be a useful device to use - latching relays only need current to switchover and then stay in that state till switched back again - save a lot of power for this kind of application (can go to sleep). Also with relay contacts you don't have to worry about signal voltages at all, everythings isolated - just have audio L+R switched, audio ground bussed between audio connectors. Digital logic and relay winding connections are isolated and can have own ground reference (less chance of injecting noise into analog side of things).
I question the need for a microcontroller at all for this project. (Monentary switch, led, resistor) x2, latching relay, project box, low voltage source to switch the relay and power the leds, correct audio connectors. Done.
sorry for the late reply been busy with work and what not.
I never thought of it like that. Just assumed using an attiny would help with removing audio crossover as i said tho im a mechanical engineer not a an electrical one so if i can save using it then all the better! i can go use it in an rc boat or something! cheers guys.
any recommendation on a latching relay? and would it be possible to allow for expansion?