EMS1EP Lecture 1 Intro to Arduino Dr. Robert Ross.

Slides:



Advertisements
Similar presentations
EMS1EP Lecture 6 Digital Inputs
Advertisements

EMS1EP Lecture 5 Digital Outputs Dr. Robert Ross.
EMS1EP Lecture 2 Electronic Circuits Dr. Robert Ross.
EMS1EP Lecture 4 Intro to Programming Dr. Robert Ross.
EMS1EP Lecture 8 Pulse Width Modulation (PWM)
EMS1EP Lecture 9 Analog to Digital Conversion (ADC) Dr. Robert Ross.
Lecture 1 – Arduino Basics
Lab7: Introduction to Arduino
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
How to use Arduino By: Andrew Hoffmaster.
Embedded Sumo 1T4 – 1T5 UTRA.
1 Boe-Bot Parts BOE-BOT Lecture #1b DE - Digital Electronics.
New Human Computer Interfaces Amnon Dekel HUJI – CSE, Spring 2007 Class 3 March
Arduino. Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It's an open-source.
How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2014.
Introduction.
Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall.
 Main Components:  Sensors  Micro controller  Motor drivers  Chasis.
Khaled A. Al-Utaibi  What is Arduino?  Arduino Boards  Arduino Shields  Arduino Uno Hardware.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
Embedded Programming and Robotics
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Arduino Part 1 Topics: Microcontrollers Programming Basics: structure and variables Digital Output Analog to Digital Conversion.
Dean Brock, Rebecca Bruce and Susan Reiser, CCSC SE 2009 Using Arduino Material taken from Todbot blog Bionic Arduino Todbot blog Bionic ArduinoTodbot.
Getting started with interactive projects using the Arduino, Max and Processing.
Objectives How Microcontroller works
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Arduino 101 Instructors: Ted Markson / Jim Sweeney.
Overview What is Arduino? What is it used for? How to get started Demonstration Questions are welcome at any time.
Getting Started With the Arduino Uno
Microcontrollers, Microcomputers, and Microprocessors
An introduction to PIC’s for KS3 and KS4. Mr Rooks Hetton School.
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
Prototyping with Microcontrollers and Sensors. Overview Objective Background Information Problem Statement Materials Procedure Assignment Closing.
Having fun with code, using Arduino in a middle school CS classroom
Arduino.
ARDUINO BASED UNDERGROUND CABLE FAULT DETECTION
Michael Rahaim, PhD Candidate Multimedia Communications Lab
Welcome to Arduino A Microcontroller.
By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot
Scrolling LCD using Arduino.
Prototyping with Microcontrollers and Sensors
Fundamentals of Computer Engineering
Arduino Based Industrial appliances control system by decoding dual tone multi frequency signals on GSM / CDMA network. Submitted by:
Home automation using Arduino & ‘PIR sensor’
Michael Rahaim, PhD Candidate Multimedia Communications Lab
Microcontroller basics
Introduction to the Arduino
An Arduino Workshop A Microcontroller.
Arduino Development for Beginners
UCD ElecSoc Robotics Club 2017/2018
DIGITAL CALCULATOR USING 8051
Arduino Part 1 Topics: Microcontrollers Programming Basics
‘SONAR’ using Arduino & ultrasonic distance sensor
Roller Coaster Design Project
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
What is Arduino? By James Tedder.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Welcome to Digital Electronics using the Arduino Board
CSCI1600: Embedded and Real Time Software
Basic Electronics Part Two: Electronic Components.
CSCI1600: Embedded and Real Time Software
Introduction to Arduino
Lab #1: Getting Started.
Introduction to Arduino
Arduino Board.
Arduino म्हणजे काय?.
Introduction to Arduinos
Introduction to arduino
Presentation transcript:

EMS1EP Lecture 1 Intro to Arduino Dr. Robert Ross

Overview (what you should learn today) What this subject is all about (assessment, labs, passing) Electronic components: – Switches, LEDs, Resistors, Capacitors, Voltage Regulators, Microcontrollers, The LArduino Development Board

Lecturer Details Dr. Robert Ross B.CS(Hons)/B.EE(Hons), PhD Robotics Field (La Trobe) Office: BG441 Phone: Mr. Tommy Huynh (Lab demonstrator) B.EE(Hons), Currently doing a PhD in Robotics Office: BG417 Phone:

Lectures Outline The project section of the subject has 6 lectures: 1.Intro 2.Digital Inputs 3.Digital Outputs 4.Program Flow + Serial Comms 5.Pulse Width Modulation (PWM) 6.Analog to Digital Conversion (ADC)

Laboratories Outline The project section of this subject has 11 laboratory classes (starting week 2): 1.Solder LArduino PCB 2.Digital Outputs 3.Digital Inputs 4.Debouncing Switches 5.PWM 6.ADC 7-8. Minor Project Major Project

Calendar of classes Lectures for project section of course: – Monday (week 1,3,4,5,6,7) Labs for project – Monday 3-5, Wed 11-1 (Every week starting week 2)

Assessment Outline Assessment for EMS1EP: – 35% Laboratory – 15% Oral Presentation – 50% In-class test and report Of the 35%: – Labs 1-6 are worth 8.3% each – Minor project is worth 15% – Major project is worth 35% (robot) A section of the in-class test will be related to the project section

Video of final project

Multi-disciplined approach Australian Council of Engineering Deans report: – Recommendation 3: Engineering schools must develop best-practice engineering education, promote student learning and deliver intended graduate outcomes. Curriculum will be based on sound pedagogy, embrace concepts of inclusivity and be adaptable to new technologies and inter-disciplinary areas. Valuable to have skills outside your discipline – Project application areas often involve other disciplines

Questions on Assessment?

Electronic Components Electronic components: – Switches – LEDs – Resistors – Capacitors – Voltage Regulators – Microcontrollers

Switches and Buttons Switches and buttons allow users to interact with electronic systems Terms commonly used in place of each other or sometimes together (i.e. push button switch) Purpose is to make and break electrical circuits (shorts out connection)

Typically: Button: – Button makes the electrical circuit only when pressed (e.g. keyboard) Switch: – Switch allows the making of the circuit to be toggled (on/off) (or from one circuit to another) (e.g. light switch Switches and Buttons

LEDs (Light Emitting Diodes) LEDs are semiconductor light sources They are diodes (can only be used in one direction) Require 1.6V – 3V to turn on Very bright LEDs are starting to be used for room lighting 2 Legs: – Longer leg goes to positive – Shorter leg goes to ground – At the base of the LED the shorter leg side is flat not round

Resistors Has a specified value of electrical resistance to resist current flow Colour codes used to decode the value of the resistor

Capacitors Stores electrical energy electrostatically in an electric field Lots of different types of capacitors Sometimes polarised (must be connected the correct way around) sometimes not Multiple uses: – Blocking DC voltages – Tuning radio frequencies – Smoothing out power supplies

Voltage Regulators Maintain a constant voltage level Input voltage may vary but output voltage should remain constant (provided input is in correct range) Fixed v’s Adjustable Linear v’s Switched

Microcontrollers Programmable devices which include a CPU (Central Processing Unit) and some other devices (ADC, Timers, ect.) Looks like a silicon chip with lots of pins Microcontrollers often sense data, process the data and then control something using their pins to connect to the outside world

What is an Arduino? Open-source electronics prototyping platform Simple to use software and hardware Software has useful, easy libraries which can be used Hardware based on AVR microcontroller with a bootloader

Why use Arduino? Good libraries – quick to prototype Easy to learn Good for general purpose applications Comparatively cheap prototype

Some Arduino References “Arduino Cookbook”. Michael Margolis, O’Reilly,

SOME ARDUINO PROJECTS

So why doesn‘t everyone use Arduinos? Price Performance Not cross-platform $40 $100+ $1+

LArduino Board Ardunio is open source – anyone is free to create and publish their own hardware versions La Trobe Uni have created the LArduino Specs: – AT-Mega168 Microcontroller – 16MHz Crystal – 4 ADC Pins – 7 Digital Pins (with 5 having PWM options for analog output) – Bootloader: Uno – Program via USB Port – Selectable USB/External power (external 6V)

LArduino Board Microcontroller specs: – 16KB Flash Memory – 1KB RAM – Frequency: 20MHz max – 8-bit CPU – 8 channel, 10bit ADC Around the power of a 286 desktop computer (circa. 1982)

Arduino IDE - Terminology Sketch – A program that you write setup() – Function run once when device started – used for initialisations loop() – Infinite loop function – runs forever Serial monitor Program device Verify (compile code)

Arduino IDE – Setting up Before code is run a few things need to be setup – Tools->Board->”Arduino Uno” – Tools->Serial Port-> What is the Arduino plugged into? Easiest way to determine this is to unplug the arduino and check the available ports Then plug the Arduino in and choose the new port that has appeared Free to download:

Summary (What you learnt in this session) Where your marks will all come from Different electronic components Microcontrollers are small programmable devices we write code for to control things Arduinos are microcontrollers with lots of simple to use high level instructions With microcontrollers we are often controlling the voltage levels on the actual pins between high and low or reading these values