0
\$\begingroup\$

I have a signal input like the sine V1 that is modified by the arduino and transformed it into a square signal. The value of the output depends on the value of a voltage reference given by a potentiometer. Both, the input signal and the reference are ADC inputs in the arduino. I put an interruptor just like the image, assuming PWM2 as arduino, and when the i put the interruptor in the position of the image i see the same voltage on the output as the potentiometer voltage reference, as is this where connected. Why is this happening ? can i do this in a different way ?

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$
3
  • 1
    \$\begingroup\$ So switch it. With a switch. \$\endgroup\$
    – Eugene Sh.
    Oct 20, 2015 at 19:51
  • \$\begingroup\$ how can i switch the power and the signal at the same time ? \$\endgroup\$ Oct 20, 2015 at 19:57
  • \$\begingroup\$ Analog multiplexing switch. There are many ICs available that can do this. They are typically used for video and audio switches. \$\endgroup\$
    – MadHatter
    Oct 20, 2015 at 20:03

2 Answers 2

1
\$\begingroup\$

Are you looking for a bypass switch? This is very common in guitar circuits using a DPDT switch.

True Bypass wiring diagram

If you also want to switch power, you can use this method and use the other pole as a power switch, or you can just use the first method and a DP3T switch, which is a little harder to come by.

Simple Bypass wiring diagram

Picture credit http://screaminfx.com/tech/what-is-true-bypass-guitar-pedal.htm

\$\endgroup\$
0
\$\begingroup\$

You have the switch on the wrong side of the circuit. As shown you have the sinewave fighting the OUT of the Arduino. For example, if the Arduino output is low it will pull down the sinewave towards zero volts.

Move the switch to the other side and remove the short-circuit to ground.

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.