====== Badgeduino (MAX7219) - Woodford ====== {{workshops:prototypes:2022-23delivery-lasercutcovers:wearables2-v2:max7219.jpg?600|}} Workshop re-developed by Phil Gullberg late 2017. ===== Summary ===== Participants will be able to create a wearable brooch with a 8x8 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: * Basic Electronic Skills * Basic understanding of Arduino Microcontrollers * Basic understanding of Arduino coding and the IDE * Cross-disciplinary, Arts and Technology ==== Activity Summary ==== * What’s wearable technology/wearables? * Intro to Arduino microcontrollers * Intro to the Arduino IDE * Download Libraries and upload them to the Arduino * Basic / relevant electronic run down of the circuit * Facilitator and participants put the circuit together, demonstrating step by step and then walking around helping those that need assistance (we’ll do most/all soldering beforehand) * Run the test script / troubleshoot * Go through the code and show how to customize the script (maybe demo something that you have made) * Time for individual work / creativity * If there is time; show and tell ==== Materials ==== ^ Material ^ Quantity ^ Cost ^ Supplier | | | | | Arduino Nano v3 | 1 | $3.40 | [[https://www.aliexpress.com/item/1PCS-Nano-3-0-controller-compatible-with-nano-CH340-USB-driver-NO-CABLE-NANO-V3-0/32684621397.html?spm=2114.search0104.3.25.XKpv3c&ws_ab_test=searchweb0_0,searchweb201602_5_10152_10065_10151_10130_5490020_10068_5460017_5560011_10307_10137_10060_10131_10155_10132_10133_10154_10056_10055_10054_10059_5470020_100031_10099_10338_10339_10103_10102_440_10052_10053_10107_10050_10142_10051_10326_10084_10083_10080_10082_10081_10110_10175_10111_10112_10113_10114_5380017_143_5570011_10312_10313_10314_10078_10079_10073_5550011,searchweb201603_21,ppcSwitch_5&btsid=0e3ed4e9-d27b-4515-8735-8176df71ac0f&algo_expid=5efb8802-b672-4d2f-b066-1515d3feecbd-3&algo_pvid=5efb8802-b672-4d2f-b066-1515d3feecbd|AliExpress]] | | | | | Adafruit 8x8 LED Matrix 1.2" w/ Backpack and I2C | 1 | $2.10 | [[https://www.aliexpress.com/item/Free-shipping-MAX7219-dot-matrix-module-microcontroller-module-for-arduino-display-module-finished-goods/32305941397.html?spm=2114.search0104.3.1.dPNdMM&ws_ab_test=searchweb0_0,searchweb201602_5_10152_10065_10151_5490020_10130_10068_5560017_10307_10137_10060_10131_10155_10132_10133_10154_10056_10055_10054_10059_5470020_100031_10099_5460020_10338_10339_10103_10102_440_10052_10053_10107_10050_10142_10051_5380020_10326_10084_10083_10080_10082_10081_10110_10175_10111_10112_10113_10114_143_10312_10313_10314_10078_10079_5570017_10073_5550011,searchweb201603_21,ppcSwitch_5&btsid=34868971-667f-4b05-b767-36586f8723d9&algo_expid=1c70adbe-d66a-4ab6-9ca7-726b8e101ea9-0&algo_pvid=1c70adbe-d66a-4ab6-9ca7-726b8e101ea9|AliExpress, $2.10 Not tested]] | | | | | Lithium Ion Polymer Battery - 3.7v 500mAh | 1 | $5.70 | [[https://www.aliexpress.com/item/10pcs-3-7V-450mah-503035-Lithium-Polymer-Li-Po-Rechargeable-Battery-For-DIY-Mp3-MP4-MP5/1119097554.html?spm=2114.search0104.3.1.pvjsLA&ws_ab_test=searchweb0_0,searchweb201602_5_10152_10065_10151_10130_5490020_10068_5560011_10307_10137_10060_10131_10155_10132_10133_10154_10056_10055_10054_10059_5470020_100031_10099_5460020_10338_10339_10103_10102_440_10052_10053_10107_10050_10142_10051_5380020_10326_10084_10083_10080_10082_10081_10110_10175_10111_10112_10113_10114_143_10312_10313_10314_10078_10079_5570017_10073_5550011,searchweb201603_21,ppcSwitch_5&btsid=59c8d98a-40c7-4eb5-99ce-80b98de46e87&algo_expid=6ec27088-2b2b-48b6-906e-3b62a83c8a3d-0&algo_pvid=6ec27088-2b2b-48b6-906e-3b62a83c8a3d|AliExpress, $5.70]] | | | | | Micro USB LiPo charger w/ Protection | 1 | $0.8 | [[https://www.aliexpress.com/item/1PCS-5V-1A-Micro-USB-18650-Lithium-Battery-Charging-Board-Charger-Module-Protection-Dual-Functions/32467578996.html?spm=2114.search0104.3.1.p1HOkm&ws_ab_test=searchweb0_0,searchweb201602_5_10152_10065_10151_5490020_10130_10068_5560017_10307_10137_10060_10131_10155_10132_10133_10154_10056_10055_10054_10059_5470020_100031_10099_5460020_10338_10339_10103_10102_440_10052_10053_10107_10050_10142_10051_5380020_10326_10084_10083_10080_10082_10081_10110_10175_10111_10112_10113_10114_143_10312_10313_10314_10078_10079_5570017_10073_5550011,searchweb201603_21,ppcSwitch_5&btsid=4dfab8a1-317b-423b-9944-cccc0979065c&algo_expid=57072b0f-fd87-4756-b2a0-4dcf18ac62f0-0&algo_pvid=57072b0f-fd87-4756-b2a0-4dcf18ac62f0|AliExpress, $0.45]] | | | | | Case | 1 | $4 | In-house | | | | | Attachment / Clip / Lanyard | 1 | $0.22 | [[https://www.aliexpress.com/item/10x-Lanyards-Neck-Strap-For-ID-Pass-Card-Badge-Gym-Key-Mobile-Phone-USB-Holder-DIY/32645496284.html?spm=2114.search0104.3.1.eLYUC7&ws_ab_test=searchweb0_0,searchweb201602_5_5570020_10152_10065_10151_10130_5490020_10068_10307_10137_10060_10131_10155_10132_10133_10154_10056_10055_10054_10059_5470020_100031_10099_5460020_10338_10339_10103_10102_440_10052_10053_10107_10050_10142_10051_5380020_10326_10084_10083_10080_10082_10081_10110_10175_10111_10112_10113_10114_143_10312_10313_10314_5560020_10078_10079_10073_5550011,searchweb201603_21,ppcSwitch_5&btsid=555bc41f-f88a-48a6-b281-aa5a7fd2dc05&algo_expid=b799df00-4c2b-4e8c-bf7f-20a3603dcee5-0&algo_pvid=b799df00-4c2b-4e8c-bf7f-20a3603dcee5|AliExpress]] | | | | | Short USB Cable - USB-A to Micro USB | 1 | $2 | [[https://tronixlabs.com.au/cables/usb/short-usb-cable-a-plug-to-micro-usb-plug-10cm-australia/|Tronixlabs]] | | | | | | **TOTAL**: | **$10** | | | | | ==== Tools & Equipment ==== * Computer with working the latest version of Arduino installed. ===== Instructions ===== ==== Step Zero: Attaching LED Matrix to Backpack ==== * Text on LED Matrix facing towards you * Backpack has a single filled circle, face it towards you (Adafruit logo on your right, filled circle left) * Insert Matrix into backpack and flip it over * Make sure that LED Matrix text is on the same side as the "From Adafruit" text on the backpack * Solder the 16 points and clip off the legs at the base * Use for header pins and set them into a breadboard with the long pins down * Put the Matrix and backpack's 4 holes over the pins with the screen facing up * Solder the pins, do not clip anything off ==== 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 [[https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver|drivers]] for Mac. Download the latest version of the [[https://www.arduino.cc/en/Main/Software|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. {{workshops:prototypes:2022-23delivery-lasercutcovers:wearables:wearables_arduino_tools_menu.png?300|Tools Menu}} Go to the //Tools// menu and change the following: * **Board** to **Arduino Nano** * **Processor** to **ATmega328** * **Port** to USB/Serial (different depending on OS and Chip) * If you're having problems finding a USB port you most likely need to download the correct drivers. Once again exact OS (and version) as well as the chip make a big difference. 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: * SCL/CLK (System Clock) -> D10 (Green) * DIN(Data In) -> D8 (Orange) * CS (Chip Select) -> D9 (Yellow) * GND (Ground) -> GND (Red) * VCC (Voltage In) -> +5V (Brown) 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. * OUT+ -> 3V3 * OUT- -> GND (there are two on the board) ===== References ===== * [[https://github.com/riyas-org/max7219|MaxMatrix Github]] ==== Files ==== * {{ workshops:prototypes:2022-23delivery-lasercutcovers:wearables2-v2:201712112_badgeduino.zip | Project Files}} * {{ workshops:prototypes:2022-23delivery-lasercutcovers:wearables2-v2:20171212_maxmatrix.zip | MaxMatrix Library}}