Hi, I'm doing a school project and building a robot; I chose an arduino nano RP2040 to control everything in IoT or WiFi.
I have to control two drivers for two motors.
The problem is that the drivers require two signals (DIR, PWM) ranging from 0 to 5 volts but the nano RP2040 can only supply from 0 to 3.3 volts and the motor speed is halved.
Using a classic Arduino UNO the motors move at full capacity, as the Arduino UNO supplies 0 to 5 volts in its digital pins.
How can I increase the volts from 0 - 3.3 to 0 - 5? P.S. I need all the values between 0 and 5 volts (for example 2 volts or 4 volts to get all the motor speeds.
The circuit you show for the amplifier is for a plus and minus power supply. Your reference should be VCC/2, not ground. This can be achieved with two resistors and a capacitor to stabilize it. look up "non inverting amp single supply amplifier" there is a lot of information available.