Looking for advice and guidance on my first project

Hey guys and gals,

I'm super happy to be newly part of this community, i've been lurking for quite some time and finally decided to purchase a Arduino Uno kit at a local store. I've read a bit and i've tried the very basic LED projects but now, i'm attempting my first actual project.

So here's what I want to do. I have a set of computer speakers (Harman Kardon Soundsticks 2) hooked up to my TV as analog audio output. The speakers have independant volume control. My chromecast and my tv decoder also both have their own volume control. The issue I am having with my current setup, is that I'm very limited in the volume range that both my devices give me, so I have to get up (I know, right) quite often to increase or decrease the volument level directly on the speakers.

The speakers have a volume control that is quite distinct, but seems very easy to hook-up to an arduino. Basically, there are two metal parts (vol + and Vol -) that are both connected to a single cable providing voltage. When one touches the corresponding metal part, the ground from the human causes the circuit to close and changes the volument accordingly.

My plan is to have my Arduino respond to two distinct IR signals (volume up, volume down), and in turn, control either switches (relays?) connecting the volume buttons on the speakers to ground on the Arduino.

If the physical aspect of this circuit is possible, then what i'm having a really hard time with the software aspect.

Am I in the right direction? How should I switch the "circuits" open or closed in order to control my volume? I've read a few different instructables on how to control LEDs via a remote control, but I'm getting flashing issues and would like to have the LEDs flash instead of having them switch on or off.

Anyone? I'm pulling my hair trying to figure out how to make this happen

#noobgate

If you attach wires to the two pads, can you make the volume change by touching the wires together? If so, then a relay can be used in place of the wires. Or perhaps an analog switch for silent operation.

kilohotel:
Anyone? I'm pulling my hair trying to figure out how to make this happen

#noobgate

4 and a bit hours and a bump? What's the rush? This is a volunteer forum so there may not be anyone interested or knowledgable on what you want to do. It is also a 24 hr a day forum so someone that may be able to assist may be asleep.

Patience is a virtue.

Weedpharma

You can certainly use relays to take the place of your buttons.

You shouldn't wire a relay directly to a microcontroller. You will probably also want to use a resistor, transistor and a diode.

Here's a picture of my relay contraption I made a few years back to send text messages with an old cell phone.

Not a practical way of solving the problem but it was sure fun hearing all those relays clicking.

Each relay has a resistor, transistor and a diode. Do you need help with a circuit to control the relay?

If you're having trouble with the code, post what you have using code tags (see "How to use this forum" thread item #7 for information).

If you don't want the relays to click, you could probably use a solid state relay but you need to make sure you get the correct kind.

I drive 18 relays directly with a 1284P on this board.
Well, I guess 15, think I took 3 off at the end for some reason.
http://www.crossroadsfencing.com/BobuinoRev17/

CrossRoads:
I drive 18 relays directly with a 1284P on this board.
Well, I guess 15, think I took 3 off at the end for some reason.

Yeah, but does it send text message? :slight_smile:

So no transistors right?

You still used diodes?

Do you know the specs of the relays you used? I know a lot of relays can be driven with 20mA or so (even at 3.3V) but isn't a good idea to use transistors unless you know the current draw from the relay is safe for the microcontroller?

2 serial ports, connect one to a GSM module for text messages.
No transistors, no.
Diode per relay, yes.
I believe it was this relay, 5V/16mA coil.