Sonsivri

Electronics => General Electronics => Topic started by: tronicgr on February 26, 2008, 01:08:25 13:08



Title: Voltage level converter circuit
Post by: tronicgr on February 26, 2008, 01:08:25 13:08
Hi to all,

I'm trying to design a simple circuit that converts 0 - 5volts analog to a range of -11volt to +11volt.

I need this voltage level conversion to interface my AVR that outputs 0-5v PWM (with RC filter) to a AC motor controller that need the -11volt to +11 volts signals to position large motors... (-11volts is one direction, 0volts is center, +11volts is the other direction and in my AVR the signals are 0volts one direction, 2.5volts center, 5volts the other direction...)

I know that it can be done with a opamp but can't find such ready circuit around.

Any suggestions?

Regards, Thanos
Greece, Athens


Title: Re: Voltage level converter circuit
Post by: titi on February 26, 2008, 06:47:06 18:47
Hello,

For your voltage converter circuit, you need to make with LM358 or other Operational Amplifier, a substractor of 2.5v with a gain of 4.4.
If you have 5v, it is easy to have 2.5v, between GND and 5v, you put 2 resistors in serial by example 4.7k at the middle you have 2.5v
you make Vout=(Vin-2.5)*4.4
Example:
Vin=0    => (0-2.5)*4.4=-11v
Vin=2.5 => (2.5-2.5)*4.4=0v
Vin=5v  => (5-2.5)*4.4=+11v

To have +11v -11v, you need LM358 supply with +15v -15v.
This small drawing explain that better.

Best regards.


Title: Re: Voltage level converter circuit
Post by: tronicgr on February 27, 2008, 09:31:23 09:31
Hi Titi,

I don't understand how to apply the 4.4 gain...

I'll try to assemble a test circuit on a breadboard following your instructions. Too bad I can't see yet your drawing.

Best Regards, Thanos
Greece, Athens


Title: Re: Voltage level converter circuit
Post by: xfx7950 on February 27, 2008, 01:52:11 13:52
me too


Title: Re: Voltage level converter circuit
Post by: kang2008 on February 27, 2008, 03:45:28 15:45
upload schematic test ok.

Posted on: February 27, 2008, 04:29:11 16:29 - Automerged

8.2k/1.8k = 4.55 gain
Vout=(Vin-2.5)*4.55
Example:
Vin=0    => (0-2.5)*4.55-11.375v
Vin=2.5 => (2.5-2.5)*4.55=0v
Vin=5v  => (5-2.5)*4.55=+11.375v

or

8k/1.8k = 4.44 gain
Vout=(Vin-2.5)*4.44
Example:
Vin=0    => (0-2.5)*4.44=-11.1v
Vin=2.5 => (2.5-2.5)*4.44=0v
Vin=5v  => (5-2.5)*4.44=+11.1v



Posted on: February 27, 2008, 04:42:50 16:42 - Automerged

 ;D ;D i am a korea deaf you have know mathematics.


Title: Re: Voltage level converter circuit
Post by: titi on February 27, 2008, 05:35:14 17:35
Hello Tronic and xfx7950,

if you cannot see the picture, it is because, you are new on sonsivri, and to have access to the link, you need have 7 posts.
(See the rules)

This is a link to download the small drawing. 

h**p://rapidshare.com/files/95400020/VoltageLevelConverterCircuit.gif

(Replace ** with tt) if i put the full link you could not see it (need 7 posts).

Best regards.


Title: Re: Voltage level converter circuit
Post by: tronicgr on February 29, 2008, 03:45:47 15:45
Hi,

I can understand the second part of the schematic is the LM358, butI can't figure what is the first part on the schematic... Is it a comparator?

Regards, Thanos


Title: Re: Voltage level converter circuit
Post by: titi on February 29, 2008, 04:24:37 16:24
Hello,

The first part of the schematic is a follower, this is for generate a 2.5v with low impedance, and after you subtract the 2.5v with the second part of schematic (the substracter).
If you connect directly the middle of the two 4.7k to the substractor you don't have 2.5v because the current go into 1.8k.
An other solution is to use a ref diode like LM385 2.5v or TL431 to make 2.5v with low impedance and connect the ref diode directly on the 1.8k (more expensive).

The substract make ((voltage on 1.8k pin +) - (voltage on 1.8k pin -)) * (8.2k/1.8k)
If you make (voltage on 1.8k pin +) varies between 0 and 5v you have Vout varies between  -11.3v to +11.3v.


Best regards.   


Title: Re: Voltage level converter circuit
Post by: kang2008 on March 01, 2008, 12:35:44 00:35
titi~  ;D this error 's schematic of 2.5 opamp. i have a schematic test ok


Title: Re: Voltage level converter circuit
Post by: titi on March 01, 2008, 01:29:05 13:29
Hello,

the schematic modified by kang2008 is not good.

The first opamp need have the feedback on pin "-" and the input on pin "+".

The first stage is a voltage follower circuit with gain of 1.

Regards.