I’d like to introduce an electronics project that came about as a result of my reluctance to throw away a nice looking empty box. This year Valentine’s Day came around just about the time I was playing with ATTiny13 micros – I was setting my Arduino IDE up to be able to write code for and burn the program into smaller 8-bit AVR MCUs like ATTiny13. Once the box of chocolates has been freed of its original content by my dear wife Tanya, on the way to the trash I turned it over and realised that there’s a lot of space available inside the plastic insert. I could easily tuck a battery, an MCU and a bunch of LEDs in there for a nice blinking light effect.
By counting the possible spots for LED locations in the box, I decided I should use 10 LEDs. In the course of construction it turned out that a couple more could be mounted but 10 LEDs was the starting point for this project. ATTiny13 has only 5 I/Os (if we leave the 6th as RESET so we can more conveniently program it) and so Charlieplexing was used for connecting the LEDs. Charlieplexing is a technique that uses the fact that LEDs are, indeed, diodes and only light up when the current is flowing in one direction. In addition, it is making use of the fact that MCU I/O pins can be switched into a high-Z state (no current flowing in either direction). So, by manipulating the voltage of the outputs and enabling or disabling them when heeded, we can control up to 12 LEDs using only 4 I/O pins. Pretty clever and crafty technique names after Charlie Allen of Maxim Integrated Products who has proposed it first….
Adafruit has had paid day off for voting for our team for years, if you need help getting that going for your organization, let us know – we can share how and why we did this as well as the good results. Here are some resources for voting by mail, voting in person, and some NY resources for our NY based teams as well. If there are additional resources to add, please let us know – adafruit.com/vote
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.