Automatic Light Switch banner

Automatic Light Switch

3 devlogs
2h 33m 13s

An automatic light switch that might turn off every 2 seconds.

Demo Repository

Loading README...

Delicious Waffle

Shipped this project!

Hours: 2.5
Cookies: 🍪 27
Multiplier: 10.86 cookies/hr

Finally made this annoying automatic light switch. When writing this, my lights kept turning off randomly :CC. The goal of this project worked out and I’m happy with the result.

This is my first project I ever done and I felt accomplished. I learned servos needed 5v of power and a wire to microcontroller didn’t provide enough power. I had to cut an USB wire and plug it into the wall for it to work.

I couldn’t find a way to attach to the wall without using tape so it looks a little ugly but gets the job done. Hope this goes well :D

Delicious Waffle

This will be my last Devlog as I will be shipping it. I designed a new case for the servo so mounting them next to the lights is easier. The new case connects the servo together so its able to match the length of the light switch. The previous designed required a lot of tape and it didn’t stick on well, but with the new design, its able to hold on with little tape.

Attachment
Attachment
0
Delicious Waffle

-I realized using one servo won’t work for on and off. I rewrote the code for test, running the off and on position every 2 seconds. I’m using two servos.
-I started working on a case for the servo so I can just tape it to the wall and it will work.
To Do:
-Clean up the wires on the breadboard

Attachment
Attachment
Attachment
0
Delicious Waffle

This is my first project! I was able to make the servo turn to the off position randomly, using a random number generator. Once every 10 seconds, a number from 1-10 will be picked. If its 5, it will turn off the light. I started designing a case for the breadboard.

Attachment
Attachment
Attachment
0