- Joined
- Oct 16, 2019
- Messages
- 9
- Reaction score
- 10
I've been working on and off on the same issue for a while now. What I found to work is using the NTPclient library to keep track of time and using if statements for each part of the day (e.g. ramp up from 9-12, constant brightness from noon to 6 and ramp down from 6-8). Within those if statements you can create a math function to gradually increase the brightness of the lamp. I've been testing it with just a single 5mm LED.