{"id":3325,"date":"2018-06-22T22:49:33","date_gmt":"2018-06-22T22:49:33","guid":{"rendered":"http:\/\/avitech.com.au\/?page_id=3325"},"modified":"2019-06-27T00:58:56","modified_gmt":"2019-06-27T00:58:56","slug":"arduino-getting-started","status":"publish","type":"page","link":"https:\/\/avitech.com.au\/?page_id=3325","title":{"rendered":"Arduino &#8211; Getting Started"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/learn-arduino-brochure.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3329\" data-permalink=\"https:\/\/avitech.com.au\/?attachment_id=3329\" data-orig-file=\"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/learn-arduino-brochure.jpg?fit=792%2C1118&amp;ssl=1\" data-orig-size=\"792,1118\" data-comments-opened=\"1\" data-image-title=\"learn-arduino-brochure\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/learn-arduino-brochure.jpg?fit=725%2C1024&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/learn-arduino-brochure.jpg?resize=213%2C300&#038;ssl=1\" alt=\"\" width=\"213\" height=\"300\" class=\"alignright size-medium wp-image-3329\" srcset=\"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/learn-arduino-brochure.jpg?resize=213%2C300&amp;ssl=1 213w, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/learn-arduino-brochure.jpg?resize=768%2C1084&amp;ssl=1 768w, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/learn-arduino-brochure.jpg?resize=725%2C1024&amp;ssl=1 725w, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/learn-arduino-brochure.jpg?resize=106%2C150&amp;ssl=1 106w, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/learn-arduino-brochure.jpg?resize=300%2C423&amp;ssl=1 300w, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/learn-arduino-brochure.jpg?w=792&amp;ssl=1 792w\" sizes=\"auto, (max-width: 213px) 100vw, 213px\" \/><\/a><\/p>\n<p>This page has the links and other resources for the <em>Learn Arduino<\/em> workshops held at the Watsonia Library in 2018.<\/p>\n<p>The <em>Learn Arduino<\/em> slides (see link below) provide an introduction to the Arduino, and some guidance on getting your first project up and running.<\/p>\n<p>These workshops use examples provided in Alan Smith&#8217;s <em>Introduction to Arduino<\/em> textbook.  Alan&#8217;s book is available as a free PDF download (see link below), or a hard copy can be purchased from Amazon via a link on Alan&#8217;s website <a href=\"http:\/\/www.introtoarduino.com\" rel=\"noopener noreferrer\" target=\"_blank\">www.introtoarduino.com<\/a>.<\/p>\n<h4>Key resources<\/h4>\n<div style=\"padding-left: 30px;\">\n<p><a href=\"http:\/\/www.avitech.com.au\/mm-files\/arduino\/learning-arduino\/Introducing%20the%20Arduino%20%28MM%20June%202018%29.pptx\" rel=\"noopener noreferrer\" target=\"_blank\"><em>Learn Arduino<\/em> slides<\/a> (PowerPoint) <\/p>\n<p><a href=\"https:\/\/www.arduino.cc\/en\/Main\/Software\" rel=\"noopener noreferrer\" target=\"_blank\">Download the Arduino IDE software<\/a><\/p>\n<p><a href=\"https:\/\/www.introtoarduino.com\/downloads\/IntroArduinoBook.pdf\" rel=\"noopener noreferrer\" target=\"_blank\"><em>Introduction to Arduino<\/em> by Alan Smith<\/a> (Textbook in PDF format)<\/p>\n<\/div>\n<h4>Led Chaser<\/h4>\n<p><a href=\"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/led-chaser.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3335\" data-permalink=\"https:\/\/avitech.com.au\/?attachment_id=3335\" data-orig-file=\"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/led-chaser.jpg?fit=1280%2C720&amp;ssl=1\" data-orig-size=\"1280,720\" data-comments-opened=\"1\" data-image-title=\"led-chaser\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/led-chaser.jpg?fit=900%2C506&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/led-chaser.jpg?resize=300%2C169&#038;ssl=1\" alt=\"\" width=\"300\" height=\"169\" class=\"alignright size-medium wp-image-3335\" srcset=\"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/led-chaser.jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/led-chaser.jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/led-chaser.jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/led-chaser.jpg?resize=150%2C84&amp;ssl=1 150w, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/led-chaser.jpg?w=1280&amp;ssl=1 1280w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>This is the project in Chapter 2.8 of Alan Smith&#8217;s <em>Introduction to Arduino<\/em> textbook.<\/p>\n<p>To make this project, you will need an Arduino board (such as the Arduino UNO), a breadboard, 4 x LEDs, 4 x 220R resistors, and some jumper wires.<\/p>\n<p>The Arduino &#8220;Sketch&#8221; is provided below.  Copy and paste this into the Arduino IDE.<\/p>\n<p>When you hit the &#8220;upload&#8221; button in the Arduino IDE, this program will be compiled and then uploaded to your Arduino board. If all goes well, you should see a repeating light-chasing pattern on your 4 LEDs.<\/p>\n<p>If the project uploaads successfully but doesn&#8217;t run properly, the most likely explanation is that one or more of the LEDs is around the wrong way.  Try pulling the LED out from the breadboard, rotating it 180 degrees, and reinserting it. <\/p>\n<pre>\r\n\/*\r\n *  LED Chaser example \r\n *  \r\n *  From Chapter 2.8 of Alan Smith's \"Introduction to Arduino\" textbook\r\n *  www.introtoarduino.com\r\n *  \r\n *\/\r\n\r\nconst int kPinLed1 = 2;\r\nconst int kPinLed2 = 3;\r\nconst int kPinLed3 = 4;\r\nconst int kPinLed4 = 5;\r\n\r\nvoid setup()\r\n{\r\n  pinMode(kPinLed1, OUTPUT);\r\n  pinMode(kPinLed2, OUTPUT);\r\n  pinMode(kPinLed3, OUTPUT);\r\n  pinMode(kPinLed4, OUTPUT);\r\n}\r\n\r\nvoid loop()\r\n{\r\n  \/\/ turn on each of the LEDs in order\r\n  digitalWrite(kPinLed1, HIGH);\r\n  delay(100);\r\n  digitalWrite(kPinLed2, HIGH);\r\n  delay(100);\r\n  digitalWrite(kPinLed3, HIGH);\r\n  delay(100);\r\n  digitalWrite(kPinLed4, HIGH);\r\n  delay(100);\r\n\r\n  \/\/ turn off each of the LEDs in order\r\n  digitalWrite(kPinLed1, LOW);\r\n  delay(100);\r\n  digitalWrite(kPinLed2, LOW);\r\n  delay(100);\r\n  digitalWrite(kPinLed3, LOW);\r\n  delay(100);\r\n  digitalWrite(kPinLed4, LOW);\r\n  delay(100);\r\n}\r\n<\/pre>\n<h4>Potentiometer<\/h4>\n<p><a href=\"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/potentiometer.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3340\" data-permalink=\"https:\/\/avitech.com.au\/?attachment_id=3340\" data-orig-file=\"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/potentiometer.jpg?fit=2560%2C1440&amp;ssl=1\" data-orig-size=\"2560,1440\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;1.7&quot;,&quot;camera&quot;:&quot;SM-G955F&quot;,&quot;created_timestamp&quot;:&quot;1529747521&quot;,&quot;focal_length&quot;:&quot;4.2&quot;,&quot;iso&quot;:&quot;250&quot;,&quot;shutter_speed&quot;:&quot;0.05&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"potentiometer\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/potentiometer.jpg?fit=900%2C506&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/potentiometer.jpg?resize=300%2C169&#038;ssl=1\" alt=\"\" width=\"300\" height=\"169\" class=\"alignright size-medium wp-image-3340\" srcset=\"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/potentiometer.jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/potentiometer.jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/potentiometer.jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/potentiometer.jpg?resize=150%2C84&amp;ssl=1 150w, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/06\/potentiometer.jpg?w=1800&amp;ssl=1 1800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>This is the project in Chapter 3.2 and Listing 3.5 of Alan Smith&#8217;s <em>Introduction to Arduino<\/em> textbook.<\/p>\n<p>To make this project, you will need an Arduino board (such as the Arduino UNO), a breadboard, 1 x LED, 1 x 220R resistor, 1 x 4.7K potentiometer, and some jumper wires.<\/p>\n<p>The Arduino &#8220;Sketch&#8221; is provided below.  Copy and paste this into the Arduino IDE.<\/p>\n<p>Compile and upload this program to your Arduino board. If all goes well, the speed at which the LED flashes will vary as you turn the potentiometer.<\/p>\n<pre>\r\n\/*\r\n *  Potentiometer example \r\n *  \r\n *  From Chapter 3.2 of Alan Smith's \"Introduction to Arduino\" textbook\r\n *  www.introtoarduino.com\r\n *  \r\n *\/\r\n\r\nconst int kPinPot = A0;\r\nconst int kPinLed = 9;\r\n\r\nvoid setup()\r\n{\r\n  pinMode(kPinLed, OUTPUT);\r\n}\r\n\r\nvoid loop()\r\n{\r\n  int sensorValue;\r\n\r\n  sensorValue = analogRead(kPinPot);\r\n\r\n  digitalWrite(kPinLed, HIGH);\r\n  delay(sensorValue);\r\n  digitalWrite(kPinLed, LOW);\r\n  delay(sensorValue);\r\n}\r\n<\/pre>\n<h4>Infrared Remote Control<\/h4>\n<p>Adding an infrared remote control receiver to an Arduino project is simple and cheap.<\/p>\n<p>This webpage describes the process -> <a href=\"http:\/\/www.circuitbasics.com\/arduino-ir-remote-receiver-tutorial\/\" rel=\"noopener noreferrer\" target=\"_blank\">How to Set Up an IR Remote and Receiver on an Arduino<\/a><\/p>\n<h4>Links<\/h4>\n<p>Starter Kits:<\/p>\n<div style=\"padding-left: 30px;\">\n<p><a href=\"https:\/\/www.ebay.com.au\/itm\/Arduino-r3-upgraded-version-learning-suite-raid-learning-starter-kit-ER\/113783082577?_trkparms=aid%3D111001%26algo%3DREC.SEED%26ao%3D1%26asc%3D20180105095853%26meid%3D4d78128c54124e4fb69baec54aa73e7e%26pid%3D100903%26rk%3D3%26rkt%3D20%26sd%3D223207226712%26itm%3D113783082577&#038;_trksid=p2509164.c100903.m5276\" rel=\"noopener noreferrer\" target=\"_blank\">Arduino starter kit on eBay ($37)<\/a><\/p>\n<p><a href=\"https:\/\/www.jaycar.com.au\/arduino-compatible-duinotech-learning-kit\/p\/XC3900\" rel=\"noopener noreferrer\" target=\"_blank\">Jaycar&#8217;s Arduino Learning Kit ($80)<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com.au\/ELEGOO-Project-Starter-Tutorial-Arduino\/dp\/B0772B34JW\/ref=asc_df_B0772B34JW\/?tag=googleshopdsk-22&#038;linkCode=df0&#038;hvadid=341773396021&#038;hvpos=1o1&#038;hvnetw=g&#038;hvrand=9163926745502990618&#038;hvpone=&#038;hvptwo=&#038;hvqmt=&#038;hvdev=c&#038;hvdvcmdl=&#038;hvlocint=&#038;hvlocphy=9071370&#038;hvtargid=pla-675218260055&#038;psc=1#\" rel=\"noopener noreferrer\" target=\"_blank\">Arduino Starter Kit on Amazon ($45)<\/a><\/p>\n<\/div>\n<p>Useful tutorials:<\/p>\n<div style=\"padding-left: 30px;\">\n<p><a href=\"https:\/\/www.jaycar.com.au\/arduino-learning\" rel=\"noopener noreferrer\" target=\"_blank\">Jaycar&#8217;s Intro to Arduino<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This page has the links and other resources for the Learn Arduino workshops held at the Watsonia Library in 2018. The Learn Arduino slides (see link below) provide an introduction to the Arduino, and some guidance on getting your first project up and running. These workshops use examples provided in Alan Smith&#8217;s Introduction to Arduino ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/avitech.com.au\/?page_id=3325\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3325","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P7xTsk-RD","jetpack-related-posts":[{"id":2031,"url":"https:\/\/avitech.com.au\/?page_id=2031","url_meta":{"origin":3325,"position":0},"title":"Arduino Notes","author":"malcolm","date":"24-May-2017","format":false,"excerpt":"This is just a collection of notes and links that I have found useful in getting to know the Arduino products. Using the Nano with CH340 USB adapter Getting a Nano with CH340 USB-to-RS232 chip working with the Arudino IDE is fairly straightforward. Here are the traps to work out\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2017\/05\/240x320-lcd-touch-screen-for-arduinoImageMain-515-300x300.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3372,"url":"https:\/\/avitech.com.au\/?page_id=3372","url_meta":{"origin":3325,"position":1},"title":"OMNIBUS Bootstrap Loader Prototype v1.0","author":"malcolm","date":"23-July-2018","format":false,"excerpt":"This is my first attempt to build a Bootstrap Loader board for the OMNIBUS. The mode of operation is largely modelled on the MI8-E (M847). I have some more information about a real MI8-E here. The OMNIBUS Bootstrap Loader Prototype v1.0 has been constructed and is working well (July 2018).\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2018\/07\/omnibus-bootloader-300x169.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1657,"url":"https:\/\/avitech.com.au\/?page_id=1657","url_meta":{"origin":3325,"position":2},"title":"QBUS Front Panel Project","author":"malcolm","date":"31-January-2017","format":false,"excerpt":"This project is an Arudino-based front panel for a bare QBUS PDP-11 chassis. It provides the switch and indicator functionality typically found on an early QBUS PDP-11 chassis (such as a BA11-MF or BA11-NC) and does the following: Switches an ATX power supply on and off, to power the PDP-11\u2026","rel":"","context":"With 5 comments","block_context":{"text":"With 5 comments","link":"https:\/\/avitech.com.au\/?page_id=1657#comments"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2017\/01\/20170712_111817-Medium.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2017\/01\/20170712_111817-Medium.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2017\/01\/20170712_111817-Medium.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2017\/01\/20170712_111817-Medium.jpg?resize=700%2C400 2x"},"classes":[]},{"id":1964,"url":"https:\/\/avitech.com.au\/?page_id=1964","url_meta":{"origin":3325,"position":3},"title":"DEC VT340 Internals","author":"malcolm","date":"26-April-2017","format":false,"excerpt":"In early 2017 there was some discussion on the SIMH mailing list regarding the simulation of various DEC VT-series terminals. Part of that discussion related to the ROMs and architecture inside DEC's VT340 terminal. According to that discussion the firmware for the VT340 includes the following: 512 x 8 2804\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2017\/04\/20170418_224430_1492519519228_resized-e1492520859459.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2017\/04\/20170418_224430_1492519519228_resized-e1492520859459.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2017\/04\/20170418_224430_1492519519228_resized-e1492520859459.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2017\/04\/20170418_224430_1492519519228_resized-e1492520859459.jpg?resize=700%2C400 2x, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2017\/04\/20170418_224430_1492519519228_resized-e1492520859459.jpg?resize=1050%2C600 3x, https:\/\/i0.wp.com\/avitech.com.au\/wp-content\/uploads\/2017\/04\/20170418_224430_1492519519228_resized-e1492520859459.jpg?resize=1400%2C800 4x"},"classes":[]},{"id":3267,"url":"https:\/\/avitech.com.au\/?page_id=3267","url_meta":{"origin":3325,"position":4},"title":"OMNIBUS Bootstrap Loader Project &#8211; Design Notes","author":"malcolm","date":"26-April-2018","format":false,"excerpt":"I am in the process of developing a multi-device \"Omnibus Bootstrap Loader\" board. The purpose of this project is to transfer bootstrap loader code into the PDP-8's core memory, using a similar technique to DEC's MI8-E board. This page captures my random thoughts and observations throughout the project. Interfacing to\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3697,"url":"https:\/\/avitech.com.au\/?page_id=3697","url_meta":{"origin":3325,"position":5},"title":"UNIX V6 on QBUS PDP-11","author":"malcolm","date":"17-November-2019","format":false,"excerpt":"I've starting playing around with UNIX v6 on the PDP-11. I'm using the \"v6_rl02_unknown\" image, which is discussed and available for download from https:\/\/github.com\/eunuchs\/unix-archive\/tree\/master\/PDP-11\/Boot_Images. This is an RL02 image. It must have a modified kernel, as apparently V6 was not originally distributed on RL02 media. Hardware The hardware used was\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/avitech.com.au\/index.php?rest_route=\/wp\/v2\/pages\/3325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/avitech.com.au\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/avitech.com.au\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/avitech.com.au\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/avitech.com.au\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3325"}],"version-history":[{"count":18,"href":"https:\/\/avitech.com.au\/index.php?rest_route=\/wp\/v2\/pages\/3325\/revisions"}],"predecessor-version":[{"id":3333,"href":"https:\/\/avitech.com.au\/index.php?rest_route=\/wp\/v2\/pages\/3325\/revisions\/3333"}],"wp:attachment":[{"href":"https:\/\/avitech.com.au\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}