0-3.3V to 0-10v

Thread Starter

trav333

Joined Mar 7, 2022
44
Hi,

I am trying to make a circuit that will convert a voltage output signal from ESP 32 that ranges from 0 - 3.3V and turn this into 0 - 10V.

Some points are

* There is a 10V supply available at the ESP 32 that can be utilised.
* The ESP 32 will run off a 3.7 V 2000Mha lithium-ion battery so want it to use low power.
* I have LM358 op-amp here but if I need other/better components ways to do it open to ideas

Just to note I have only been doing electronics for a very short time so my understanding is limited but I am very keen to learn how I can accomplish this!

Thanks

Travis
 

ericgibbs

Joined Jan 29, 2010
21,439
hi trav,
This circuit will work for you using a LM358 and a 12V supply.
Added a simulation with a10V supply, note the limiting at approx +8.5v
E
EG 1583.gif
 

Attachments

Thread Starter

trav333

Joined Mar 7, 2022
44
Thanks for the reply Eric.

I can work with 8.5V for now.

Tomorrow I will send you a drawing of how I have wired it to see where I am going wrong as at the moment cannot get it to work!
 

Thread Starter

trav333

Joined Mar 7, 2022
44
Hey, Eric please guide me with what I am doing wrong here. Output is showing 8.5V even if I remove the 3.3V on IN1- input to make 0V. Could you maybe please draw how I need to connect it.
 

Attachments

ericgibbs

Joined Jan 29, 2010
21,439
Gd'Day trav.
Try this. I assume it is a LM358 Op Amp.?

Connect the Non Inverting input to 0V, pin #3.
Remove the -10V from the Vss, pin# 4 and connect to 0V.

You should measure on Vout pin #1 , close to 0V.
Post what you measure

E
Do you have a photo of the project to post, on case you have not wired as shown.?EG 1586.gif
 

Attachments

ericgibbs

Joined Jan 29, 2010
21,439
hi,
OK,
The amplifier is set for a Gain of times 3 for the Non Inverting Input.
Check that the resistors are 5K and 10K as shown in my diagram.

Don't forget if you put 3.3V input on pin #3, the Vout will show about +8.5V, when using a10V supply for the LM358.

Get a potentiometer say 10K variable and connect that across +3.3V supply, then connect the potentiometer wiper to pin #3.
You can then vary the input from 0V through +3.3v and check the Vout/

E
 
Top