Control a driver that needs 0 to 5 volts with an Arduino Nano rp2040 connect

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.

This can be accomplished with an operational amplifier. You want a non inverting amplifier. You can adjust the circuit gain by changing resistors.

I tried to using it, but amplifier didn't amplified the voltage. Now, we're trying to use a step-up MT3608.

Post a schematic of the amplifier circuit you built. Show all connections. If it did not amplify it is not a good op amp or is wired incorrectly.

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.

You should not power a motor from arduino pin

We discovered that the external alimentation was not giving the right tension to our motor driver, thank's to all for your's ideas.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.