So I have two arduino boards (uno r3) and both of them have the same issue. When I write digitalWrite(any, HIGH); my 3v motor can't start by itself and my voltimeter only measures around 0.5 volts. I always use pinMode(any, OUTPUT); in void setup. The boards used to work fine before and they dont present any phisical damage. When I plug the cable in the 5v and 3.3v pins the motor works fine. Please help me. Thank you for your help.
motor draws too much current for DO pin, if you're wiring directly. Try through a MOSFET, transistor, or relay, and don't forget the suppression diode.
Please show code and schematic; use code tags!
No code, no schematic, no help. Simple equation.
This is wrong, look at the reference:
https://www.arduino.cc/reference/en/language/functions/digital-io/pinmode/
If you tried to power a motor from output pins, then those pins have already been damaged, and your Arduino may be unreliable, or fail completely at some point in the future.
I know that. With "any" I wanted to say any number between 2 and 13.
Im not discarding that since the boards are +3 years old and I haven't been too careful connecting stuff when I was learning the basics.
I messed up writing that comment. HIGH should be OUTPUT.
To switch an output to HIGH or LOW you need to use digitalWrite(any, HIGH);, or digitalWrite(any,LOW);
pinMode is usually only used once to set the pin in OUTPUT mode.
Im trying that tomorrow, I have to buy them. Im very sure that's the problem since the led's shine bright and the active buzzer beeps loud. Sorry for the lack of detail, this is my first time using the forum. Thank you.

As I suspected, you can't do that. Motor driver, relay, transistor, FET, something that will switch the current.
Please, before you post code as image again, re-read the How To, and learn about code tags. For this first time, it should be forgiven, but in general, images of code are useless, as they cannot be edited/modified for example, discussion, or explanation.
Got it, I will learn how to use them. Thanks everyone for the help.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
