Table of Contents

Badgeduino (MAX7219) - Woodford

Workshop re-developed by Phil Gullberg late 2017.

Summary

Participants will be able to create a wearable brooch with a 8×8 LED Matrix, low resolution display. With the use of an arduino and a battery it allows for an endless possibility of customization and innovation. Furthermore participants can continue work on their wearable tech by adding sensors for even more interesting results.

This is the second part of the wearable workshop, find part one here. It was initially developed for the Flying Arts program ArtizINNOVATE@theEdge in June 2017. This version was developed to reduce the price of the kit for the Woodford Folk Festival 2017/2018.

The workshop will cover:

Activity Summary

Materials

Material Quantity Cost Supplier
Arduino Nano v3 1 $3.40 AliExpress
Adafruit 8×8 LED Matrix 1.2“ w/ Backpack and I2C 1 $2.10 AliExpress, $2.10 Not tested
Lithium Ion Polymer Battery - 3.7v 500mAh 1 $5.70 AliExpress, $5.70
Micro USB LiPo charger w/ Protection 1 $0.8 AliExpress, $0.45
Case 1 $4 In-house
Attachment / Clip / Lanyard 1 $0.22 AliExpress
Short USB Cable - USB-A to Micro USB 1 $2 Tronixlabs
TOTAL: $10

Tools & Equipment

Instructions

Step Zero: Attaching LED Matrix to Backpack

Step One: Arduino Software and Drivers

If you are using a genuine Arduino with the FT chipsets you won't need to download any drivers on PC and MacOS Sierra or later. If you are using a knockoff Arduino with the CH340G chip you will need to download the drivers for Mac.

Download the latest version of the Arduino IDE. Select your operating system and when prompted choose “Just Download”.

Follow the instruction and install the program on your computer.

Step Two: Connecting and Testing the Arduino Nano

Connect the USB cable to your Arduino. A red and then a green light should light up on the Arduino, indicating that it's receiving power. The green LED should glow solid. Now launch Arduino.

Tools Menu

Go to the Tools menu and change the following:

Once that is done, run “Get Board Info” in the same menu, this should bring up a small popup with some info. As long a you're not receiving an error in the console, you have successfully connected your Arduino!

Another step you can take to test that everything is working is load one of the basic example projects and uploading it to the Arduino.

Go to File → Examples → 01.Basic → Blink

Click on the verify button (Check mark) and let it compile. You should be getting message at the top of the console telling you when it's done (should take no more than a few seconds).

Once that is done, without any errors, click the Upload button (Arrow). This will upload the instructions to the Arduino and it will say “Done Uploading” when everything worked.

Your red LED on the Nano should now be blinking, one second on, one second off. Uploading scripts to your Arduino works! Now we are ready for the real projects.

Step Three: Downloading and opening the project

Below you will find the project files compressed into a .ZIP file. Extract the content wherever you'd like it and open up the wearables_matrix_ino file. The .INO file format should be associated with Arduino if you've installed it. Alternatively you can open Arduino and select the File → Open option in the menu.

Note: You won't be able to run this script unless step four has been completed.

Step Four: Downloading and Installing Library

In order to make the LED display a lot easier to work with we'll need to install a custom version of the MaxMatrix library (found in the download section below).

Go to Sketch → Include Library → Add .ZIP Library

Just find and click the downloaded file and it will be added to your project automatically.

Step Five: Connect the LED Matrix

We're going to connect five jumper leads to the Arduino. Please note that the pins for SCL and SDA are different for each Arduino. Make sure you Google if you are using a different Arduino than in these instructions.

Generally VCC and GND are red and black but to make things a little easier we're letting the wires stick together in their natural order.

Arduino Nano:

If you've completed the steps in step 3 and 4 you're now ready to upload your script.

Step Six: Battery Pack and USB Charger

Make sure when handling the battery you do not let any conductive surfaces or wires touch. This will short the battery which makes it unusable.

The battery and charger have been prepared but before connecting them to a computer (via USB cable) or the Arduino make sure that the RED wire from the battery is connected to B+ and the BLACK wire is connected to B-. If this is not correct please notify the facilitator immediately, the components will need to be rewired or swapped out. Both the battery and the charging board have protection circuitry but must always be handled with care.

References

Files