Code

The code for this demo project is done using Arduino. For other ESP32 projects I mostly use ESP-IDF but I wanted this project to be accessible to a wider audience. You can find the code here on Github. The clock firmware has the following features:

  • wifi manager with captive portal for entering wifi credentials
  • NTP time with regional daylight saving settings
  • Sunrise and sunset time info
  • Temperature and humidity info
  • Ambient light sensor
  • Clap sensor
  • Sound/music analyzer
  • Phone app

You can watch this video with a small demo starting at 0:45 seconds into the video: