Lamp
A homemade dawn simulation lamp.
The time is kept using a real-time clock, coupled with an NTP connection to avoid drift.
Material
- ESP8266-powered board (such as the Wifi D1 mini from RobotDyn)
- Real-time clock + SD card shield (such as the Data logger shield, or two separate shields)
- Light dimmer (such as this one)
- Switches (1 temporary rocker and 1 on-on rocker)
- Light bulb + connectors
Hardware installation
TODO
Software installation
Pre-requisite: a TimeZone database API key is needed to convert from UTC to the local timezone
- Install the Arduino IDE
- Install the ESP8266 arduino extension
- add
https://arduino.esp8266.com/stable/package_esp8266com_index.json to the "Additional Boards Manager URLs" field in the IDE's preferences
- Install the extension via the "boards manager" of the IDE
- Configure the board (
LOLIN(WEMOS) D1 R2 & mini if using the one from the "material" section)
- Compile and Upload to the board
- Copy the
settings.ini file to the SD card (and change the settings if needed)
- Power up everything