DC motor does't work/run

My project concept is by inputting "on", the motor rotates + the light does not light; input "off", the light is on and the motor stops rotating. I have successfully run the simulation on Thinkercad, but in the actual circuit, the motor does not respond when "on" is input, but the light turns on normally when "off" is input. I don't know what the reason is (the circuit has checked the connection and there is no problem) it is urgent! can anyone help me ~

You will not be able to run a motor off an Arduino pin directly!! They can only provide a small current but the motor start current could be amps. You need at least a MOSFET to drive the motor and it should not be driven from the 5v rail but direct from a supply capable of supplying the motor start and run current.

But why it can work on Thinkercad with arduino pin?, you mean I should add a MOSFET to drive the motor?

T(h)inkercad is a simulation and obviously doesn't model the motor! Yes, you need something like a MOSFET to drive the motor. Look up low side switching.

The urgency is not my problem.

Understand~ I will try it! Thanks so much! :blue_heart:

Similarly, you may need separate power for your Neopixel ring - if all of them are on at the same time, they pull a lot of current.

Because TinkerCad is not a good simulator, and gives wrong or terribly misleading results.

A good simulator would either warn that you are about to, or have just destroyed your Arduino, by trying to power a motor from an output pin.

Don't try to use the Arduino 5V output for motors, or servos, either. That is intended for at most a couple of small sensors or LEDs.

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