Look at Me Light Switch

by MikeTheMaker in Circuits > Arduino

5438 Views, 50 Favorites, 0 Comments

Look at Me Light Switch

Look at - 35.jpg
Look at - 34.jpg
Look to Control Light Switch

Look at this little character (if you are within six feet) and his red light "topper" will come on. Continue to stare for three seconds and the eyeball will spin around to face you. Continue to stare for three more seconds and the controlled lights will change state (on if currently off--off if currently on). For the next five seconds, you will be ignored. Repeat if desired.

The "Person Sensor" (tiny camera and microcontroller--less than ten dollars) lets an Arduino know that someone is out there (and where they are within the field of view).

Supplies

Person Sensor

Qwiic cable for person sensor

Arduino Uno

USB power supply

Servo motor

(2) 5 volt relays

Wireless remote control

3d printed parts

Breadboard

Wire wrap wire

3mm screws and nuts

Red led

220 ohm resistor

Google eye

Poster putty

Solder

Wire (misc.)

Heat shrink tubing

Schematic and Code

schematic.jpg

This is the schematic and Arduino code for this project. Please note that "person_sensor.h" must be in the same folder as "look_at_me0301.ino"

Look at - 18.jpg
Look at - 19.jpg
Look at - 20.jpg
Look at - 21.jpg

Attach wire wrap wire to the led. Protect one lead of the led with heat shrink tubing (or electrical tape). Insert the led legs into the little "cap."

Look at - 10.jpg
Look at - 11.jpg
Look at - 12.jpg

Connect the person sensor using the Qwiic cable. The cable comes out the top of the sensor.

Look at - 3.jpg
Look at - 13.jpg

Drill a hole in the front of the body.

Look at - 14.jpg
Look at - 15.jpg
Look at - 16.jpg

Insert the cable through the body hole. Place the sensor inside the sensor holder, then attach the holder to the body by melting with a soldering iron (temperature about 390 degrees F).

Look at - 9.jpg
Look at - 17.jpg

Attach the servo motor to the servo motor mounts. Attach the mounts to the body by melting (use soldering iron).

Look at - 7.jpg
Look at - 22.jpg

Attach "google eye" to printed eyeball using poster putty. Insert led wires through top of eyeball through center. Attach servo horn to printed eyeball.

Look at - 23.jpg
Look at - 24.jpg

Secure servo horn to servo with screw. Push led cap and wire into top of eyeball assembly.

Look at - 1.jpg
Look at - 2.jpg

Open remote control transmitter and remove two phillips screws.

Look at - 25.jpg
Look at - 26.jpg

Solder wire wrap wire to "on" and "off" switch positions.

Look at - 29.jpg
Look at - 30.jpg
Look at - 31.jpg

Finish wiring according to the schematic and place components in the electronic holder.

Look at - 33.jpg

This is not a "clap on, clap off" switch from years past; this is a "look on, look off" switch for the present age.