Arduino UNO - increase motor speed (easy)

I am new to electronics in arduino UNO and my first project I am doing is that of a car that the motor rotates clockwise and counterclockwise (forward and reverse)
For this I have seen several tutorials and I have visited several pages, I already realized it but the problem is that the engine does not have as much speed as I imagined, I looked for solutions I put them into practice but they did not solve this problem, all the information is in the image ( mechanics and programming)

are you really powering the motor from 2 Arduino pins?

yes xdxd, it is for the motor to go clockwise and counterclockwise, if I'm wrong, there would be some other solution, because I'm new and it's the easiest thing I saw

Powering the motor directly from the Uno is not a good idea as it cannot provide much current and the Uno could be damaged

It would be much better to power the motor from an external source and to use a motor driver board

Please read How to get the best out of this forum and post your code using code tags as described

you'll kill your Arduino this way...
the pins can deliver max 40mA at peak so no chance your motor goes fast.

EDIT: as @UKHeliBob said but faster than me :wink:

Ok thank you very much, what other way would I get the same results

Thank you

I assume that you mean different and better results

could use 4 relay module

Hi,

Did you see any example that connected the motor directly to the UNO pins?

Google;

uno motor driver mosfet

MOSFET drivers are very efficient for your purpose.

Tom.. :smiley: :+1: :coffee:

honestly I took it from an example of LED lighting with a button, but in a programming course in tikercad they connected to the motors.

even the LED examples would add a current resistor...
Anyway, long story short don't try to drive a motor this way. Lots of bad things can happen.

there are tons of tutorials, here are a couple:

https://learn.sparkfun.com/tutorials/driving-motors-with-arduino/all

https://create.arduino.cc/projecthub/ryanchan/how-to-use-the-l298n-motor-driver-b124c5

How much current did the motors take in Tinkercad ?

Connecting inductive load to logic signals is a very bad idea indeed - easy to fry the chip. Inductive loads always need attention to kickback protection or snubbing, and logic outputs only handle very small currents. Motors take large currents and are inductive - you drive them with a motor driver.

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