Skip to content

Prototype of Li-Fi technology using Arduino and JavaScript 💡

License

Notifications You must be signed in to change notification settings

paycoocapital/lifi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Prototype of Li-Fi technology using Arduino and JavaScript 💡

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.5%
  • HTML 20.0%
  • C++ 19.5%