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
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.
Log in to leave a comment
-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
Log in to leave a comment
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.
Log in to leave a comment