0
\$\begingroup\$

I have a variable voltage called Vreg (Voltage regulated) which is output of switching regulator (buck converter) and is less than 12v.

Also there is ANALOG Signal with voltage between 0 < V < Vreg < 12v. (Vreg is less than 12v). I need to scale my ANALOG signal from 0 < V < Vreg span to 0 < V < 5v span so that I can read it directly with Arduino. Also need it be economic with few parts or easily available parts like very common op-amps etc. Signal frequency is less than 50 KHz.

Further Clarification:

The problem is that I have a DC FAN with an integrated RPM sensor. It have three exposed pins.

  • GND
  • VCC
  • RPM Signal (Tach OUT)

Module Contains a DC motor, and sensor output is analog. Internal schematic of module is like this:

enter image description here

image taken from here

I need to control the rpm of motor, but the module do not have such capability so i need to play with input voltage VCC to module. I've checked and it did work to control RPM. It can go down to near 0v, but the problem is with Tach pin's signal which have no sufficient voltage if module input voltage is near 0v. How i can overcome this?

I need an Intermediate circuit for this, and cannot use extra pin of UC like some answers below.

Thanks.

\$\endgroup\$
4
  • \$\begingroup\$ Is there any reason a resistive divider wouldn't work? \$\endgroup\$ Commented Jun 11, 2021 at 6:24
  • \$\begingroup\$ I think yes, Vreg is adjustable (variable) and can go less than 5v. Thus signal logic level will be less than 5v and i think divider will not work. Also signal is analog \$\endgroup\$
    – epsi1on
    Commented Jun 11, 2021 at 6:56
  • \$\begingroup\$ You seem to be mixing analog and digital. If so then you need to specify a switching threshold. The question is unclear. Can you draw a graph of output desired vs input voltage. Tip: 'V' for volt. 'k' for kilo. You've written '50 kelvin-hertz'. \$\endgroup\$
    – Transistor
    Commented Jun 11, 2021 at 7:52
  • 1
    \$\begingroup\$ How will you deal with the case when Vreg is zero? \$\endgroup\$
    – Andy aka
    Commented Jun 11, 2021 at 7:55

1 Answer 1

2
\$\begingroup\$

It sounds as though you want to know the ratio of your analog sensor's output in relation to your supply voltage.

schematic

simulate this circuit – Schematic created using CircuitLab

Figure 1. Use a pair of 12:5 potential dividers to divide both the supply voltage and the analog sensor voltage by the same amount. Calculate the ratio in software.

\$\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.