Build a Laser Tripwire

Courtesy of fatllama@Flickr

I gave my final in Electronics on Tuesday (Dec. 15), and it went so well,  I can’t stop thinking about it. The format was something I haven’t tried before: 1.5 hours of written test (individual) and 1 hour of group problem solving. The problem they had to solve was to construct a laser tripwire alarm.

There are seven students in the class, so putting them all in one big group is feasible, but I was worried about students not participating or being pushed out of the project by other students. It turns out that I had nothing to worry about, they delegated and divided perfectly, coming back together to get over some hurdles and then breaking apart again to complete their roles. They passed with 12 minutes to spare, and even left it set up as a demo at their project showcase party. My only hope is that future classes work together as well as this group did.

The written portion of the test wasn’t anything special, but it was important for evaluating student mastery of the subject. The group problem is the part I am especially happy with, and it went like this: I gave them a box that included the following parts:

  • Digital multimeter
  • LCR meter
  • Laser diode and power supply
  • Headphone speaker (cannibalized from broken headphones)
  • Photoresistor (5 k to 0.5 k ohm, dark and lit).
  • Resistors: 30, 1k, 22k, 51k ohm.
  • Capacitors: 0.01 uF and 0.02 uF.
  • 2N3904 (NPN transistor)
  • LM555 timer IC (and datasheet)
  • Breadboard and jumper set

With the parts they were given the task of building a laser tripwire alarm. The system had to sound an alarm whenever the path of the a laser beam is interrupted.

With more parts, there would be many possible solutions to this problem, so I tried to limit the scope of the test by restricting the components to a bare minimum. I made it work using only these components and relying on information we learned in class. The test had a good mix of challenges for the students: they had to design several circuit blocks and interface them, use a datasheet to learn and use a new device (555 timer), and debug under time pressure.

The solution they came up with was very similar to my own: use the photoresistor in a voltage divider to drive the transistor base high or low. The transistor then gates power to the 555 timer which is configured as a 50% duty-cycle square-wave generator (schematic available in the datasheet). The 555 timer can drive a 50 ohm load, so putting a small resistor in series with the headphone worked like a charm. This is probably not the most robust or fault-tolerant design, but it works and it takes very few parts.

It was so much fun to watch them solve this problem that I think I’ll run group questions on the midterms next time around. The best part for me was watching one student (who has been at the tail of the grade curve all semester) catch and fix two of the major problems they ran into with thier circuit. His struggles during the semester really paid off since he was now one of the better debuggers in the group.

If you have had good or bad experiences with group tests, I’d love to hear about them. I may have gotten lucky with my first attempt, but it seemed like a great way to test everyone without watching them fail for making silly mistakes.

UPDATE: Now with schematic drawing

laser tripwire schematic

Schematic for laser tripwire alarm sensor

Advertisements

8 thoughts on “Build a Laser Tripwire

  1. Do you have a written copy of the circuit they/you used? I’m trying to build one. I’ve got no idea what I’m doing… I’ve been trying to teach myself. If you could give a diagram to work off of, I’d be very, very greatful.

    Reply
  2. infact i am also trying to build one but i am not able to get a circuit diagram though i tried doin it by myself but i am not able to do it. so if you could give the circuit diagram it would be really great…………

    Reply
  3. What an awesome article. I’m still trying to learn this stuff and I’m moving along but I wish I’d have been offered a class on it in my school days instead of some of the useless crap I ended up taking. Keep it up!

    Reply
  4. Pingback: Design Challenge: AM radio « The Daily Photon

    • We were using TLC555 chips so it could be anything between 3 and 15V or so. I think they set it at about 5V… but it’s been two years so that memory may be faded. The crucial part is to get the voltage divider output to trip the transistor, this depends on your photoresistor and Vcc. Nothing here is hurt by going between 2V and 15V so if you can try a range, you should be able to find something that works. If you’re working with a fixed voltage, then you may want a potentiometer in place of the 1k resistor at the front end. That would let you change the setpoint.

      Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s