Jonathan Di Giorgio

Personal project

Remote light switch

A servo unit that flips my bedroom light switch from an IR remote, and comes off without a trace.

My role
Solo, mechanical, electrical and firmware
Tools
Onshape, C++, IR, servo, heat-set inserts
99%
flip success
3 days
battery life
Bench prototype with the microcontroller wired to the switch unit
FIG. 1 Bench prototype, wired up next to the switch.

Why I built it

I got tired of getting out of bed to turn the light off. This servo unit sits over a normal wall switch and flips it when it gets a signal from an IR remote. I did the mechanical, electrical and software sides myself.

How

  • Sized the servo and battery with basic dynamics and power calculations.
  • An IR receiver takes commands from the remote, and a microcontroller turns them into servo motion.
  • Designed the housings in Onshape with heat-set inserts for fastening, and soldered the electronics.
  • Wrote all of the control code in C++.
Servo unit mounted over a wall light switch
FIG. 2 Mounted over the switch.
Small printed housing mounted on the wall beside the switch
FIG. 3 Printed housing on the wall.
Black printed housing with a blue light inside
FIG. 4 Housing with its status light on.

Results

  • Flips the switch correctly 99% of the time.
  • The battery lasts about 3 days.
  • You can still flip the switch by hand, and it comes off without leaving a mark, which matters in a rental.