I am currently working with a 3.3V microcontroller (e.g., ESP32, ESP8266) and need to create an analog signal of 5V for signaling purposes.
i have a power supply of 5v and 3.3v
It's important to note that the application involves a low load since it is for signaling only and will not involve a significant load,
-Precision is not a critical factor so I am looking for a simple solution where the 3.3V signal can be multiplied to achieve the desired 5V output.
example to multiplay by 1.5
Could you please guide me on how to achieve this?
I want the output to be 5V when the microcontroller outputs 3.3V
and 0V when the microcontroller output is 0V.
Look for one that has rail to rail operation, or close to it.
The rail to rail criteria is the maximum and minimum you can get from the output when powering it with a 0 to 5V supply. Otherwise it becomes more difficult and you need a power supply outside the range of the voltages you are working with.
someone told me i need to use LM 358 but idk where to connect analog signal that commes from microcontroller and where to connect 5v
and what resistors to use
And have you looked up the data sheet to see how close the the rail you can get?
When you do you will find it can only output a signal that is 1.5 V less than the supply voltage. So it is not suitable at all for what you want to do with it.
also is this a better option if i create a voltage divider from the 5v that i already have but one of resistors to be like variable resistor which resistence i can controll from microcontroller.
i read that i need a digital potentiometer, is this solution better or op-amp is better