We obtained a signal lamp and built a standard interfacing circuit with the 470 ohm resistor and transistor. Then we used the same "blink" program for the Arduino and got the signal lamp to blink.
Next we learned about Darlington transistors and their applications. For example, the MPSA42 transistor is larger than the 2N3904 and can handle a bigger load. So you can use the 2N3904 to "turn on" the bigger MPSA42. This arrangement of transistors turning on bigger transistors is called a "Darlington". If the gain of a 2N3904 is 25 and the gain of a MPSA42 is 30, the the gain of the two in a Darlingtion configuration is: Total Gain = 25*30 = 750 gain
We built a Darlington circuit with the 2N3904, MPS, 3.3K ohm resistor, diode for back EMF suppression.
We then replaced the MPSA13 transistor with a bigger TIP120 transistor which would increase the current to the signal lamp. Notice the larger TIP120 on the breadboard and much brighter signal lamp.
Next we built a circuit using the same TIP120 power transistor to switch a small electric motor on and off. We used a 2.2K ohm resistor and a diode for back EMF suppression along with a battery power supply.
We then connected the circuit and motor to the Arduino and wrote code to adjust the speed of the motor using "analogWrite" to the pin with the motor connected. The code adjusted the speed of the motor from 20% to 90% and back in a continuous loop with a delay of 1 second in between each switch.
Lab 9 finished!
No comments:
Post a Comment