Wake up light with NodeMCU
Have you ever had the problem of finding getting up in the morning really difficult? Maby you have a thing called blackout curtain and your room is pitch black in the morning so it's even harder to get up, but you can't sleep without it because it's so bright outside when there's streets lights everywhere? Perhaps you have had thoughts about getting a commercial wake up light from the nearest store, but all of them are either really costly or have some major design flaws and look like they are going to break as soon as the warranty goes out. Or maby even before that.
But worry no more, I have created the ultimate DIY wake up / go to sleep light. It's simple, cheap and easy to use. Just yeet (this is a YouTube link, not the GitHub repo!) the code in, connect 3 wires and you're good to go. If you want to use it as a night light and add an PIR motion sensor, you need additional 3 wires which makes a total of 6.
Why is it so simple you may ask? Well the answer is that it doesn't have a Real Time Clock module. It just connects to the internet and asks the time from an Network Time Protocol server. And those servers are pretty darn accurate, so you don't have to worry about setting the time by yourself, but only if you have an always on WiFi. You could add an RTC module to keep the time even if the NodeMCU is unpowered, but I think that it isn't required.
The actual code can be found from my GitHub (including the pinout): https://github.com/Teneppa/WakeUpLight
If you have any questions about the design or can't get it working, just leave a comment on the video on top and I'll try my best to answer as soon as I can!