Giter VIP home page Giter VIP logo

esp-pcd-ntp's Introduction

esp-pcd-ntp

ESP8266 Arduino WiFi clock for PCD8544 LCD display periodically synchronized with Network Time Protocol servers.

This program requests date and time from time.nist.gov which randomly selects from a pool of NTP (Network Time Protocol) servers.

Date and time on LCD screen

Hardware Parts

This project uses the same hardware connected in the same way as the esp-pcd-weather project.

Connections

USB TTL Huzzah ESP8266 PCD8544/Nokia 5110 Description
       |GND        |GND        |Ground
       |3V         |VCC        |3.3V from Huzzah to display
       |14         |CLK        |Output from ESP SPI clock
       |13         |DIN        |Output from ESP SPI MOSI to display data input
       |12         |D/C        |Output from display data/command to ESP
       |#5         |CS         |Output from ESP to chip select/enable display
       |#4         |RST        |Output from ESP to reset display
       |15         |LED        |3.3V to turn backlight on, GND off

GND (blk) |GND | |Ground 5V (red) |V+ | |5V power from PC or charger TX (green)|RX | |Serial data from IDE to ESP RX (white)|TX | |Serial data to ESP from IDE

Dependencies

  • [Fork of Adafruit PCD8544 library with changes for ESP8266] (https://github.com/bbx10/Adafruit-PCD8544-Nokia-5110-LCD-library/tree/esp8266). Use the esp8266 branch!
  • Adafruit GFX library. Use the Arduino IDE Library Manager to get the latest version. No changes are needed for the ESP8266.
  • The Time library provides date and time with synchronization with external date and time sources. The library requests date and time from a Network Time Protocol (NTP) server every 5 minutes. In between calls to the NTP server, the library uses the millis() function to update the date and time. The NTP part of this program is based on the Time_NTP example.

Latest test build

The following software configuration was tested on Mar 23, 2016.

  • Arduino IDE 1.6.8
  • ESP8266 board package 2.1.0
  • Adafruit GFX library 1.1.5
  • Time library 1.5

esp-pcd-ntp's People

Contributors

bbx10 avatar

Watchers

 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.