Turned arduino 5vdc analog pin to 0vdc (gnd) in order to mimic a momentary switch

arduino

I'm just wondering how I would go about getting the normal 5vdc that comes out of the Arduino analog/digital pins to a 0vdc signal? I wanting to mimic a push button (momentary switch) so that it acts as if I am pushing a button on a remote.

I'm sure I could use a resister of some value in order to get it down to 0vdc but I am unsure of that value nor am I sure that's the best way to go about doing something like this.

Any help would be great! Thanks!

update

Would using a TLP592A work doing it this way:

enter image description here

Best Answer

What interface you will need depends on the circuit of the remote. If the switch shares a common ground with the Arduino then you might get away with just connecting directly to it. However for safety I would use a diode or transistor to provide an 'open collector' output. The circuit below shows how both a diode and transistor would be wired (choose one or the other, not both!).

enter image description here

Some remotes have their switches connected to battery positive, perhaps to make the transmitter turn on whenever a button is pressed. Others have buttons arranged in a matrix of rows and columns, so both ends of the switch may be floating. In these cases you can use an opto-coupler or PhotoMOS 'relay' (opto-coupler with FET output).

The circuit below shows how to use an opto-coupler. Note that the opto-coupler's output is polarity conscious, so you may have to swap pins 4 and 5 to get it working.

enter image description here

Related Topic