Giter Site home page Giter Site logo

jandrassy / sunriseclock Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 0.0 4.72 MB

A light 'alarm' clock designed for gentle wake-up with increasing light intensity.

License: GNU Affero General Public License v3.0

C++ 100.00%
arduino tm1637 esp8266 sntp wifimanager alarm-clock arduino-sketch

sunriseclock's Introduction

SunriseClock

A light 'alarm' clock designed for gentle wake-up with increasing light intensity. Uses Wemos D1 mini, encoder with button, clock display with TM1637, LDR and 10 LEDs controlled as 4+3+3 blocks over 3 transistors. Everything soldered on a perfboard and put in a box.

  • The esp8266 connects once a day to Internet to get time from NTP server
  • To set WiFi parameters and advanced configuration WiFiManager library in SoftAP mode is used
  • LDR is used to adjust clock display brightness according to ambient light
  • Other alarm options are cycling LEDs, pulsing LEDs, full brightness of clock display, blinking clock display
  • alarm on weekend is optional and has a separate alarm time setting
  • if you like fall asleep with light, fade, fireplace and candles light effects are available
  • the LEDs can be turned on and the intensity can be set by rotating the encoder
  • the dim lighting and the fireplace or candles effect are nice not only for sleep :-)

Images

Some notes

  • I create pictures with marks what to solder because I let the soldering to a skilled buddy
  • if I would make the board again, I would put the encoder and the LDR higher and position the transistors at bottom
  • the jumper wires are 10cm 'dupont' jumper wires with the black plastic replaced with heat shrink tube and then bent at the flat part of the connector
  • the Wemos D1 has the CH340 on bottom side. it doesn't collide with the wires because the D1 is raised a little
  • the central LEDs are 3 yellow and one red. left and right block use 3 yellow LEDs each
  • the LEDs are soldered only on the power 'rail', the other leg is only tight in the hole with the wire. this allows to aim the LEDs
  • the fireplace effect has center LEDs slowly random pulsing in smaller PWM range and the left and right LEDs fast random pulsing at full PWM range. the 'fire' fades over falling asleep time.
  • the candles effect uses slow random pulsing of left and right LEDs block at small PWM range
  • and yes, I will buy a cable with 90° micro USB connector

sunriseclock's People

Contributors

jandrassy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.