Can any Ardiuno switch 5V circuit ?

Hello,

is it possible to use a Ardiuno Module to replace switches in a =5V circuit?

in my project i want to split a audiosignal for input. If the signal reachs a peak or
is simply on, the output should switch. I would need 5 different Outs.

Can i realize this with any of the Ardiunos?

best regards,
Sonic

The arduino can source a small amount of current from the digital pins, enough to light an LED. That's a small current at 5V. Up to 30ma I think.

If you need more voltage you can use a transistor to drive more current. A small signal transistor can do around 200-500ma, then you can use an even bigger transistor for more current but at that point you'll probably want an external +5V. You can also use that output to control the transistor which then activates a relay.

One of the digital pins on the arduino can control a solid state relay easily with the potential to control any voltage you want.

BTW if you can describe your project in detail I think you could use the arduino to do some measuring for you using it's analog (adc) pins.

The arduino has 14 digital i/o lines, two are used for serial so you can control 12
led's, transistors driving led's/relays, etc. OR you can use an io port expander and can drive as many as you can control given the memory constraints of the atmega 168.

Since the arduino has six analog lines it can produce or read analog signals. It can make sounds or read the level of sounds given proper interfacing. It can read anything that can be converted to a varying voltage between 0 and 5v.

You could have the arduino activate a digital line if it detects that an incoming signal is higher than a value you pick.

Hello,

is it possible to use a Ardiuno Module to replace switches in a =5V circuit?

in my project i want to split a audiosignal for input. If the signal reachs a peak or
is simply on, the output should switch. I would need 5 different Outs.

Can i realize this with any of the Ardiunos?

best regards,
Sonic

Another option is using a 4016 or 4066 quad analog switch IC. They are much easier (and cheaper) to drive from a digital out than a realy, but can of course not handle the same amount of current.

For an example of switching stuff with the 4066 take a look at my website http://mikmo.dk/cbinterfacedetails.html.
I use the parallel port on the PC to control switches in a modified toy, but the principle could easily be used in the Arduino universe.

One problem though is that switching audio with relays or the analog switch IC will likely result in unpleasent loud clicks / pop's in the sound. Maybe an optocoupler solution is better ?

MikMo

thanks for your reply, that helps to understand the abilitys.

I think one point was not clear four you,...

My explaination in more details: I have a old game console with 2 Joystick/Controller ports.

One port has 5 inputs (left right up down - direction and fire button).

I measure 5V= at the switch of the controller. Now i want that the Ardiuno module replace the
controller switches. So does the output of the module bear the 5V?

Hope thats more clear now.

bye

Sonic

So you want Arduino to replace the Joystick and send the same signals to the console as the Joystick would have done ?
Or do i still not understand the question :slight_smile:

If it's an old ATARI style joystick, that use switches i think it works by applying a voltage (probably the 5V you meassured) to various pins in the console joystick port. I think the 5V are on one pin that is connected to the others by the switches i the joystick.

Just google "joystick pinout" and you will find it

If that is what you want then the 4066 (or optocouplers) is your friend.

One important thing to remeber is that the 4066 can not switch voltages higher than it's own supply voltage, or it will fry.

It just confuses me that you mentioned audio signals in your original post ???

Maybe i'm totally of track here :slight_smile:

MikMo

Hi,.. you are completely right, the Ardiuno should replace the joystic and of course it`s a ATARI :smiley:

it´s like that: i measure 5V on an open switch of the controller (it´s direct measured on the switch, so the controller is already opened.)

so does the module bear this 5V to switch direct on the output or do you mean, the output of the ardiuno is connectet to the 4066 and this unit is instead of the mechanic switch of the Joystick?

about the audiosignal: it will be splitted in some frequence bands (lo/mid/high maybe), and each freqence band channel will
be the signal for one of the joystick channels. (example: audio-low-freq = fire-butten, audio-high-freq = left, etc...)

not so easy to explain but you will understand soon,.. if not i´ll draw a block diagram for you.

ciao
Sonic

Your English is very difficult to understand.

The arduino has digital outputs, with a pull up resistor they can indicate 0 or +5Volts. I don't think the game needs a lot of current so they should drive the joystick input fine. If not then you may need a bit more current and to do that you'd want to allow the digital output to turn a transistor on and off.

As to using the audio as remote control good luck. Zenith had a 'pinger' remote that had metal bars in. When a button was pushed a striker rang the bars. A circuit inside the TV would then detect that tone and perform the action. It's main problem was that the circuitry was discreate analog and over time the circuit would detune. Another problem was you would get crazy effects from car keys and every day noises. It is possible but you might want to consider a touch tone link, IR link or wireless link.

Hi,.. you are completely right, the Ardiuno should replace the joystic and of course it`s a ATARI :smiley:

it´s like that: i measure 5V on an open switch of the controller (it´s direct measured on the switch, so the controller is already opened.)

so does the module bear this 5V to switch direct on the output or do you mean, the output of the ardiuno is connectet to the 4066 and this unit is instead of the mechanic switch of the Joystick?

about the audiosignal: it will be splitted in some frequence bands (lo/mid/high maybe), and each freqence band channel will
be the signal for one of the joystick channels. (example: audio-low-freq = fire-butten, audio-high-freq = left, etc...)

not so easy to explain but you will understand soon,.. if not i´ll draw a block diagram for you.

ciao
Sonic