DIY · KeyChainino

[DIY] Make your own KeyChainino

Alessandro Matera 2 min read

Many people, inspired by KeyChainino’s Charlieplexing, have developed their own device using KeyChainino’s sketches from my GitHub.

Someone has designed their own matrix schematic, someone else asked me for KeyChainino’s schematic to help with their KeyChainino replica.

KeyChainino was born to help people understand how charlieplexing works and to fit in a pocket – just in a keychain. So, if you want to build your own KeyChainino, continue reading this post!

A few posts ago, I explained how to use Charlieplexing with Arduino to drive many LEDs, with only a few pins.

Today I want to explain how to build your Charlieplexing matrix in an easy way.

First you need to know the number of columns and rows you want to use in the matrix.

If you want to build the same matrix as KeyChainino, you have 6 COLs and 5 ROWs.

How do we design the LED and pin connections?

Simple, first create a table and put the pins you want to use both in the X and Y axis. In the X axis we have the anode pins, in the Y axis we have the cathode pins.

Screen Shot 2016-01-24 at 17.36.12

Surely you understand that we can’t connect an LED between a pin and itself. So we need to delete the impossible connections, and, to connect 6 COLs of LEDs, we must use 7 pins – from 0 to 6.

Now, we can add the LEDs in the table in this way:

Screen Shot 2016-01-24 at 17.40.17

We stop when we reach our desired number of LEDs. So we don’t use pins 5 and 6 in the ROWs, but we use them in the COLs. We can update our table in this way:

Screen Shot 2016-01-24 at 17.43.27

Now, every LED has its own connection between two pins, one for anode and one for cathode.

You can choose different pins and different pins order in the table, but you have to change them in both columns and rows.

In KeyChainino I used these pins:

Screen Shot 2016-01-24 at 17.47.43

To make the real matrix connection for the LEDs, you can follow the table diagram:

Connect LED1’s anode to the pin 1 and its cathode to the pin 0.

Connect LED2’s anode to the pin 2 and its cathode to the pin 0. And so on.

Here’s the KeyChainino schematic to understand how the connections work.

KeyChainino_Schematic

 

Now, as explained in the previous post, you can create the LED connections in the sketch.

Anyway, you can look at all the KeyChainino Sketches to figure out how to handle the Charlieplexing matrix.

Now you have all the elements to build your own KeyChainino.

Otherwise, if you want a ready-to-use KeyChainino, that fits in a keychain, you can buy it here!

Ad Majora!

KeyChainino smile_100

Alessandro

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep reading

What is the watchdog and how to use it

Today I want to talk about a particular dog. Not a normal dog, but a special one who doesn’t need a leash. This dog watches you… and it’s…

How to solder THT

This is the tutorial dedicated to THT, the through-hole KIT version of KeyChainino. On this page you’ll learn, step by step, how to mount and solder all the components…

{"cart_token":"","hash":"","cart_data":""}