Digital Ramp ADC Analysis difficulty

Thread Starter

desecrate

Joined May 26, 2010
10
I have been using this website for a few years now. I decided to do a degree in Electronic Engineering last year, and I am already struggling :)

I have attached a circuit that is part of a report I must do on a fuel level indicator. V_fuel ranges from 0 to 3V, where 3V is a full tank. OA1, OA2, and OA3 are HCT logic family op-amps (i.e. TL074). Vp=5 and Vm=-5.

I have more questions than answers about this circuit to be honest. We are only just learning this material, so it is a big step for me to absorb it all.

I'll begin with my attempt at explaining the circuit. I think that the resistors R1 to R4 will give out a stepped signal, ranging over time, from greatest voltage to least. Then they go into a summing amplifier? Which will then invert the signal too. The next op-amp I am uncertain of, I know it has a gain of 1 due to R6=R7, but I don't know what it's doing except inverting the signal? The next op-amp I believe is a comparator, that will compare V_fuel with the stepped signal. It will give out a 5V signal for when the analogue signal is closest to the step that corresponds to the binary equivalent. The diode is to make sure that a negative value never gets through? I don't know why the logic inverter is there.

I must calculate the values of R1 -> R5, the assignment says that they should give out voltages between 0V to 3.75V. I am not certain how to do this as I dont know what the op-amp is going to do. I believe the resistor network, and the next two op amps are combined to be as what is normally considered a DAC?

I must also draw graphs of points J, K, and L in a complete cycle. L should be trivial, I think J is simply the inverted steps. K back to the non-inverted steps again??

My initial thinking was that the summing amplifier is level shifting down to 0 to 3.75V and the next op amp is simply inverting the signal. Anyway, sorry about this big lump of text, but I have so many questions and very little answers; if it is too much to decipher what I mean, then if you can, please try to explain what the first two op amps are doing and why they are doing it.
 

Attachments

Georacer

Joined Nov 25, 2009
5,182
The middle OpAmp is for inversion and isolation (unneeded) purposes only. What you have to do is read Bertus' link to DAC converter in order to build a signal that will fluctuate from 0V to 3.75V when given the numbers from 0000 until 1111. That is as far as your assignment goes, as I see it.

What I don't understand is the use of the counter in the first place and the purpose of the 7-segment display. Any thoughts?
 

Adjuster

Joined Dec 26, 2010
2,148
I assume that the latch is meant to hold the count value corresponding to the moment when there is a transition at the output of the last op-amp, as the voltage ramp reaches the sensor level. Displaying this as a number shows the fuel level.
 

Thread Starter

desecrate

Joined May 26, 2010
10
Things have cleared up a little bit after reading that link, Bertus. This is what I think is happening in order from counter to decoder:-


  • The counter counts from 0 to 15. It counts once every clock tick.
  • The 5V out is translated into a step by the resistor network.
  • This 'step' goes into the first op-amp which is setup as a summing amplifier. The summing op-amp shifts the voltage from 0->5V to 0->3.75V? The assignment says this is what the voltage range should be at point J.
  • The next op-amp is for isolation and inversion, so at point K, it will be exactly the same as J but inverted?
  • The comparator now compares with the analogue voltage, v_fuel. It will send +5V through the diode if the step voltage is equal to v_fuel. If not, it will send out -5V, which will be supressed by the diode? Giving around 0V.
  • The inverter is there so that the comparator, upon sending out a '1', i.e. +5V, will then be reset on the next count, as the shift register operates only on a rising clock edge?
I am still uncertain about the resistor network/summing amp. If the resistor network can give out 0->3.75V then why does the summing amp need to exist?

This is the only part of my course I struggle on, even the difficult math, programming, logic, physics, systems design, lab work, software engineering are a cakewalk compared to circuit analysis. It f***s me off and I feel like giving up on the course because of this alone, it's the most esoteric part of E.Eng.
 

bertus

Joined Apr 5, 2008
22,276
Hello,

When you can get 0 - 5 Volts from the DAC, you can attenuate the voltage to get the 0 - 3.75 Volts.

Bertus
 

thatoneguy

Joined Feb 19, 2009
6,359
R1 to R4 are different values.

From the counter, all outputs are 0V or 5V. What each resistor does is apply the "weight" of the change per binary digit. The LSB will have the smallest voltage change out of the summing amp, while the MSB will influence the largest voltage change from the summing amp. The two in between are in between.

You need to balance R1-R4 with R5 to create 0-3.75v at the output. R5 will scale the output's maximum voltage.

Here is a link describing the formula

Bottom of this page shows it better
 

Thread Starter

desecrate

Joined May 26, 2010
10
Oh man that bottom link was an excellent explanation, thank you thatoneguy. I think that may have cleared up all my problems in one go haha. I think however it's bedtime now, I'll finish this tomorrow and let you know if my equations simulate properly.
 

Georacer

Joined Nov 25, 2009
5,182
It really depends on the OpAmp, but all should handle KHz easilly. Not that you need such a high frequency. I don't think you'd expect the indicator voltage to change by the second, so I guess to get a "real time" result, a sampling time of 100 or 50 ms would be adequate.
 

krazh

Joined Nov 22, 2013
2
I have been using this website for a few years now. I decided to do a degree in Electronic Engineering last year, and I am already struggling :)

I have attached a circuit that is part of a report I must do on a fuel level indicator. V_fuel ranges from 0 to 3V, where 3V is a full tank. OA1, OA2, and OA3 are HCT logic family op-amps (i.e. TL074). Vp=5 and Vm=-5.

I have more questions than answers about this circuit to be honest. We are only just learning this material, so it is a big step for me to absorb it all.

I'll begin with my attempt at explaining the circuit. I think that the resistors R1 to R4 will give out a stepped signal, ranging over time, from greatest voltage to least. Then they go into a summing amplifier? Which will then invert the signal too. The next op-amp I am uncertain of, I know it has a gain of 1 due to R6=R7, but I don't know what it's doing except inverting the signal? The next op-amp I believe is a comparator, that will compare V_fuel with the stepped signal. It will give out a 5V signal for when the analogue signal is closest to the step that corresponds to the binary equivalent. The diode is to make sure that a negative value never gets through? I don't know why the logic inverter is there.

I must calculate the values of R1 -> R5, the assignment says that they should give out voltages between 0V to 3.75V. I am not certain how to do this as I dont know what the op-amp is going to do. I believe the resistor network, and the next two op amps are combined to be as what is normally considered a DAC?

I must also draw graphs of points J, K, and L in a complete cycle. L should be trivial, I think J is simply the inverted steps. K back to the non-inverted steps again??

My initial thinking was that the summing amplifier is level shifting down to 0 to 3.75V and the next op amp is simply inverting the signal. Anyway, sorry about this big lump of text, but I have so many questions and very little answers; if it is too much to decipher what I mean, then if you can, please try to explain what the first two op amps are doing and why they are doing it.
Hello 'desecrate'.
I find myself in a similar situation as you were in. Only this time, required to analyse a freezer indicator circuit.
Is there a way I can contact you (if you don't mind), just to clear a few doubts ?
Would appreciate it.

Cheers !!
 

t_n_k

Joined Mar 6, 2009
5,455
Hello 'desecrate'.
I find myself in a similar situation as you were in. Only this time, required to analyse a freezer indicator circuit.
Is there a way I can contact you (if you don't mind), just to clear a few doubts ?
Would appreciate it.

Cheers !!
Hello krazh,

You probably have noted the OP has been inactive since 2011. This doesn't necessarily mean they don't still monitor AAC. You could try sending a PM direct to them.
Otherwise why not begin a new thread and then you will get plenty of suggestions from interested members.
 

krazh

Joined Nov 22, 2013
2
Hello krazh,

You probably have noted the OP has been inactive since 2011. This doesn't necessarily mean they don't still monitor AAC. You could try sending a PM direct to them.
Otherwise why not begin a new thread and then you will get plenty of suggestions from interested members.
Hello t_n_k,

Thanks for your guidance.
I am new to AAC and for some reason am unable to find the menu-option to PM the OP directly. Maybe it has been deactivated by the user ? !!

Indeed, your idea of a new thread sounds practical. But would be great if I were able to atleast attempt to contact the OP. Any suggestions ?

Kind regards.
 

WBahn

Joined Mar 31, 2012
30,043
Or, when you click on their username on one of their posts, the second option is to send a private message to them. I just tested it for descrate and it works (brings up the PM page ready for you to enter the message).
 

bertus

Joined Apr 5, 2008
22,276
Hello,

The PM system is disabled for new members (post count less than 10).
As soon as you reach 10 post counts, the PM system will be available.

Bertus

PS the last activity of the OP was 10 feb 2011.
He also disabled the possibility to email him.
 

WBahn

Joined Mar 31, 2012
30,043
Ah. I forgot about that. I've seen it pointed out several time and I can never, for some reason, remember it.
 
Top