Opto-Switch

= Opto-Switch =

This shows how to use the OPW810W55 Opto-Switches we have. It looks like this:

The "E" side is the Infrared (invisible) LED which shines across the gap. The "S" side is a phototransistor that turns ON when hit by the light beam.

The connections are as follows:

Emitter LED:

 * BLACK (BK) is - (minus) or GND
 * RED (RD) is + and should go through a 220 ohm resistor (approximately) to +5 Volts or an Arduino Output set to HIGH.

Sensor PhotoTransistor:

 * GREEN (GN) is - or GND
 * WHITE (WH) is + and should be connected to +5 V through a 10K (approx) resistor. It is also connected to an Arduino Digital Input. This input will be LOW when the light beam is seen by the Sensor, and HIGH when the light beam is blocked by something.

Below is a diagram of how to hook it up:



Here's a test program for Arduino:

media type="custom" key="9643894"