Electronic – How to simulate a physical push button from an AVR

avrbutton

I've been messing a bit with EL wire that I purchased from amazon, I dissected the control unit and it appears to consist of a transformer, timing circuits(s) and a push button. When you push the button it toggles through the different modes (solid, blink, blink fast).

I want to try and control the wire in a very basic manner from an arduino. I simply want to toggle through the different states. How would I apply voltage or PWM across the contacts of the pushbutton to simulate a push

enter image description here

Best Answer

The closest thing to simulating a real push button would be to use a reed relay, such as these. This particular one with a 5v coil voltage is available from Digi-Key for $1.10; there are others available with 3.3v coil voltages.

The advantage of using a reed relay, is you just wire the contacts in parallel with the original push button, and don't have to worry about how it fits in with the rest of circuit.

The following circuit can be used to drive the relay:

enter image description here

The wire on the left (going into the base resistor R2) comes from the AVR output pin. The pull-down resistor R1 keeps the transistor off in case the output pin on the AVR is put into an high-impedance state (e.g. when the microcontroller is reset).

Related Topic