I was just about to hook up an AdaFruit 8x8 LED matrix to the little round board from 4Troniks when they sent me something even better.
The version 0.2 board came with straight headers and an interesting daughter board full of WS2812B compatible LEDs. These are dead easy to code as they all take a common data line and work with the FastLED LED animation library for Arduino.
The new board is fractionally larger and can be quite tall when stacked up. However I was also given a protoshield which can be soldered in-between the two. I've still to design a badge to host the board so have been playing about with designs in OpenSCAD. I did mange to knock up a quick demo to see the LEDs in action. Perhaps this could be wired to a sound sensor so that the mouth moves when you speak?
#include "FastLED.h" //From FastLED LED animation library for Arduino (formerly FastSPI_LED) #define NUM_LEDS 14 #define DATA_PIN 4 CRGB leds[NUM_LEDS]; void setup() { FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS); FastLED.clear(); face(); } void loop() { smile(); FastLED.show(); delay(350); talk(); FastLED.show(); delay(350); } void face() { smile(); eyes(); FastLED.show(); } void eyes() { leds[0] = CRGB::Blue; leds[2] = CRGB::Blue; } void smile() { leds[7] = CRGB::Red; leds[10] = CRGB::Red; leds[11] = CRGB::Red; leds[12] = CRGB::Red; leds[13] = CRGB::Red; leds[8] = CRGB::Black; leds[9] = CRGB::Black; } void talk() { leds[7] = CRGB::Black; leds[10] = CRGB::Black; leds[8] = CRGB::Red; leds[9] = CRGB::Red; leds[11] = CRGB::Black; leds[12] = CRGB::Red; leds[13] = CRGB::Black; }
Top Comments