2
\$\begingroup\$

I'm looking for a device that can control an analog signal without interference. I need it to be controlled by a digital control line (0v - 5v). The input voltage (0v - 5v) should equal the output voltage (0v - 5v). It doesn't matter if the control line is active high or active low. If the control line is active then the output should equal 0v.

An example application might be as shown below. You have a blinking LED but you also want to control the brightness of the LED using a pot.

schematic

simulate this circuit – Schematic created using CircuitLab

\$\endgroup\$
2
  • \$\begingroup\$ An N-MOSFET is what you want below the 150R resistor in your schematic \$\endgroup\$
    – Trevor_G
    Commented Jan 14, 2018 at 23:49
  • \$\begingroup\$ Looks like the ideal application for a couple of LM555 timer, one to set frame rate and one to set on time/enable. \$\endgroup\$ Commented Jan 15, 2018 at 1:57

2 Answers 2

1
\$\begingroup\$

For what you have an N-channel MOSFET will do what your need if configured as shown below.

schematic

simulate this circuit – Schematic created using CircuitLab

However, you may find the circuit below works better.

It uses a simple current regulator circuit with a logarithmic pot you can use to adjust the current from about 1ma to close to 20mA and hence the brightness of the LED more linearly. (Assuming it is in the right way round :)

The clock line enables the current regulator.

schematic

simulate this circuit

\$\endgroup\$
1
\$\begingroup\$

Why not just drive a 5V square wave to the pot?

However your LED circuit likely wont do what you expect - LED brightness is not linear with current (or voltage) - the best way to dim a flashing led is by gating a PWM signal on and off

\$\endgroup\$

Your Answer

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

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