Objective
The objective of this project is to demonstrate how light can switch a transistor ON or OFF to control a device.
General Instructions
This project uses two breadboarded circuits. The circuit shown on the left side of Figure 4.9 is used to generate infrared light. Another circuit, shown on the right side of Figure 4.9, switches on a buzzer when the infrared light is blocked by an object.Fig 4.9 |
Fig 4.10 |
Fig 4.11 |
Fig 4.12 |
- One 9-volt battery.
- One 6-volt battery pack (4 AA batteries).
- Two battery snap connectors.
- One 100-ohm, 0.5-watt resistor.
- One 1 k , 0.25-watt resistor.
- One 10 k , 0.25-watt resistor.
- Two breadboards.
- Two terminal blocks.
- One piezoelectric buzzer with a minimum operating voltage of 3 volts DC. Using a buzzer with pins (such as part # SE9-2202AS by Shogyo International) enables you to insert the buzzer directly into the breadboard. If you use a buzzer with wire leads (such as part #PK-27N26WQ by Mallory), you need another terminal block.
- One infrared LED.
- One infrared photodiode.
- One PN2222 transistor. Figure 4.12 shows the pinout diagram for the PN2222.
Set up the circuits shown in Figure 4.9. If you have some experience in building circuits, this schematic (along with the previous parts list) should provide all the information you need to build the circuit. If you need a bit more help building the circuit, look at the photos of the completed circuit in the “Expected Results” section.
Carefully check your circuit against the diagram, especially the connection of the long and short leads to the LED and photodiode. The LED is connected so that it is forward-biased, whereas the photodiode is connected so that it is reverse-biased, as indicated by the direction of the schematic symbols in the circuit diagrams.
- Align the rounded top of the LED toward the rounded top of the photodiode with the circuit boards a few feet apart from each other. (If you use a typical LED and photodiode, you must bend their leads to align them.) Note that the rounded top of both the LED and photodiode shown in Figures 4.10 and 4.11 contain a lens to emit or absorb light. Some LEDs and photodiodes have lenses on the side, instead of on the top. If it isn't obvious where the lens is in your components, check the manufacturer's data sheet.
- Turn on the power switch. When the power switch is on, the buzzer should sound whenever the photodiode does not sense infrared light.
- . Bring the circuits close enough together so that the buzzer shuts off.
- Block the infrared light; the buzzer should turn on.
Expected Results
Fig 4.13 |
Fig 4.14 |
Figure 4.15 shows the test setup for this project with the rounded top of the LED and photodiode aligned toward each other.
Fig 4.15 |
The photodiode is connected to the base of a transistor. Therefore, current generated by the photodiode turns the transistor ON. When the transistor is ON, VC is about 0 volts, turning off the buzzer. When the infrared light is blocked, the photodiode stops generating current, which turns OFF the transistor, increasing VC, which turns on the buzzer. These circuits work with the LED and photodiode about 7 inches apart. With more complicated photo detectors that have circuitry to amplify the detected signal, this technique can work over several feet. One common application of this technique is a buzzer that sounds when a shopper enters a store, blocking the light, setting off a sound, and alerting the sales staff.
No comments:
Post a Comment