GitXplorerGitXplorer
b

circle-clock

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
47b731422301ab3900532325f2992fa934b97ec1

Add build instructions

bbaruch committed 8 years ago
Unverified
0d47455d115191baa0fe9024c969c525c00fb7c0

Show that the config.h is an example only

bbaruch committed 8 years ago
Unverified
f93938b41be7ef4ca3f2592d9e5fa165e91a3896

Remove startup green leds while setting up

bbaruch committed 8 years ago
Unverified
95c624d0e340f75049b754d21108935594ff24f1

Use deep sleep to save power

bbaruch committed 8 years ago
Unverified
a6a347109bd47f33a4e1ddc3ef4f846946755c5c

Reduce needed wakeups by sleeping just as much needed

bbaruch committed 8 years ago
Unverified
be9995dccc07bce2a363b452557385d9b68fff85

Initial working version

bbaruch committed 8 years ago

README

The README file for this repository.

Circular Clock with an ESP8266 and a WS2812B led ring

This is code to make an "analog" clock from an ESP8266 module and a WS2812b led ring.

Wiring

  • Power needs to go to the led ring (I use 3.3v and it works)
  • Data line is connected from GPIO3 (D4 on the NodeMCU unit)
  • GPIO16 (D0 on NodeMCU) is connected to reset for deep sleep

Operation

The unit connects to a fixed WiFi network and gets time from an NTP server (with SNTP protocol). It then sets the leds as for an analog clock with a red led for the hour and a blue led for the minutes. It then goes to sleep until the time comes to change the leds position.

Build

This uses platform.io, you need to install that first.

  • Copy src/config.h.example to src/config.h
  • Edit the src/config.h to the values you need: access point name, password and ntp server (usually your router) You can use the existing default for the ntp server but it will be slower since it is a random server in a large pool rather than your local router on your network.
  • Actual build: make build
  • Upload sketch to esp8266: make upload