One quick note about PCBs. I never had good success with iron-on transfer methods. I thus used the rub-on transfers from Radio Shack. I also imagine you can use the resist-ink pen too, since the trace lines are not thick and component spacing is not critical.
My motivation is to use such a circuit for motor speed detection. The photos that follow show the applicability of this circuit for such purposes. This article is broken down as follows:
PART DESCRIPTION | VENDOR PART | PRICE (1995) | QUANTITY |
Infrared (IR) Emitter | Radio Shack #276-143 | 1.69 | 1 |
Infrared Phototransistor | Radio Shack #276-145 | 0.999 | 1 |
7414 Hex Inverting Trigger | Radio Shack #276-2808 | 0.89 | 1 |
NPN 2N2222 (or MPS2222A) Transistor | Radio Shack #276-2009 | 0.59 | 2 |
220 Ohm Resistor | 1 | ||
1000 Ohm Resistor | 1 | ||
470 Ohm Resistor | 2 | ||
4 Pin header/housing (Optional) | 1 | ||
On/Off LED (Optional) | 1 | ||
220 Ohm Resistor(Optional) | 1 | ||
Heat Shrink tubing (Optional) | |||
2 Pin header/housing (Optional) | 1 |
If the emitter and detector (aka phototransistor) are not blocked, then the output on pin 2 of the 74LS14 will be high (apx. 5 Volts). When they are blocked, then the output will be low (apx. 0 Volts). The 74LS14 is a Schmitt triggered hex inverter. A Schmitt trigger is a signal conditioner. It ensures that above a threshold value, we will always get "clean" HIGH and LOW signals. Not Blocked Case: Pin 2 High Current from Vcc flows through the detector. The current continues to flow through the base of Q2. Current from Vcc also flows through R2, and Q2's Drain and Emitter to ground. As a result of this current path, there will be no current flowing through Q1's base. The signal at U1's pin 1 will be low, and so pin 2 will be high. Blocked Case: Pin 2 Low Current "stops" at the detector. Q2's base is not turned on. The current is re-routed passing through R2 and into the base of Q1. This allows current to flow from Q1's detector and exiting out Q1's emitter. Pin 1 is thus high and pin 2 will be low.
The above photos show how the IR emitter/detector board will be used for motor speed determination. The black circular disc has one hole. The phototransistor can detect the IR emitter's light source though this hole. Thus, only at this point will U1's pin 2 output be HIGH. Since the disk is black (opaque) the phototransistor will be blocked and pin 2 will always be LOW. I used the 99 cents 1.5 to 3.5 VDC motor from Radio Shack (273-223). The black disc mounts on the motor shaft. The motor is mounted in a plastic motor stand. The stand is mounted on a piece of wood. The motor stand was milled and drilled by our Mechanical Engineering machinist Walter Kahn. He did an excellent job. It gives the motor a stable base. There are 2 shafts on either side of the disc. The emitter slides into one shaft. The detector slides into the other. In the future, I will show how one can interface the IR emitter/detector board to a PC (via the 8255 PPI board or other commercial digital data acquisiiton board) or embedded controller (Intel 8051 for example). In the fuutre I hope to introduce the reader to the following:
Click here to go Columbia University's Robotics Lab
Click here to email me