Lab: Using a Transistor to Control High Current Loads with an Arduino
1)Prepare the breadboard
Arduino nano 33, Potentiometer, motor, NPN, diode
First add a potentiometer and connect a transistor to the microcontroller,then connect motor and power.
control the motor with a potentiemeter
the only problem i have is the motor running so weird. i through it is not working at the beginning but it suddenly turn a second and stop.