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.

截屏2021-11-22 下午6.25.16.png

control the motor with a potentiemeter

截屏2021-11-22 下午6.32.05.png

截屏2021-11-22 下午6.28.40.png

截屏2021-11-22 下午6.34.01.png

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.