NPN Transistor, 1k and 10k Resistors, DC Motor, Power Supply (Battery 9V), Function generator, Oscilloscope, Arduino UNO.
12 VDC
DC Motor
Task 1 (Manually controlling motor speed)
Complete the circuit as shown in the figure. The transistor is acting as a switch. When it is ON, it will complete the motor circuit to the ground. In this case, the Arduino (by means of a PWM signal) is driving the transistor ON and OFF, while the required current to drive the motor is drawn from the battery.
Set as PWM
1 KΩ
run
Arduino UNO
After you complete the wiring, write a code to generate a PWM signal on pin 6. Observe the motor and repeat the simulation for different duty cycle values. Note that for Arduino UNO, the duty cycle is an 8-bit value, i.e. 0 to 255.