Code Monkey home page Code Monkey logo

esp8266-min-max-thermometer's Introduction

ESP8266 thermometer

  • Current temperature shows in large LED display
  • Min and max temperatures, date and time of day recorded for the last several months
  • Temperature records downloadable as JSON over HTTP for display or further processing
  • Date and time synchronized from online time servers (NTP)

Parts

  • ESP-01 board
  • DS18B20 temperature sensor
  • TM1637 based 4-digit 7-segment display
  • 3.3V LDO

Build and flash

$ git clone https://github.com/rogerdahl/esp8266-min-max-thermometer.git
$ cd esp8266-min-max-thermometer

Proper timezone support isn't working. Currently must be hard coded by modifying the calculation done in main/ntp.c, getLocalNow():

$ editor ./main/ntp.c

The default GPIO configuration is set up for the ESP-01 board, using the UART RX/TX pins for communicating with the LCD display. So idf.py monitor won't work. This just builds and flashes the module, which can then moved over to the hardware board. For development work, use a board that breaks out more pins and modify the settings for ONEWIRE_PIN in onewire.c, and TM1637_CLK_PIN / TM1637_DIO_PIN in tm1637.c.

$ . ~/esp/ESP8266_RTOS_SDK/export.sh 

$ idf.py menuconfig

    > Example Connection Information
      > WiFi SSID
      > WiFi Password

$ idf.py fullclean build flash

esp8266-min-max-thermometer's People

Contributors

rogerdahl avatar

Stargazers

 avatar

Watchers

 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.