GithubHelp home page GithubHelp logo

candleproject's Introduction

Candle Project

This is my candle project. We shall see how it develops.

Tom Igoe
26 June 2015

Theory of Operation

ESP8266 modules handle the network traffic, and communicate serially to the ATTiny85, which controls the WS2812s. When the candle turns on, it turns two pixels to warm fading, and a thirs to blue. Then the ESP8266 attempts to contact the server. When it succeeds, the third pixel is turned to warm fading.

The metal can of the candle forms a capacitive touch sensor. When a touch is detected, the candle flares the pixels to white, and sends a signal to the server. The server then sends the same message to all the candles, causing them all to flare white. They gradually fade back to the warm glow.

Communication Protocol

All communications are over UDP. When a new client connects, the server sends "Hello!!!" to the client. When any candle sends a message to the server, the server echoes it to all servers that it's seen since launch.

When a candle receives a * message, it flares white. Similarly, when it receives a touch, it sends a * message.

  • Programming

The ATTinys must be removed and programmed with a hardware programmer. The ESP modules can be programmed over the serial connection. The ground of the serial connection is the pin closest to the outside edge of the board. You need to press the IO0 button then the reset on the ESP8266 to put it in programming mode. The indicator light will grow a dim red when you are in programming mode.

candleproject's People

Contributors

andysigler avatar tigoe avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.