~~REVEAL~~
Participants will create an electronic display for their workplace/desk. The display uses a programmable 8×8 LED Matrix display, an Arduino Nano and a cardboard frame made using a laser-cutter.
Material | Quantity | Cost | Supplier |
---|---|---|---|
Arduino Nano v3 | 1 | $3.40 | AliExpress |
MAX7219-dot-matrix-module | 1 | $2.10 | AliExpress |
Short USB Cable - USB-A to Micro USB | 1 | $2 | Tronixlabs |
Total | $7.50 |
A microcontroller (or MCU for microcontroller unit) is a small computer on a single integrated circuit.
Microcontrollers are small, low powered and robust, making them perfect for embedded systems such as:
Arduino is an open source computer hardware and software company, project, and user community 1) .
It's time to get started!
Download the latest version of the Arduino IDE.
Follow the instruction and install the program on your computer.
A red and then a green LED will light up on the Arduino, indicating that it's receiving power (for some Arduinos this may just be a single red light)
Now launch Arduino IDE
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 pop-up with some information.
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 to load one of the basic example projects and upload it to the Arduino.
When working with the cardboard frame make sure you take care not to accidentally bend it other than where we have bend lines as this may affect the structural integrity later on.
If your frame has any holes filled in, make sure you remove them. Using an awl or pen/pencil works well but your hands should be sufficient.
Flip the frame so that the natural side faces up. We are now going to start shaping the frame using the bend lines
Let's fold it together. Don't slot the tab in yet as it will be difficult to open up again and may end up damaging the frame
Now it's time to mount and connect the screen.
Write down what color wire goes to each of the pins (each pin is labeled). This will make it a lot easier to correctly connect the screen to the Arduino later
Slot the wires through the dedicated hole. Try to run the wires on one side of the screen to help make everything fit
The Arduino fits into the two parallel slots. Make sure you orient the USB connector to match with the slot in the frame
Fold the side of the frame over (with the Arduino still attached) and connect the wires to the correct pins. This is where the notes you took earlier will come in handy. The pins on the Arduino are also labeled.
This is how the wires need to be connected:
Now it's time to check our Arduino and LED are talking to each other.
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).
Below you will find the project files compressed into a .ZIP file.
Note: You won't be able to run this script unless you have downloaded the library above.
It is time to test the project file in your desk Arduino. Upload it the same way as the blink file. Your desk Arduino should say Free Bear Hugs
.
While it's beyond the scope of this workshop to teach your how to program your Arduino - here are some tips on:
void loop() { // displayText(text1, 100); // Send scrolling Text displayText(text2, 100); // Send scrolling Text //displayCustom(smile01, 1000); }
Look for the void loop()
section. This contains what your Arduino will do once it turns on. In this case it will:
displayText(text1, 100);
as it has been commented out with two backslashesdisplayText(text2, 100)
displayCustom(smile01, 1000)
Want to change the displayed text?
text2
char text2[] = " FREE BEAR HUGS!!! "; // Scrolling Text
char text2[] = " I Have Changed!! "; // Scrolling Text
These files are for cutting on The Edge Rayjet. Settings are:
Colour | Power | Speed | Description |
---|---|---|---|
Black | 25 | 12 | Bend lines |
Red | 50 | 8 | Cut lines |