element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Blog Smiliey Blink
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Workshopshed
  • Date Created: 26 Jul 2016 3:06 PM Date Created
  • Views 658 views
  • Likes 1 like
  • Comments 2 comments
Related
Recommended

Smiliey Blink

Workshopshed
Workshopshed
26 Jul 2016

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.

imageimage

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?

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

#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;
}

  • Sign in to reply

Top Comments

  • DAB
    DAB over 8 years ago +1
    Interesting. As I watched the animation, I visualized, or is audiolized, an ooga horn going on an off in sequence with the LED's. DAB
  • mcb1
    mcb1 over 8 years ago +1
    Nice. I haven't tried that library .. it looks really useful. Mark
  • mcb1
    mcb1 over 8 years ago

    Nice.

    I haven't tried that library .. it looks really useful.

     

    Mark

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 8 years ago

    Interesting.

     

    As I watched the animation, I visualized, or is audiolized, an ooga horn going on an off in sequence with the LED's.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube