Introduction: Simple Light Break Detection

Picture of Simple Light Break Detection


This is a simple circuit (no Arduino involved) to operate a relay when a light beam is interrupted.

This instructable is a response to a question of "How without a processor?"

Step 1:

Picture of

What happens in this circuit is that light from the led shines on the photocell.  When that light is interrupted, the resistance of the photocell changes and the transistor is turned on, turning the relay on. 

A contact from this relay causes an LED to illuminate.

Step 2:

Picture of

I know how difficult it can be to figure out which lead is which when comparing a "real device" to a schematic, so I am showing the transistor and LED here.

Step 3:

Picture of

There is a diode (looks backwards) by the relay coil.

Why does it need to be there?

The simple answer is:  to protect the transistor from overvoltage.

The longer answer:  Voltage (across a coil) equals L (inductance of the coil) multiplied by dI/dt (change in current divided by change in time).  For argument's sake, you can almost ignore the inductance and the current--turning off the relay happens very rapidly (dT), the time to switch off, is very small; maybe a few millionths of a second.  If the number in the denominator (change in time) is almost zero, the total answer will move toward infinity. 

Physical constraints won't let it get too crazy, but a spike big enough to blow out electronics is quite likely.  The diode allows the current to flow backward through the coil, preventing damaging voltage.

Step 4:

Picture of

I put together a simple system with a prototype board to show how you can detect the movement of a model train, car or passing object.

Comments

sagarganji678 (author)2016-01-21

Plz make it clear give neat circuit diagram

pbement made it! (author)2014-11-27

My son and I made this to use in his science project. It was our first foray into building electronic circuits, reading circuit diagrams and using a breadboard. It was a great project to start with.

dac_cast (author)2013-07-22

Hello:

What are the specs of the relay?

About This Instructable

8,234views

29favorites

License:

Bio: I am an author and a maker. My current project is Santa's Shop. I'm working on a science fiction type book--more later. @EngineerRigsby
More by MikeTheMaker:Santa's Shop 2017, the TrainSnowflake Gear WreathHappy Gear Table
Add instructable to: