STEP UP/STEP DOWN RAMP GENERATOR
STEP UP/STEP DOWN RAMP GENERATOR
(OP)
Hi everyone,
I have an unusual application in wich I need one Output (OUT1) and two input signals (IN1 and IN2)in a circuit, the input signals will provide +V (+24V) or will be open (lead lifted not grounded) depending on certain conditions:
1. IN 1 = +V, when this happen a Step Up voltage ramp is generated at a rate of 1V/sec until it reaches +10 V approximately, when IN 1 is not longer applied with +V (input open) the voltage reached (+10V) must remain until the input conditions change.
2. IN 2 = +V, when this happen a Step Down voltage ramp is generated at a rate of 1V/sec until it reaches 0V, when IN 2 is not longer applied with +V (input open) the voltage reached (0)V must remain until the input conditions change.
I have experimented with a circuit using a PNP bipolar transistor arranged as a constant current source charging a Capacitor (IN1), this gives me the step up ramp with no problem at 1V/sec, the inconvenience of this is that I have to provide negative voltage on transistor base to operate it, this obligates me to use a negative source on the application which means to add more investment and circuitry. Besides when trying to dicharge the capacitor using a second transistor (NPN)as IN2 the step down ramp does not act in the same way as the ramp up, the difference is the time constant even I am using same resistor values.
If someone could help me to find out this application I will be really grateful.
Thanks
Jorge
I have an unusual application in wich I need one Output (OUT1) and two input signals (IN1 and IN2)in a circuit, the input signals will provide +V (+24V) or will be open (lead lifted not grounded) depending on certain conditions:
1. IN 1 = +V, when this happen a Step Up voltage ramp is generated at a rate of 1V/sec until it reaches +10 V approximately, when IN 1 is not longer applied with +V (input open) the voltage reached (+10V) must remain until the input conditions change.
2. IN 2 = +V, when this happen a Step Down voltage ramp is generated at a rate of 1V/sec until it reaches 0V, when IN 2 is not longer applied with +V (input open) the voltage reached (0)V must remain until the input conditions change.
I have experimented with a circuit using a PNP bipolar transistor arranged as a constant current source charging a Capacitor (IN1), this gives me the step up ramp with no problem at 1V/sec, the inconvenience of this is that I have to provide negative voltage on transistor base to operate it, this obligates me to use a negative source on the application which means to add more investment and circuitry. Besides when trying to dicharge the capacitor using a second transistor (NPN)as IN2 the step down ramp does not act in the same way as the ramp up, the difference is the time constant even I am using same resistor values.
If someone could help me to find out this application I will be really grateful.
Thanks
Jorge





RE: STEP UP/STEP DOWN RAMP GENERATOR
<nbucska@pcperipherals.com>
RE: STEP UP/STEP DOWN RAMP GENERATOR
RE: STEP UP/STEP DOWN RAMP GENERATOR
In fact, there's no reason why you can't use an NPN current source and swap the sense of the amplifiers.
TTFN
RE: STEP UP/STEP DOWN RAMP GENERATOR
I would use digital circuit : input --> comparators--> (start logic if needed ) --> up/dn counter --> DAC . Select osc. frequency, DAC resolution etc. to satisfy specs.
<nbucska@pcperipherals.com>
RE: STEP UP/STEP DOWN RAMP GENERATOR
JM
RE: STEP UP/STEP DOWN RAMP GENERATOR
When IN1 goes from 0 to 24V : it starts to ramp up
at 10V it stops
When IN2 goes from 0 to 24 V : it ramps down, at 0 is stops.
Any other change won't affect the ramp generator.
I E-mail the circuit.
<nbucska@pcperipherals.com>
RE: STEP UP/STEP DOWN RAMP GENERATOR
JM
RE: STEP UP/STEP DOWN RAMP GENERATOR
<nbucska@pcperipherals.com>
RE: STEP UP/STEP DOWN RAMP GENERATOR
RE: STEP UP/STEP DOWN RAMP GENERATOR
<nbucska@pcperipherals.com>
RE: STEP UP/STEP DOWN RAMP GENERATOR
JM
RE: STEP UP/STEP DOWN RAMP GENERATOR
RE: STEP UP/STEP DOWN RAMP GENERATOR
<nbucska@pcperipherals.com>
RE: STEP UP/STEP DOWN RAMP GENERATOR
output 4 to 1 mux selects between:
non-inverting output
sample-hold of non-inverting output
inverting output
sample-hold of inverting output
ramp is discharged
4:1 mux selects non-inverting output; output is 0V
ramp up; output starts ramping up
ramp reaches 10V; output reaches 10V
4:1 mux selects sample-hold of non-inverting output; output stays at 10 V
ramp is discharged; output stays at 10V
4:1 mux selects inverting output; output stays at 10V
ramp up; output ramps down
ramp reaches 10V; output reaches 0V
4:1 mux selects sample-hold of inverting output; output stays at 10V
ramp is discharged; output stays at 0V
4:1 mux selects non-inverting output; output stays at 0V
Something like that. It's a bit of a gludge, but allows you to use the same ramp with the same timing and linearity for both up and down ramps.
TTFN
RE: STEP UP/STEP DOWN RAMP GENERATOR
One NPN current source won't do it -- you need to ramp down, too, with the same slope. You could use a
voltage reference -- both + and inverted i.e. - )
switched to common integrator.
The hold time ( at 0 and 10 V ) is not specified, may be
too long to realize it by analog due to leakages.
Accuracy is hard to satisfy and maintain.
I submit digital with DAC is better and easier -- even if
it takes more circuitry.
<nbucska@pcperipherals.com>
RE: STEP UP/STEP DOWN RAMP GENERATOR
Obviously, the inverting output needs a 10V input offset to put the ramp 0V at 10V output, so when the ramp goes up, the output of the inverting amp goes down toward 0.
Since the poster has not specified hold times, accuracy, linearity, etc., there was no reason to assume any limitations on the circuitry.
TTFN
RE: STEP UP/STEP DOWN RAMP GENERATOR
Hold timemay vary, it could be 1 sec to anytime, the rule is if I start IN1(ON), ramp goes up from 0V to 10V when IN1 (OFF) 10V are hold until IN2 is activated (ON) and ramp down from 10V to 0 V, the slope going up and down is the same 1V/sec means that after tens steps i will reach 10 V if I ramp up or I will reach 0V if I ramp down, both input are exclusive meaning that IN1 will never be activated at the same time with IN2 is one or the other. Linearity when ramping up or down must be, accuracy I may allow +/- 2% of error.
JM
RE: STEP UP/STEP DOWN RAMP GENERATOR
You could probably get a serial DAC with a simple FPGA to run the logic.
TTFN
RE: STEP UP/STEP DOWN RAMP GENERATOR
1 bit counter. You can use 8,9 or 10 MSB-s.
If you have a computer in the system, IRSTUFFs FPGA
suggestion may be worth considering -- otherwise you
need a PROM for programming the FPGA.
<nbucska@pcperipherals.com>