Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
workshops:prototypes:c_template [2019/11/28 15:02]
Phil Gullberg [Table]
workshops:prototypes:c_template [2019/11/28 15:09] (current)
Phil Gullberg
Line 24: Line 24:
 ====   ==== ====   ====
  
-===== Frame ===== +====== Tools and Preparation ​======
- +
-{{:​workshops:​prototypes:​deskduino_v2:​deskduino_v2_frame.jpg?​nolink&​600|}} +
- +
-====   ​==== +
- +
- +
-====== 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/​output peripherals +
-  * 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://​en.wikipedia.org/​wiki/​Embedded_system|embedded systems]] such as:+===== 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://​en.wikipedia.org/​wiki/​Arduino|https://​en.wikipedia.org/​wiki/​Arduino]])) .+==== 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 +
-      * "​Someone,​ Somewhere has solved the problem"​ +
-      * 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-====
- +
-===== Step One: Connecting and Testing the Arduino Nano ===== +
- +
-==== Download the Arduino IDE ==== +
- +
-Download the latest version of the [[https://​www.arduino.cc/​en/​Main/​Software|Arduino IDE]]. +
- +
-{{  :​workshops:​prototypes:​wearables2-v3:​badgeduino_013a.png?​direct&​600 ​ }} +
- +
-====   ​==== +
- +
-Select your operating system and when prompted choose "Just Download"​. +
- +
-{{  :​workshops:​prototypes:​wearables2-v3:​badgeduino_013b.png?​direct&​600 ​ }} +
- +
-====   ​==== +
- +
-<WRAP hideslide>​If you are using a genuine Arduino with the FT chipsets you won't need to download any drivers on PC and MacOS Sierra. 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.</​WRAP>​ +
- +
-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) +
- +
-{{  :​workshops:​prototypes:​wearables2-v3:​badgeduino_013.jpg?​direct&​600 ​ }} +
- +
-====   ​==== +
- +
-Now launch Arduino IDE +
- +
-{{ :​workshops:​prototypes:​wearables2-v3:​badgeduino_arduino_01.png?​nolink&​400 |}} +
-====   ​==== +
-Go to the //​Tools// ​ menu and change the following:​ +
- +
-<WRAP hideslide>​{{ ​ :​workshops:​prototypes:​wearables:​wearables_arduino_tools_menu.png?​300 ​ |Tools Menu}}</​WRAP>​ +
- +
-  * **Board** ​ to **Arduino Nano** {{ :​workshops:​prototypes:​wearables2-v3:​badgeduino_arduino_02.png?​nolink&​600 |}} +
-  * **Processor** ​ to **ATmega328** or ATmega328(Old Bootloader) if you have an older Nano{{ :​workshops:​prototypes:​wearables2-v3:​badgeduino_arduino_03.png?​nolink&​600 |}} +
-  * **Port** ​ to USB/Serial (different depending on OS and Chip) +
-      * If you are having problems finding a USB port you most likely need to download the correct drivers. <WRAP hideslide>​Once again, the exact OS (and version) as well as the chip make a big difference. +
- +
-</​WRAP>​ +
- +
-====   ​==== +
- +
-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"​ 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!<​WRAP hideslide>​ Now we are ready for the real projects</​WRAP>​ +
- +
-===== 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. +
-</​WRAP>​ +
- +
- +
-The display and Arduino rest in the frame'​s cavities and generally don't need to be glued. If you're using a transparent acrylic glue will look bad and/or will create visible stains on the acrylic from the glue fumes.  +
- +
-Make sure the Arduino'​s legs are pointing towards the back. If you've already connected your pins it is possible to squeeze the Arduino through from the back, given the right angle. +
- +
- +
- +
-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 [[:​workshops:​prototypes:​wearables2-v3:​start#​arduino|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 +
- +
-==== Download and open the project ==== +
- +
-[[:​workshops:​prototypes:​wearables2-v3:​start#​arduino|Below]] you will find the project files compressed into a .ZIP file. +
- +
-  * Extract the content wherever you'd like it and open up the //<wrap hi><​wrap hi>​wearables_matrix_in</​wrap>​o</​wrap>// ​ file +
-  * 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 ''​Free Bear Hugs''​. +
- +
-==== 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 +
- +
-====   ​==== +
- +
-<​code>​ +
-void loop() +
-+
- // displayText(text1,​ 100);  // Send scrolling Text +
-  displayText(text2,​ 100);  // Send scrolling Text +
-  //​displayCustom(smile01,​ 1000); +
-+
-</​code>​ +
- +
-Look for the ''​void loop()'' ​ section. This contains what your Arduino will do once it turns on. In this case it will: +
- +
-  * ignore ''​displayText(text1,​ 100);'' ​ as it has been commented out with two backslashes +
-  * ''​displayText(text2,​ 100)''​ +
-  * ignore ''​displayCustom(smile01,​ 1000)''​ +
- +
-====   ==== +
- +
-Want to change the displayed text? +
- +
-  * Look for ''​text2''​ +
- +
-<​code>​ +
- char text2[] ​" FREE BEAR HUGS!!! ​   "; ​ // Scrolling Text +
-</​code>​ +
- +
-  * and change it +
- +
-<​code>​ +
-char text2[] ​" I Have Changed!! ​ "; ​ // Scrolling Text +
-</​code>​+
  
 ====== References ====== ====== References ======
  
-  * [[https://​github.com/​riyas-org/​max7219|MaxMatrix Github]]+  * [[#|Reference Link]]
  
 ===== Downloads ===== ===== Downloads =====
  
-==== Arduino ==== +  * {{#|Download ​(PDF)}} 
- +  * {{#|Download 2 (CDR)}}
-  * {{:​workshops:​prototypes:​wearables2-v2:​201712112_badgeduino.zip|Project Files}} +
-   * {{:​workshops:​prototypes:​wearables2-v2:​20171212_maxmatrix.zip|MaxMatrix Library}} +
- +
-==== Laser Cutter Files ==== +
- +
-These files are for cutting on The Edge Rayjet. Settings are: +
- +
-^ Colour ​ ^ Power  ^ Speed  ^ Description ​ ^ +
-| Black   | 60     | 80     | Engraving ​   | +
-| Red     | 100    ​| 1.7    | Cut lines    | +
-| Blue    | 50     | 50     | Bend Line    | +
- +
- +
-====   ​==== +
- +
-  * {{ :​workshops:​prototypes:​deskduino_v2:​deskduino_deluxe_v1.cdr | 5x Display - Corel Draw File}} +
-  * {{ :​workshops:​prototypes:​deskduino_v2:​deskduino_deluxe_mini_v3.cdr ​1x Display - Corel Draw File}} +
- +
-\\+
  
  
  • workshops/prototypes/c_template.txt
  • Last modified: 2019/11/28 15:09
  • by Phil Gullberg