Code Monkey home page Code Monkey logo

ws2812-audio-viz's Introduction

webaudio + ws2812 + webusb demo

This is a basic demo of controlling a matrix of ws2812 addressable LEDs via WebUSB.

It doesn't end here, what shows up on the matrix is a very basic audio visualization using WebAudio.

Hardware used

  1. WS2812 addressable LEDs
  2. Arduino Leonardo

How to run the demo

  1. Open demos/console/sketch/sketch.io in Arduino SDK.
  2. You'll need to upload the sketch to your board (make sure your board is connected over USB)
  3. Run a webserver in the root of this repo (hint: python -m SimpleHTTPServer)
  4. Head over to https://localhost:8000/console/index.html in Google Chrome and watch things glow.
  5. Feel free to tweak anything in these steps based on your thirst for adventure.

TIP: You can get the audio input from mic but that's generally not as much fun. Either you can change the audio input code a little to load your audio directly, or use a loopback software to route your audio out to a mic device and use the mic device as a input for WebAudio analyser.

ws2812-audio-viz's People

Contributors

dash1291 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ws2812-audio-viz's Issues

ESP8266 compatible?

Hi,
I was wondering if the code is compatible with the ESP8266 (nodeMCU)?

Would be really nice.

Regards

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.