You are browsing as a guest. Sign up (or log in) to start making projects!

FlipSwitch

Hardware
  • 3 Devlogs
  • 6 Total hours

An Arduino Uno R3 based device that automatically switches on the light at a programmable time to help people wake up at the right time through exposure to bright lights right before and during wake up. It uses a DS1307 RTC Clock Module for keeping accurate track of time for a longer duration, although after long duration usage, the clock may shift requiring resetting it to the current time through re uploading the files in the specified order. The actuator is a SG90 Micro Servo although any servo that can be controlled using PWM is compatible, just note that larger servos may cause brownouts as the servo is directly powered by the Arduino Uno, although you may alter this as needed.

Open comments for this post

1h 52m 41s logged

DEVLOG #3 - Some Fixes
I modified the README.md for more clarity and fixed some logic errors in the code that prevented the alarm from running after it activated for the first time. But it was just fixing those errors and then I also discovered that Platform.io doesn’t let you have multiple .cpp files in the src folder that contain the setup() and loop() functions so I also had to restructure the platformio.ini project configuration file for multiple environments. I think all the errors are fixed, but I will update it in the future if there are any more.

0
0
6
Ship #1 Pending review

I made a quick device that turns my light's on for me in the morning to encourage me to wake up and not go back to bed because it is all too easy to hit snooze and fall back asleep, but it is significantly more difficult to the same when the lights are on at full brightness. It uses an Arduino Uno R3 and an RTC module to keep track of time and a small microservo to flip the light switch. I also added an optional feature to lock the light switch where the servo prevents me from turning the light's off to further encourage me to wake up.

  • 2 devlogs
  • 5h build
Video of Project → See source code →
Open comments for this post

1h 1m 34s logged

DEVLOG #2 - Finished Product

Initially I had planned to make an ESP32 based version that had a locally hosted website and more features such as a temperature and humidity sensor, a proximity sensor, and a screen. However, the Proof of Concept I made is actually doing it’s job sufficiently and to ensure I have time to work on my other projects, I am going to stop this project here. However, before stopping I used some paper and tape to make a dust cover for the electronics.

0
0
7
Open comments for this post

3h 34m 51s logged

DEVLOG #1 - A Proof of Concept

The ultimate goal of this project is to automate my bedroom’s light switch to help me wake up in the morning.

Although existing solutions such as smart lighting from companies like Phillip’s Hue exist, I wanted to try a system that is fitted on top of my existing switches and is relatively inexpensive. To accomplish this, I use a servo to actuate my light switch into the “on” position and prevent me from switching it off until some time has gone by.

While I intend to eventually use an ESP32 to make use of it’s WiFi capabilities. To try and get a rudimentary version up and running as fast as possible, I used the following components:

        - Arduino UNO R3,
        - SG90 9g microservo
        - DS1307 RTC Module
        - Breadboard
        - Male to Male Dupont Wires
        - Male to Female Dupont Wires
        - Powersupply that plugs into the wall
        - Foamboard
        - Tape

The current system uses a preset time which once reached causes the servo to actuate and flip the switch and then the servo goes into a position to prevent the switch from being flipped back.

This was just a short venture into a Proof of Concept for this device, but I intend to make the ESP32 Version significantly more robust and potentially include temperature monitoring, buzzers for sound, a display, and a 3D printed housing.

0
0
7

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…