Using the TinyShield 16 Edge LED Board Tutorial

by TinyCircuits Staff February 24, 2016

Using the TinyShield 16 Edge LED Board Tutorial

The TinyShield 16 Edge LED board has 16 LEDs mounted around the edge of the board. These LEDs only use five signals from the TinyDuino using a technique called Charlieplexing, which saves the other I/O for other functions for your project.

A basic example Arduino sketch that works with the TinyDuino and TinyShield 16 Edge LED boards is shown below:


A library for Charlieplexing can be found on the Arduino Playground: http://playground.arduino.cc/Code/Charlieplex

Circuit Details:

 

The TinyShield 16 Edge LED boards use pin numbers IO5, IO6, IO7, IO8 and IO9. Fo example, to turn-on the LED D1 (and D1 only), IO5 should be high, IO6 should be low, and all other pins should be set to an input (this prevents other LEDs from turning-on when they aren’t supposed to).

Note: A problem with Charlieplexing is that you obviously can’t turn-on all the LED’s at the same time. To account for this, you can “flash” them (turn them on and off really quick) at a frequency of at least 50Hz (assuming you don’t want to be able to see them flicker on and off).



TinyCircuits Staff
TinyCircuits Staff

Author



Also in Learn

New Tiny Arcade - Assembly Instructions (With Rev5 Boards)
New Tiny Arcade - Assembly Instructions (With Rev5 Boards)

by TinyCircuits Staff July 27, 2017

We are super excited to release our latest version of the beloved Tiny Arcade kit! This assembly tutorial features our...

View full article →

New Tiny Arcade - Assembly Instructions
New Tiny Arcade - Assembly Instructions

by TinyCircuits Staff July 25, 2017

We are super excited to release our latest version of the beloved Tiny Arcade kit! We've updated the design for...

View full article →

TinySaber Reprogramming - A How-To Guide
TinySaber Reprogramming - A How-To Guide

by TinyCircuits Staff July 18, 2017

This tutorial will walk you through how to reprogram your TinySaber to include custom POV text, special colors, lighting effects,...

View full article →