Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
workshops:prototypes:c_template [2019/11/28 15:02] pgullberg [Table] |
workshops:prototypes:c_template [2019/11/28 15:09] pgullberg |
||
---|---|---|---|
Line 24: | Line 24: | ||
==== ==== | ==== ==== | ||
- | ===== Frame ===== | + | ====== Tools and Preparation |
- | + | ||
- | {{: | + | |
- | + | ||
- | ==== | + | |
- | + | ||
- | + | ||
- | ====== Tools and Prepartion | + | |
===== Tools ===== | ===== Tools ===== | ||
- | * Computer with working USB 2.0 ports | + | * Tool 1 |
- | * A working internet connection (or pre-downloaded files) | + | * Tool 2 |
- | * Pen/Awl | + | * Tool 3 |
- | * Ruler | + | * Tool 4 |
==== ==== | ==== ==== | ||
- | ====== Introduction to Arduino Microcontrollers ====== | + | ===== Preparation |
- | ==== What is a micro controller? ==== | + | Before the workshop you will need to ... |
- | A microcontroller (or MCU for microcontroller unit) is a small computer on a single integrated circuit. | + | ====== Workshop Walk through ====== |
- | * one or more CPUs (processor cores) | + | ===== Step 1 ===== |
- | * memory | + | |
- | * programmable input/ | + | |
- | * can be mixed signal devices interacting with | + | |
- | * digital signals | + | |
- | * analog singals | + | |
- | ==== | + | ==== Sub-Step 1 ==== |
- | ==== Why use an MCU? ==== | + | ==== Sub-Step 2 ==== |
- | Microcontrollers are small, low powered and robust, making them perfect for [[https:// | + | ===== Step 2 ===== |
- | * medical devices | + | ==== Sub-Step 2-1 ==== |
- | * remote controls | + | |
- | * office machines | + | |
- | * appliances | + | |
- | * power tools | + | |
- | * toys | + | |
- | * wearables! | + | |
- | ==== | + | ==== Sub-Step 2-2 ==== |
- | ==== What is Arduino? | + | ===== Step 3 ===== |
- | Arduino is an open source computer hardware and software company, project, and user community (([[https:// | + | ==== Sub-Step 3-1 ==== |
- | * The hardware is based on the Amtel 8-bit AVR MCU | + | ==== Sub-Step 3-2 ==== |
- | * The software uses the Processing IDE, with a simplified version of the C++ language | + | |
- | * Open source has led to the creation of a huge range of | + | |
- | * clones | + | |
- | * compatible devices | + | |
- | * peripherals | + | |
- | * A strong community means | + | |
- | * " | + | |
- | * we can run this workshop using and adapting existing resources. | + | |
- | ==== | + | ===== Step 4 ===== |
- | ====== Assembly and Testing ====== | + | ==== Sub-Step 4-1 ==== |
- | It's time to get started! | + | ==== Sub-Step 4-2 ==== |
- | + | ||
- | ===== Step One: Connecting and Testing the Arduino Nano ===== | + | |
- | + | ||
- | ==== Download the Arduino IDE ==== | + | |
- | + | ||
- | Download the latest version of the [[https:// | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | ==== | + | |
- | + | ||
- | Select your operating system and when prompted choose "Just Download" | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | ==== | + | |
- | + | ||
- | <WRAP hideslide> | + | |
- | + | ||
- | Follow the instruction and install the program on your computer. | + | |
- | + | ||
- | ==== | + | |
- | + | ||
- | ==== Connect Your Arduino ==== | + | |
- | + | ||
- | 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 // | + | |
- | + | ||
- | <WRAP hideslide> | + | |
- | + | ||
- | * **Board** | + | |
- | * **Processor** | + | |
- | * **Port** | + | |
- | * If you are having problems finding a USB port you most likely need to download the correct drivers. <WRAP hideslide> | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | ==== | + | |
- | + | ||
- | 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! | + | |
- | + | ||
- | ==== Test with the Blink Example ==== | + | |
- | + | ||
- | 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. | + | |
- | + | ||
- | * Go to File → Examples → 01.Basic → Blink | + | |
- | * Click on the verify button (Check mark) and let it compile. You should get a message at the top of the console telling you when it's done (this should take no more than a few seconds) | + | |
- | * Once this is done, without any errors, click the Upload button (Arrow) | + | |
- | * This will upload the instructions to the Arduino and it will say "Done Uploading" | + | |
- | * Your red LED on the Nano should now be blinking, one second on, one second off | + | |
- | * Uploading scripts to your Arduino works!< | + | |
- | + | ||
- | ===== Step Two: Assembly ===== | + | |
- | + | ||
- | <WRAP info> | + | |
- | If you need to use the plastic bending apparatus, use 105 degrees and the settings for 3mm acrylic. Align the horizontal line below the logo with the heating wires. make sure you are facing the plastic the correct way, so that when the logo is displayed correctly. Also make sure to remove the protective plastic from the acrylics before bending. | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | The display and Arduino rest in the frame' | + | |
- | + | ||
- | Make sure the Arduino' | + | |
- | + | ||
- | + | ||
- | + | ||
- | This is how the wires need to be connected: | + | |
- | + | ||
- | * SCL/CLK (System Clock) → D10 | + | |
- | * DIN(Data In) → D8 | + | |
- | * CS (Chip Select) → D9 | + | |
- | * GND (Ground) → GND | + | |
- | * VCC (Voltage) → VIN | + | |
- | + | ||
- | ===== Step Four - Using the Library and Project ===== | + | |
- | + | ||
- | Now it's time to check our Arduino and LED are talking to each other. | + | |
- | + | ||
- | ==== Download and install the 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 [[: | + | |
- | + | ||
- | * Go to Sketch → Include Library → Add .ZIP Library | + | |
- | * Just find and click the downloaded file and it will be added to your project automatically | + | |
- | + | ||
- | ==== Download and open the project ==== | + | |
- | + | ||
- | [[: | + | |
- | + | ||
- | * Extract the content wherever you'd like it and open up the //<wrap hi>< | + | |
- | * The .INO file format should be associated with Arduino and launch it automatically | + | |
- | * 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 you have downloaded the library above. | + | |
- | + | ||
- | ==== Upload the Project ==== | + | |
- | + | ||
- | 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 '' | + | |
- | + | ||
- | ==== Hacking the Code ==== | + | |
- | + | ||
- | While it's beyond the scope of this workshop to teach your how to program your Arduino - here are some tips on: | + | |
- | + | ||
- | * Changing the displayed text | + | |
- | * Displaying a symbol | + | |
- | * Changing the speed of the text scrolling | + | |
- | + | ||
- | ==== | + | |
- | + | ||
- | < | + | |
- | void loop() | + | |
- | { | + | |
- | // displayText(text1, | + | |
- | displayText(text2, | + | |
- | // | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | Look for the '' | + | |
- | + | ||
- | * ignore '' | + | |
- | * '' | + | |
- | * ignore '' | + | |
- | + | ||
- | ==== ==== | + | |
- | + | ||
- | Want to change the displayed text? | + | |
- | + | ||
- | * Look for '' | + | |
- | + | ||
- | < | + | |
- | char text2[] | + | |
- | </ | + | |
- | + | ||
- | * and change it | + | |
- | + | ||
- | < | + | |
- | char text2[] | + | |
- | </ | + | |
====== References ====== | ====== References ====== | ||
- | * [[https:// | + | * [[#|Reference Link]] |
===== Downloads ===== | ===== Downloads ===== | ||
- | ==== Arduino ==== | + | * {{#|Download |
- | + | * {{#|Download 2 (CDR)}} | |
- | * {{: | + | |
- | * {{: | + | |
- | + | ||
- | ==== Laser Cutter Files ==== | + | |
- | + | ||
- | These files are for cutting on The Edge Rayjet. Settings are: | + | |
- | + | ||
- | ^ Colour | + | |
- | | Black | 60 | 80 | Engraving | + | |
- | | Red | 100 | + | |
- | | Blue | 50 | 50 | Bend Line | | + | |
- | + | ||
- | + | ||
- | ==== | + | |
- | + | ||
- | * {{ : | + | |
- | * {{ : | + | |
- | + | ||
- | \\ | + | |