LOGIC PULSE TRAIN TO VOLTAGE

Hi,

I've been looking for some time for a circuit that would convert a train of logic pulses with a frequency of 100 hz into a voltage maybe 0.1v per pulse up to a maximun of 7.8v @ 5mA and hold this voltage for up to perhaps 10 minutes( the conversion need not be that accurate ) .Then reset when another train of pulses is received to give another voltage.

John

This could be easily done using mcu and dac... Are you looking for analog one?

  Joined February 12, 2018      696
Monday at 02:11 PM

Hi,

I would be interested in the easiest way I only need a rough conversion.

Thanks

John

  Joined October 28, 2020      4
Wednesday at 03:44 PM

What will be the voltage of the logic high?

  Joined February 12, 2018      696
Monday at 02:11 PM

Hi,

The logic pulses are 0 to+1.5v lo  +3to+30v high

Thanks

John

  Joined October 28, 2020      4
Wednesday at 03:44 PM

The best way is to use  microcontroller and a DAC. Programme it as a pulse counter use timer fuction to hold the mcu output. The DAC will produce the required output voltage. Since the input pulse is higher in terms of mcu voltage, a divider can be used. Also, an additional op-amp maybe required for the dac output to amplify the voltage to the required level.

The circuit will be simple, cost less, and you will find a lot of headroom. The drawback is you need to write the code and programme it.

  Joined February 12, 2018      696
Monday at 02:11 PM

Hi,

Is there another way without using a microcontroller I have no experience using them.

Although I can build circuits I have no experience designing them which is why I posted this request on this forum.

Thanks

John

  Joined October 28, 2020      4
Wednesday at 03:44 PM

You can try using a 555 timer to generate a PWM signal, then try to pass it through a RC Filter, as for RC value there are many online calculators available for you to try.

  Joined December 02, 2019      117
Monday at 10:02 PM

Use one of counters IC (depends on resolution you want), and connect R-2R ladder to the outputs as a DAC.

 

https://en.wikipedia.org/wiki/Resistor_ladder#R–2R_resistor_ladder_network_(digital_to_analog_conversion)

  Joined November 06, 2020      64
Friday at 08:06 PM

Use some of counters IC (depends on desired resolution) and connect R-2R ladder to its output as a DAC.

 

 

  Joined November 06, 2020      64
Friday at 08:06 PM

Hi,

I’ve been doing more thinking about my problem it seems the difficulty is the reset upon the next train of pulses.So I came up with this thought, a simple circuit to generate a stepladder output 0-7.8v.in 20 steps, and  when 7.8v is reached the circuit will reset to “0”

The idea being – I input 10 pulses = 3.90v then I need to change the voltage to1.95v which needs 5 pulses so I input 15pulses which raises the output to 7.8v whereupon the circuit resets to “0” then counts the additional 5 pulses. (the short time overshoot being unimportant)

I looked at digipots DAC ics R2R but was unable to find one (an up down one ) that would reset to zero the ones I saw only reset to half value.

John

  Joined October 28, 2020      4
Wednesday at 03:44 PM

There are many ways how to do it.

A few:

 

1) Timeout. Lets say you enable 100ms time window to read from 1st pulse to 10nth. After 100ms every other pulse will be considered as new reading of all train(and reseting). Basic monostable with LM555 to obtain single time window will do the job.

2) Send one wide pulse, which will represent a reset state.

 

The idea about adding pulses to reach reset isnt quite good due to case of losting pulse (1 bad pulse can collapse everything).

  Joined November 06, 2020      64
Friday at 08:06 PM

Relating to R2R, i didnt see your desired resolution. Now i see it is about 78. (7.8v/0.1v). In this case, use a counter IC connected to DAC IC.

  Joined November 06, 2020      64
Friday at 08:06 PM