All Projects → owenmcateer → canvas-cast

owenmcateer / canvas-cast

Licence: GPL-3.0 License
Cast any <canvas> element to an LED Matrix over WebSockets with an Arduino/ESP8266.

Programming Languages

C++
36643 projects - #6 most used programming language
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
SCSS
7915 projects
CSS
56736 projects

Projects that are alternatives of or similar to canvas-cast

The Matrix Effect
The incredible effect of rain of letters in the style of the Matrix trilogy.
Stars: ✭ 109 (+179.49%)
Mutual labels:  canvas, matrix
chromecast-api
📺 Chromecast Node.js module
Stars: ✭ 122 (+212.82%)
Mutual labels:  stream, cast
Rxdownloader
Demo of Downloading Songs/Images through Android Download Manager using RxJava2
Stars: ✭ 166 (+325.64%)
Mutual labels:  canvas, stream
Sharpmath
A small .NET math library.
Stars: ✭ 36 (-7.69%)
Mutual labels:  canvas, matrix
playercast
Cast to media player and control playback remotely.
Stars: ✭ 46 (+17.95%)
Mutual labels:  stream, cast
MwK-Musics
A Telegram Bot to Play Audio in Voice Chats With Youtube and Deezer support. Supports Live streaming from youtube Supports Mega Radio Fm Streamings
Stars: ✭ 38 (-2.56%)
Mutual labels:  stream
monolish
monolish: MONOlithic LInear equation Solvers for Highly-parallel architecture
Stars: ✭ 166 (+325.64%)
Mutual labels:  matrix
vidi
<video> playback simplified
Stars: ✭ 31 (-20.51%)
Mutual labels:  stream
WebRTCCTV
WebRTCCTV is a signaling server & webapp able to stream from RTSP cameras using WebRTC
Stars: ✭ 32 (-17.95%)
Mutual labels:  stream
Alchemy
CV DL
Stars: ✭ 59 (+51.28%)
Mutual labels:  matrix
radiaSlider
circular/linear knob-style slider
Stars: ✭ 18 (-53.85%)
Mutual labels:  canvas
downscale
Better image downscale with canvas.
Stars: ✭ 80 (+105.13%)
Mutual labels:  canvas
TLightFileStream
Implements a lightweight, high-performance, non-allocating advanced-record-based wrapper around the SysUtils file handling routines as an alternative to Classes.TFileStream.
Stars: ✭ 21 (-46.15%)
Mutual labels:  stream
canvas2video
canvas2video is a backend solution for creating and rendering dynamic videos.
Stars: ✭ 194 (+397.44%)
Mutual labels:  canvas
pcap-processor
Read and process pcap files using this nifty tool
Stars: ✭ 36 (-7.69%)
Mutual labels:  stream
shoot game
🎮 It is a game using HTML5 Canvas and Vanilla JavaScript.
Stars: ✭ 35 (-10.26%)
Mutual labels:  canvas
Scylla
An Elm-based front-end for Matrix.
Stars: ✭ 24 (-38.46%)
Mutual labels:  matrix
mxpp
Bot for bridging Matrix and XMPP
Stars: ✭ 23 (-41.03%)
Mutual labels:  matrix
wsa
WSA(Websocket Streaming Agent) is a stream server target for mp4/h264 streaming over websocket
Stars: ✭ 35 (-10.26%)
Mutual labels:  stream
android-cast-remote-display-sample
📻 Google Cast's Remote Display Sample for Android
Stars: ✭ 38 (-2.56%)
Mutual labels:  cast

Cast <canvas> to a Matrix

WebGL 3D

Cast any <canvas> element to an LED Matrix over WebSockets with an Arduino/ESP8266.

Bring your HTML canvas projects into the real world by streaming them in realtime over WiFi to an LED Matrix, using an Arduino compatable board with WiFi, such as the ESP8266..

Cast over USB?
See https://github.com/owenmcateer/canvas-cast-serial to cast without WiFi using a serial connection over USB.

Features:

  • Stream any canvas element over WiFi
  • Tested with 225 pixels at 60fps and 504 pixels at 30fps
  • 2D or 3D(WebGL)
  • Supports all popular LED types (powered by FastLED)
  • Matrix brightness control
  • Custom pixel layout mapping
  • Matrix status pixel
  • Web status/control

Status bar

More examples

p5js (Matrix rain)

Matrix rain - p5js

Custom pixel mapping

Displays don't just have to be plain grids, custom pixel mapping can create any display shape or layout.
Custom pixel mapping

Webcam streaming

Webcam streaming - p5js

Getting started setup

In this example setup we're using:

  • ESP8266 NodeMCU
  • 15x15 RGB LED Matrix (WS2812B)
  • 5V 10A PSU
  • Laptop & home WiFi

Arduino/ESP8266

  1. Open the Arduino sketch file and edit the following settings:
// Wifi SSID and password
const char* ssid = "NetworkName";
const char* password = "wifipassword";
// Matrix size
const uint8_t kMatrixWidth = 15;
const uint8_t kMatrixHeight = 15;
// Matrix settings
#define LED_PIN 3
#define COLOR_ORDER GRB
#define CHIPSET WS2812B
  1. Upload sketch to the ESP8266.
  2. Open console monitor and take note of ESP8266's IP address. (or check your WiFi route)
  3. On the Matrix, pixel zero(status pixel) will flash orange while it connects to Wifi, once connected it will pluse green to indacate it is ready.

Web interface

  1. Open src/index.html and edit the following config, found at the top of the document. WS port will be 81 unless you changed it in the Arduino sketch.
// Config
const matrix = {
  // Matrix IP & port of ESP8266
  ip: '192.168.1.65:81',
  // Matrix pixel size
  width: 15,
  height: 15,
};
  1. Run the local development environment and check the status bar and Matrix status pixel.
    npm install
    npm run start
  2. See /examples for some simple examples.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].