Coder Social home page Coder Social logo

patryk-kawalarz / nodejs-to-eink Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 29 KB

Convert any NodeJS generated canvas to stream data which can be easily handled by Arduino based hardware (like ESP8266) and displayed on the E-Ink display.

TypeScript 46.17% C++ 53.83%
javascript nodejs arduino c-plus-plus e-ink esp8266

nodejs-to-eink's Introduction

NodeJS to E-Ink

Convert any NodeJS generated canvas to stream data which can be easily handled by Arduino based hardware (like ESP8266) and displayed on the E-Ink display.

About

I spent a lot of time figuring out how to convert a canvas object to a monochrome picture which can be ease transferred to my ESP8266. Converting canvas to bitmaps was too complicated for me. So finally I decided to prepare a chain of 0 and 1 as information about which pixel should be black. ESP8266 must know the dimensions of the upcoming image but for me, it's not a problem.I know that using strings as raw data is lost of bytes but it was the only way to handle it based on my knowledge. 

Installation & usage

Download source code and install dependencies:

npm i

Now run Node app server:

nodemon app

Upload display.ino to your arduino hardware.

Make sure that you know correct IP address of your Node app server. I tested it on localhost so I used my local IP address: 192.168.0.42.

My hardware

Tested with Waveshare 5.83" E-Ink display and NodeMCU v2.

nodejs-to-eink's People

Contributors

patryk-kawalarz avatar

Stargazers

Andrew Stalick 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.