A-Louarn / lamp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Install the Arduino IDE
  2. Install the ESP8266 arduino extension
    1. add https://arduino.esp8266.com/stable/package_esp8266com_index.json to the "Additional Boards Manager URLs" field in the IDE's preferences
    2. Install the extension via the "boards manager" of the IDE
  3. Configure the board (LOLIN(WEMOS) D1 R2 & mini if using the one from the "material" section)
  4. Compile and Upload to the board
  5. Copy the settings.ini file to the SD card (and change the settings if needed)
  6. Power up everything

About


Languages

Language:C++ 77.3%Language:JavaScript 15.7%Language:HTML 4.1%Language:C 2.3%Language:CSS 0.6%