Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
The circuit i provided i want to measure a signal that is expected to be
in the 0V-50V range. so what resistor values for R1 and R2 to allow an ADC with a +3.3V reference to
accurately measure this input.
I want to Choose a filter cap for an analog input. if I used R1 and R2 from first Part
what will be the value for C1 if the sampling rate of the input will be 10kHz or 5Khz.
Thank you so much for letting me know about image size. In future I will take care of that.
Aah, you want to use C2 as low pass filter. That´s the information we need.
(You could use the capacitor in a voltag divider for a scope to adjust for stray capacitance...for example)
Also new and good information. You want to use it in front of an ADC.
1) For simple voltage dividers: you may do a internet search for "how to calculate a resistive voltage divider"
or "online voltage divider calculator".
I get 100 million hits. All basically tell the same: the voltages bahve like the resistors and vice versa.
So if 50V is input (voltage across R1 and R2) and you want 3.3V across R2 then there is 50V - 3.3V = 46.7V
across R1. Simple math, you should be able to do it on your own. (or use the online calculators)
Theretically you are free to choose the value for one resistor and calcuate the other resistor. There theoretically are no resitrictions for resistor values. Every resistor can be >0 Ohms (it can be microohms, milliohms, ohms, kiloohms, megaohms).
The resitriction comes from "your application". But we don´t know much about your application.
* where does the (50V) signal come from? What is the source impedance, what´s it´s frequency range and what it´s voltage ripple, what ar the limits for current drawn... We can not give you any answer about this.
* where does the signal go to. Which ADC exactly? Is a buffer (opamp) used? what accuracy do you expect (in value, not as text), what resolution and precision do you expect ... over which bandwidth.
A voltage divider could be used for:
* to check battery voltage of a 48V driven stacker (huge battery). Mainly DC voltage, low ripple, no high precision needed, corrent not problematic
* get the average voltage of an PWM´d 48V signal. High voltage ripple that needs to be suppressed...
* check the output signal of an audio amplifier. Maybe you want to see signals in the range of 1kHz...(not to be suppressed)
* you may check the capacitor voltage of a tiny energy harvesting circuit. Current is critical, precision not that important, .. fast reaction...
There are countless applications with all different requirements.
Long stroy short: We need more information.
Btw: fc usually is used as cutoff frequency. With a RC circuit this means where the amplitude of the input sine is suppressed to 70%.
Fc of 5kHz and sampling frequency of 5kHz is (in my eyes) no good idea at all.
fc should be (much) lower than half of the sampling frequency. (unless you are explicitely using undersampling techniques)
Let´s say you want to get less than 1LSB ripple at a 10 bit ADC with a full voltage 1kHz PWM input....
then your (1 LSB is about 1/1000 on a 10 bit ADC) fc should be also 1/1000 of the input frequency
fc = 1/1000 of 1kHz = 1Hz (rule of thumb)
ADC datasheets (e.g. for microcontrollers with built-in ADC) often have specification of maximal source impedance. Or input bias current can be specified. These info is necessary to decide about voltage divider impedance.
I agree that a low pass filter may reasonable. Besides sampling rate, the used input signal frequency range should be known.
In human, rather than scientific notation, C = 52 nF.
Bonus maths: I inrush = C * (dV/dt)
I inrush = 52 nF * (50V/? in seconds)
But, we know that 1 second/5 Hz = 0.2 seconds. As I have no idea if it's a 50% on/off square wave or a constant signal, I'll assume constant and not divide 0.2s to 0.1s. I'll throw in that dt depends greatly on signal rise time, so 13 uA is (much) lower than a fast rise time signal would generate.
So, anyway, 52 nF * 250 = 13 uA 'inrush'.
And, 50V/9.34k = 5mA.
Hope rough calculations help you get the calculating done and aid in considering aspects beyond merely Rdiv and fc. We haven't even factored in resistor and capacitor tolerances and their ppm/°C for the lowest, typical, and highest Vdivs and fcs we might encounter, unless the circuit only operates at that fairytale, elusive, perhaps even mythical place called 25°C.
--- Updated ---
Dohhh... dV the capacitor will see is 3.3V maximum, not 50V, my mistake. Excuse me, I'm very hungry...