Skip to content

funnierinspanish/web-serial-led-matrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Serial API

A demo showing the basics of Web Serial API to connect a browser with serial devices.

Check out the blog post on Web Serial API to learn more about it: https://dev.to/unjavascripter/the-amazing-powers-of-the-web-web-serial-api-3ilc

What? How?

This is a demo that uses the Web Serial API to control an 8x8 LED matrix using the MAX7219 integrated circuit connected to an Arduino. Wire up your LED matrix to your Arduino using the following pin configuraion:

I want to try it

Sure, just grab an Arduino and an 8x8 LED matrix using the MAX7219 and:

  1. Wire up your Arduino and LED matrix
    CS  -> pin 5 
    CLK -> pin 6
    DIN -> pin 7
    VCC -> 5V
    GND -> GND
    
  2. Connect your Arduino to your computer
  3. Upload the code in ./web_serial_led_matrix.ino to your Arduino
  4. Enable Your browser's Experimental Web Platform Features by visiting:

    chrome://flags/#enable-experimental-web-platform-features

    opera://flags/#enable-experimental-web-platform-features

    edge://flags/#enable-experimental-web-platform-features

    You can skip this part if you're using the hosted version. It includes an Origin Trial Token

  5. Run the demo app locally and open it in your browser (Chromium based 80+)
  6. Use the "Connect to serial port button" of the web app to connect to the right port
  7. Go crazy drawing using the canvas
  8. Be amazed by the powers of the web platform

Basic example

About

A Web Serial API demo that interacts with an Arduino and an 8x8 LED matrix using the MAX7219

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published