The circuit on this page is for a visible and infrared light detector circuit board that has 8 detectors. LM339 voltage comparators are the active element.
These detectors can be used as part of other light detector circuits shown on other pages at this site such as these Light Activated Detector Circuits at this site.
The following diagram shows the basic circuit on the Inverting circuit board.
The value of resistor R1 depends on the type of sensor and the desired sensitivity. See below for more details.
For phototransistors a value of 470K ohms will work for most room light situations. If the light is dim, selecting a higher value resistor such as 1 Megohm will give better sensitivity. This High Impedance Test Voltmeter circuit can also be used for testing phototransistors installations.
For CdS photocells it is usually best to install the cell and then measure its resistance under the normal lighting conditions. A resistor with a value that is 3 to 5 times the measured resistance of the cell is then selected for R1.
The value of resistor R4 is chosen to give a desired current flow though the LEDs See below for more details.
A 1K ohm resistor will allow about 10 milliamps to flow through a typical LED if the supply voltage is 12 volts. The value of the resistors at the outputs of the comparators can changed depending on the desired current through the LEDs.
For information on calculating the value of current limiting resistors please see the Current Limiting Resistor Calculator page at this site.
The following diagram shows the circuit that is on the printed circuit board. There are 8 independent photodetectors with open collector outputs that can sink up to 15 milliamps each.
All of the comparators on the PCB are wired so that when the photosensors are dark, the output of the comparators will be LOW and the LEDs will be ON.
The detection voltage level for the circuit as shown is set at 1/2 of the supply voltage. If a lower or higher detection level voltage is needed, the values of resistors R9 / R10 and R19 / R20 can be adjusted.
This circuit does not need a regulated power supply and can operate on supply voltages of up to 32 volts. For more general information on Voltage Comparators please see the Voltage Comparator Information page at this site.
The 1K output resistors can be replaced by jumper wires if they are not needed such as for inputs to control or signals circuits that have their own current limiting resistors.
WARNING - If the polarity of the power supply for this circuit is reversed or the circuit is connected to an AC or DCC source this circuit will be damaged. The maximum supply voltage for this circuit is 15 Volts.
The diagram above can be printed in the center of a sheet of paper then and used to record wiring connections when installing the circuit, sensors and LEDs. This diagram will be easier to use than the actual schematic for the circuit board.
The following schematic is for a typical installation circuit using phototransistors and LEDs. Multiconductor cable can be used to keep the wiring runs neat as sensors and indicators are likely to used in localized groups.
The following is an assembled example of the circuit board which is 2 inches by 3 inches and is drilled to fit DigiKey part ED1623 - 2 position and ED1624 - 3 position terminal blocks.
The INPUTs of the detectors are on the left and the OUTPUTs are on the right side of the picture. As in the full circuit schematic, the INPUTs and OUTPUTs of the detectors are directly across from each other on the circuit board.
The board was designed for 8 detectors as it was about 60 percent less expensive to make an 8 - Detector board than to make two - 4 - Detector boards.
Option 1: 1 - Printed circuit board is 7.00 dollars US plus postage.
Option 2: 1 - Assembled - 8 Photo-Detector circuit board with 8 phototransistors is 24.00 dollars US each, plus postage.
Option 3: 1 - Assembled - 8 Photo-Detector circuit board without phototransistors is 18.00 dollars US each, plus postage.
Option 4: 1 - Kit - 8 Photo-Detector circuit board with 8 phototransistors is 23.00 dollars US each, plus postage.
Option 5: 1 - Kit - 8 Photo-Detector circuit board without phototransistors is 17.00 dollars US each, plus postage.
The phototransistors have Red and Black, 5 inch long leads attached.
All phototransistors will have been tested before shipment.
If you are interested in printed circuit boards please send an email to the following address: email@example.com The Subject will be LM339 Inverting Phototdetector
Your message will be answered as soon as possible.
The following is a parts list for a typical parts list for use with the 8 - Photodetector circuit board. The values of the resistors can be changed to suit the needs of the user.
|Qty||DESCRIPTION||PART NUMBER||DigiKey NUMBER|
|2||-||LM339 Quad Comparator 14-DIP||-||IC 1, IC 2||-||296-1393-5|
|8||-||470K Ohm 1/4W Resistor||-||R1, 2, 3, 4, 11, 12, 13, 14||-||470KQBK|
|4||-||10K OHM 1/4W Resistor||-||R9, 10, 19, 20||-||10KQBK|
|8||-||1K Ohm 1/4W Resistor||-||R5, 6, 7, 8, 15, 16, 17, 18||-||1.0KQBK|
|1||-||2.2uF 50V Miniature Aluminum Electrolytic||-||C2||-||P10313-ND|
|2||-||2 Position Terminal Block - 5mm||-||-||-||ED1623-ND|
|5||-||3 Position Terminal Block - 5mm||-||-||-||ED1624-ND|
The DigiKey part numbers for suitable phototransistors are 160-1988-ND.
The output Light Emitting diodes would be selected depending on the needs of the user.
T42-1 Push-In Terminals can be substituted for the terminal blocks to reduce costs if desired. The DigiKey part number for the T42-1 Terminals is V1069-ND.
The circuit board can also be used to make up to eight, simple - 2 Colour Signals.
Multiple phototransistors can be connected to each input.
Infrared - light emitting diodes can be used to light the phototransistors in areas such as tunnels and hidden yards.
To reduce the current require, the LEDs can be wired in series so that four LEDs use the same amount of current as one LED. In the example shown, approximately 8 milliamps.
Infrared light is not visible to the naked eye, however, a digital camera can be used to view the IR light if it does not have an IR blocking filter on the lens.
The image may not be very bright but close-up or in a darkened area the light should be visible on the camera's display screen.
These connection diagrams can be used with the Non Inverting Circuit as well.
Connecting the 8-339 board to a NCE AIU board.
Connecting the 8-339 board to a Lenz LR100 board.
Connecting the 8-339 board to a R-R Circuits TC-64 board.
When installing the components on the circuit board start with parts with the lowest height and work up to the tallest parts. For example starting with the diodes then resistors, IC's, transistors, capacitors and terminal blocks.
The following shows a method of attaching wires to the leads of phototransistors, LEDs and photocells. The wire is 26 gage.
The phototransistor is held by a piece of wood with a 3 or 5 millimeter hole drilled in it, depending on the case size of the device.
The leads of the phototransistor were trimmed to 3/8th's of an inch and 9/16th's of an inch of insulation was stripped from the wire.
Needle nose pliers are used to hold the wire while it was wrapped around the lead. Any excess wire can be trimmed away after soldering and the end tucked into the phototransistors lead. A small heat sink could also be used during soldering. (The out-of-focus line entering from the left in the fourth image is the solder.)
The heat-shrink tubing was reduced by touching it to the side of the soldering iron's tip.
The explanations for the circuits on these pages cannot hope to cover every situation on every layout. For this reason be prepared to do some experimenting to get the results you want. This is especially true of circuits such as the "Across Track Infrared Detection" circuits and any other circuit that relies on other than direct electronic inputs, such as switches.
If you use any of these circuit ideas, ask your parts supplier for a copy of the manufacturers data sheets for any components that you have not used before. These sheets contain a wealth of data and circuit design information that no electronic or print article could approach and will save time and perhaps damage to the components themselves. These data sheets can often be found on the web site of the device manufacturers.
Although the circuits are functional the pages are not meant to be full descriptions of each circuit but rather as guides for adapting them for use by others. If you have any questions or comments please send them to the email address on the Circuit Index page.
22 July, 2017