EEVblog Electronics Community Forum

Electronics => Beginners => Topic started by: SeaMaster on June 26, 2022, 12:02:05 am

Title: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: SeaMaster on June 26, 2022, 12:02:05 am
Hi,
I'm trying to design a circuit to control hydraulic valve that requires voltage (not the common PWM found in most other hydraulic valves) to control.
I have joystick with 5K pot that would like to utilize for this project.
The valve will stay in the centre (neutral) at 3.5V and swings of 1.5 volt up or down will make it open in the appropriate direction. I'm not sure what is the current draw requirement, but i thin 1A will be sufficient. So in brief:
2V max open one way
3.5V neutral position
5V max open the other way
My initial idea was to do the with LM317 adjustable regulator control, but I'm ready to aboundon it as can't make the resistors values to adjust the output as per the valve requirements with the 2.5V output being provided when the wiper is in the middle 2.5K on each side

Any ideas how or what schematic can meet the above requirements?

Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: sleemanj on June 26, 2022, 12:09:38 am
https://docs.google.com/spreadsheets/d/1HD0tzSoef0jmiv7g1oEDHRcbc_XZmmBFHqzxtJ3-pqA/edit#gid=0

File > Make A Copy and change the VIn as you desire.

Havn't used this in years so you might want to check the calculations. (Checked, they look ok to me).

[attachimg=1]
Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: freda on June 26, 2022, 12:12:27 am
get 1 of two more pots on either side, and adjust. did you try that?
Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: John B on June 26, 2022, 12:12:36 am
A 5k pot in series with a 3.33k resistor will give a range of 2-5V if powered with a 5V reference. It would be a good idea to then buffer the output voltage with an opamp.

Edit: Err, with that output current requirement, I would probably feed that reference voltage into a switchmode controller to then provide the desired output voltage.
Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: Benta on June 26, 2022, 12:16:04 am
What's the supply voltage?
Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: sleemanj on June 26, 2022, 12:21:20 am
Oh I didn't notice the current requirement. 

You'll need to take a different approach than just a 5k pot unless your source voltage is very considerable indeed (and the pot very special!)

Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: SeaMaster on June 26, 2022, 12:37:57 am
"What's the supply voltage?"



I can make it anything i want from 28V DC input with switching PS
Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: ledtester on June 26, 2022, 04:31:05 am
I'm not sure what is the current draw requirement, but i thin 1A will be sufficient.

Can you measure the required current? Usually a control voltage signal isn't required to source a lot of current.

Or, do you have a datasheet (or even model number) of the valve?

Quote
2V max open one way
3.5V neutral position
5V max open the other way

What happens when the control voltage is at 0 volts? Is it the same as when it is at 2V?

Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: SeaMaster on June 26, 2022, 05:13:08 am
It is Italian proportional valve made by Brevini. unfortunately the boat that it is on is in new Zealand and Im back home in Vancouver
All I know from the Brevini North American dealer is the information I supplied before:
2V opens it oneway 3.5V both sides closed (spool in the centre) and 5 volt opens it the other way with proportional output for everything in-between
In the past I drove them with little linear regulator and a pot, but it was very non symmetrical  as I couldn't  get the linear regulator to adjust the output voltage as per the spec required with linear 5K pot. So always I had one side perform way better than the other, because I had no choice but had to just the trim to the middle where the valve will be off, but then in this case one of the sides always suffered with insufficient voltage to fully open
Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: ledtester on June 26, 2022, 05:42:51 am
I found this catalog at Brevini's web site:

https://www.brevinifluidpower.com/products-family/proportional-control-valves/ (https://www.brevinifluidpower.com/products-family/proportional-control-valves/)

catalog link:

https://medialibrary.dana-industrial.com/wp-content/uploads/Technical-catalogue-Valves-and-Electronics.pdf (https://medialibrary.dana-industrial.com/wp-content/uploads/Technical-catalogue-Valves-and-Electronics.pdf)

In the catalog there are various circuit diagrams for "proportional control" valves such as this one:

[attach=1]

So it is possible you could just use a pot.

In any case, if you can identify the actual product the catalog might have useful information with regard to interfacing the control signal.
Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: SeaMaster on June 26, 2022, 06:52:14 am
Thank you for the links. It appears that I found the valve type I have (see the attached image)
From what I could understand the one that i have has input impedance of 12K, but regardless, i still created a buffered schematic that can handle some current.
Please review and comment. the schematic was tested in LTSpice and appear to work well.

Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: ledtester on June 26, 2022, 07:45:26 am
Are you intending to use an actual OP113 or is that just representing a generic op-amp?

It looks like you're going to have a higher voltage available (either 12V or 24V).

I would simplify your op-amp circuit with just an op-amp voltage follower. R6 and the 5K joystick gives an input voltage range of 2V to 5V. Feed that into an op-amp follower but use 12V (or 24V) as the positive supply rail for the op-amp. Then pick a modern op-amp that is unity gain stable and you're done.

The OP113 is unity gain stable but with a 5V supply it is only guaranteed to output a max. of 4V  (see page 5 of the datasheet).

OP113 datasheet:

https://www.analog.com/media/en/technical-documentation/data-sheets/OP113_213_413.pdf (https://www.analog.com/media/en/technical-documentation/data-sheets/OP113_213_413.pdf)

Quote
Please review and comment. the schematic was tested in LTSpice and appear to work well.

It would be helpful to have the .asc file.
Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: magic on June 26, 2022, 07:57:11 am
The thing you have drawn in SPICE is not going to be stable. And the PNP is upside down.

Don't overthink it.
Generate 5V with LM78L05.
Divide it down with the pot and R6.
Buffer with LM358 voltage follower powered from the 28V input.
Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: SeaMaster on June 26, 2022, 10:00:50 am
Sorry that was just random opamp i picked as the one that i was planning to use NCS20071 i did not have spice model for nor i know how to get one...
Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: Zero999 on June 26, 2022, 11:17:11 am
The thing you have drawn in SPICE is not going to be stable. And the PNP is upside down.

Don't overthink it.
Generate 5V with LM78L05.
Divide it down with the pot and R6.
Buffer with LM358 voltage follower powered from the 28V input.
Exactly.

Another option is to regulate the 28V down to a lower voltage using the 317. This might be a good idea if there's a risk of voltage spikes on the DC input
(https://www.eevblog.com/forum/beginners/voltage-output-2v-to-5v-with-5k-pot-with-3-5v-output-in-the-middle/?action=dlattach;attach=1522468;image)
Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: John B on June 26, 2022, 10:11:15 pm
I think the conversation really needs to go back to the first post. What exactly are you driving? Does the valve have some active electronics of it's own that accepts a control voltage signal?

You mention around 1A of supply current. Are you sure it isn't just a solenoid? In which case why couldn't PWM control work? If it's an issue of PWM frequency being too high/low etc you can always add additional L/C filtering to get something approximating a DC signal.

All the solutions so far seem to be along the lines of a linear voltage reg which seems wasteful and unusual to control a valve.
Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: magic on June 27, 2022, 04:52:40 am
This has been answered: 12kΩ input impedance.
Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: Zero999 on June 27, 2022, 01:43:10 pm
One disadvantage of the circuits posted so far is, they all rely on the potentiometer's value being fairly accurate. The problem is potentiometers typically have a poor tolerance of 20%. A solution to this is to bypass the potentometer with a resistor and adjust the value of the other resistor to compensate. The disadvantage of this is it uses an extra resistor and more current.
(https://www.eevblog.com/forum/beginners/voltage-output-2v-to-5v-with-5k-pot-with-3-5v-output-in-the-middle/?action=dlattach;attach=1523317;image)

EDIT:
If you're using the  78L05 anyway, add a potential divider to the output to get 2V and buffer it with the spare LM358, which is free and connect the potentiometer between 2V and 5V.
(https://www.eevblog.com/forum/beginners/voltage-output-2v-to-5v-with-5k-pot-with-3-5v-output-in-the-middle/?action=dlattach;attach=1523329;image)
Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: SeaMaster on June 30, 2022, 11:06:24 pm
Thank you all for the replies. I'm not sure yet which one will be the best solution for this case. I will have to think about that and decide what should be implemented. The solution with OpAmp are simple, but can't drive much current. To be on the safe side, I would like the design to be able to drive about 1A of output current. 
Linear regulator will not work for that.
So I'm still quite not sure what will work....
Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: John B on June 30, 2022, 11:29:28 pm
This is why I was a little confused. 12k input impedance with 5V max input voltage is less than a milliamp. How many valves do you intend to drive, where are you getting the 1A figure from?
Title: Re: Voltage Output 2V to 5V with 5K pot with 3.5V output in the middle
Post by: Zero999 on July 01, 2022, 07:13:14 am
Thank you all for the replies. I'm not sure yet which one will be the best solution for this case. I will have to think about that and decide what should be implemented. The solution with OpAmp are simple, but can't drive much current. To be on the safe side, I would like the design to be able to drive about 1A of output current. 
Linear regulator will not work for that.
So I'm still quite not sure what will work....
You said in your other post (https://www.eevblog.com/forum/beginners/voltage-output-2v-to-5v-with-5k-pot-with-3-5v-output-in-the-middle/msg4262632/#msg4262632) it has an input impedance of 12k, which means the most it can draw is 417µA. Where did you get 1A from? I can tell you, it won't draw 1A from the 2V to 5V control voltage connection.