LEDs talk about LEDs

Jos van Bakel

Created: 2022-06-07 Tue 22:03

About me

  • NERD
  • Software developer at Spindle
  • Currently working on PWA SIP phone
  • Electronics hobbyist
  • Love LEDs

<3 LEDs

Action Reaction v1

arv1_1.jpg

Action Reaction v1

arv1_2.jpg

Action Reaction v1

arv1_3.jpg

Action Reaction v2

arv2_1.jpg

Action Reaction v2

arv2_2.jpg

Barrelchallenge

barrel_leds_1.jpg

Barrelchallenge

barrel_leds_2.jpg

LED table

led_table_2.jpg

LED table

led_table_1.jpg

LED table

led_table_3.jpg

Dogs

sudo.jpg

NeoPixels

A.K.A. WS2812, WS2811 or SK6812

neopixels.jpg

What is it

  • Driving lots of RGB leds used to be "hard"
  • .. not anymore with the WS2812 LED (NeoPixel)
  • RGB LED with integrated IC
  • Single wire protocol
  • Individually addressable
  • Cheap (~30$ for strip of 300)

What is it?

ws2812-led.png

How to drive it?

ws2812_protocol.png

How to drive it?

With a (micro)controller:

  • Arduino
  • ESP8266/ESP32
  • Raspberry Pi
  • lots of other MCU's

Javascript?

MongooseOS

Embedded "OS" for ESP8266 and ESP322 (and more).

ESP8266

  • Dirt cheap (2-5$)
  • WiFi
  • 80/160MHz
  • up to 16M flash

and runs Javascript!

mJS implements a strict subset of ES6:

  • Any valid mJS code is a valid ES6 code.
  • Any valid ES6 code is not necessarily a valid mJS code.

Demo!

Questions?

Sources

https://www.instructables.com/id/LED-Throwies/ ws2812-led-with-red-green-and-blue.png glamour.jpg?1515089818 ws2812_protocol.png