Giter Site home page Giter Site logo

charliegerard / lifi Goto Github PK

View Code? Open in Web Editor NEW
29.0 7.0 6.0 7.57 MB

Prototype of Li-Fi technology using Arduino and JavaScript ๐Ÿ’ก

License: MIT License

C++ 19.52% HTML 20.01% JavaScript 60.47%
arduino creative-coding hardware iot javascript johnny-five li-fi lifi nodejs

lifi's Introduction

Li-Fi

Prototype of Li-Fi technology to send data via light using Arduino and JavaScript.

Demo transmitting a Stripe Payment Link via light:

Demo transmitting a Stripe Payment Link via light

For more info, check out my blog post.

Material needed

Assembled following these schematics:

Schematics showing the 2 Arduinos set up

How to run

The JavaScript example

  1. Change directory to the ./js folder
  2. Run npm install
  3. Open 2 terminal windows, one for the transmitter and one for the receiver.
  4. In the transmitter window:
    • Run interchange install git+https://github.com/ajfisher/node-pixel -a uno --firmata to install the correct firmware on the Arduino.
    • Run node transmitter.js
  5. Upload Firmata on the receiver board
  6. Align the transmitter and receiver
  7. Run node transmitter.js in the trasnmitter terminal window and in the other one, run node receiver.js.

If everything is working fine, letters should start printing in the receiver terminal window.

The Arduino example

  1. Change directory to the ./arduino folder
  2. Align the transmitter and receiver
  3. Upload the receiver sketch on the Arduino set up to the phohotransistor
  4. Upload the transmitter sketch on the Arduino set up to the NeoPixel Jewel
  5. Open the serial monitor and letters should start printing

lifi's People

Contributors

charliegerard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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