Simple Light Switch
![4A.jpg](/proxy/?url=https://content.instructables.com/F4N/X984/GPBDHPZK/F4NX984GPBDHPZK.jpg&filename=4A.jpg)
In building Simple Bots, we are going to use a series of photo-coupled devices called modules. But, before we can do this, we need a good photo-couple to use as a light-activated switch. To make one of these switches, we will be using a special OSRAM-brand photo transistor and any standard NPN transistor (like a 2N2222, 2N3904, BC546, etc.). These switches will allow the motor to spin in direct correlatoin to how much light it senses. In other words, the more light, the faster the motor goes and the less light, the slower.
Go Get Stuff
![4B.jpg](/proxy/?url=https://content.instructables.com/F25/SD03/GPLJ1NR4/F25SD03GPLJ1NR4.jpg&filename=4B.jpg)
You will need:
(x1) OSRAM-brand photo transistor
(x1) NPN transistor
Line Up
![4C.jpg](/proxy/?url=https://content.instructables.com/FH0/7RU1/GP7IGNBI/FH07RU1GP7IGNBI.jpg&filename=4C.jpg)
Lay the phototransistor atop the NPN transistor such that the base of the NPN transistor aligns with the emitter (longer leg) of the phototransistor and the collector of the NPN transistor aligns with the collector of the phototransistor.
Twist
![4D.jpg](/proxy/?url=https://content.instructables.com/F5W/F87D/GP7IGNBM/F5WF87DGP7IGNBM.jpg&filename=4D.jpg)
Twist together each lined-up pair of NPN transistor and phototransistor leads.
Solder
![4E.jpg](/proxy/?url=https://content.instructables.com/F9C/JSL2/GPLJ1NR5/F9CJSL2GPLJ1NR5.jpg&filename=4E.jpg)
![4F.jpg](/proxy/?url=https://content.instructables.com/F68/CJMN/GP7IGNBR/F68CJMNGP7IGNBR.jpg&filename=4F.jpg)
Solder together the connections of each twisted pair of transistor leads.
Trim
![4G.jpg](/proxy/?url=https://content.instructables.com/FP8/FJ0G/GPBDHQ1F/FP8FJ0GGPBDHQ1F.jpg&filename=4G.jpg)
Trim the middle pair of wires such that it is shorter, but the connection between the base of the NPN transistor and the emitter of the phototransistor remain soldered together.
![](/proxy/?url=https://content.instructables.com/FP8/ABPR/K9R2LUOD/FP8ABPRK9R2LUOD.jpg?auto=webp&crop=1:1&frame=1&width=320)
Did you find this useful, fun, or entertaining?
Follow @madeineuphoria to see my latest projects.