UTA010 : Engineering Design – II

Slides:



Advertisements
Similar presentations
Khaled A. Al-Utaibi Interfacing an LED The Light Emitting Diode (LED) Applications DC Characteristics & Operation Interfacing to.
Advertisements

ARDUINO CLUB What we’re really doing. BASICS The setup() and loop() functions.
Lecture 1 – Arduino Basics
Lab7: Introduction to Arduino
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
Light Emitting Diode: LED. What is an LED?  Light-emitting diode  Semiconductor  Has polarity.
1 Arduino Board: Arduino UNO Arduino Programing Environment: Arduino 0022
 Main Components:  Sensors  Micro controller  Motor drivers  Chasis.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
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.
Intro to the Arduino Topics: The Arduino Digital IO
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Introduction to the Arduino
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
Suleyman Demirel University CSS340 Microprocessor Systems – Lecture 1 Getting Started to Arduino.
Microprocessors Tutorial 1: Arduino Basics
1 Introduction to Haptics Introduction to the Hapkit board Allison M. Okamura Stanford University.
ME 120: Arduino Programming Arduino Programming Part II ME 120 Mechanical and Materials Engineering Portland State University
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Introducing the Arduino Uno Presented by Dave Mawdsley, DACS Member, Linux SIG Member (wiring, programming and running a cute traffic light simulation)
Having fun with code, using Arduino in a middle school CS classroom
Arduino.
Arduino Part 1 Topics: Microcontrollers
Outline Introduction to Arduino UNO Programming environment setup GPIO
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
Assist. Prof. Rassim Suliyev - SDU 2017
Microcontroller basics
Val Manes Department of Math & Computer Science
Microcontroller basics
Microprocessors Tutorial 1: Arduino Basics
Intro to the Arduino Created by
Arduino Programming Part II
Welcome to Arduino A Microcontroller.
Get Your Project Started with Arduino
UCD ElecSoc Robotics Club 2017/2018
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
3.0 ARDUINO WORKSHOP PRESENTATION FOR STUDENTS IN 4º DEGREE OF COMPULSORY SECONDARY EDUCATION 3.0.
Lecture 2-2: Arduino Programming
Introduction to Arduino Microcontrollers
Introduction to Arduino Microcontrollers
The Arduino Microcontroller: Atmel AVR Atmega 328
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.
Intro to the Arduino Topics: The Arduino Digital IO
using the Arduino to make LEDs flash
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Light Emitting Diode: LED
Welcome to Digital Electronics using the Arduino Board
Introducing the Arduino Uno
Arduino programs Arduino toolchain Cross-compilation Arduino sketches
Chapter 1 Introduction of Arduino
Intro to the Arduino by Someet Singh
Light Emitting Diode: LED
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino Motor Lab Inspired by NYU ITP project
CTY SAR FCPS Shawn Lupoli, Elliot Tan
I/O Programming with Arduino
Aeroponic Engineering and Vertical Farming
Light Emitting Diode: LED
Lab #1: Getting Started.
Arduino Uno circuit basics
Arduino म्हणजे काय?.
SAURABH GINGADE.
Arduino程式範例.
Introduction to Arduino IDE and Software
Presented By,  Mamata Yadav (BE Elex & Comm.) Vice R&D Coordinator(HW), PCRT  Payal Shah (BE Elex & Comm.)  Ananta Das (BE Elex & Comm.) R&D Team,PCRT.
Presentation transcript:

UTA010 : Engineering Design – II Mangonel/Catapult Design Project Lecture 1 Amanpreet Kaur Copyright 2013-­‐2014 Electronics and Communication Engineering Department

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 1KB EEPROM By Sebastian Goscik for EARS

Arduino Uno

Getting Started Check out: http://arduino.cc/en/Guide/HomePage Download & install the Arduino environment (IDE)(not needed in lab) Connect the board to your computer via the USB cable If needed, install the drivers (not needed in lab) Launch the Arduino IDE Select your board Select your serial port Open the blink example Upload the program

Arduino IDE See: http://arduino.cc/en/Guide/Environment for more information

Select Serial Port and Board

EXAMPLE

Inside a Light Emitting Diode                                                                                                                                                                                                                                         Transparent Plastic Case Terminal Pins Diode

Kinds of LEDs

How to Connect a LED: Requires 1.5~2.5V and 10 mA To prevent overloading, use resistor 470 Ω

LEDs By Sebastian Goscik for EARS

Connect LED to BS2 LED is on when P0 is high LED is on when P1 is low

External LEDs Try make an LED pin blink in a pattern on a pin of your choice

Structure of an Arduino “sketch” void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: Before you show the NB, switch to desktop view and do it together with them NB: A copy of this can be found in File>Examples>1. Basics>BareMinimum By Sebastian Goscik for EARS

Important functions Serial.println(value); pinMode(pin, mode); Prints the value to the Serial Monitor on your computer pinMode(pin, mode); Configures a digital pin to read (input) or write (output) a digital value digitalRead(pin); Reads a digital value (HIGH or LOW) on a pin set for input digitalWrite(pin, value); Writes the digital value (HIGH or LOW) to a pin set for output

first sketch int onBoardLED; void setup() { //Arduinos have an on-board LED on pin 13 onBoardLED = 13; pinMode(onBoardLED, OUTPUT); } void loop() { digitalWrite(onBoardLED, HIGH); delay(500); //delay measured in milliseconds digitalWrite(onBoardLED, LOW); delay(500); Explain then show programming Dissect the code line by line: Void = return type of the function. Tell them we will go into functions more later Setup = fuction name Int onBoardLED = 3 = A whole number variable called onBoardLED and we assign the value 13. This is like a name for a number much like algebra ; < must go on the end of every line that isn’t a function definition pinMode = digitalWrite = Comment = Delay =

Breadboard Breadboard get their name from old circuits that where made by putting copper nails into bread cutting boards and wire was wrapped around them By Sebastian Goscik for EARS

Example Using LED void setup() { pinMode(77, OUTPUT); //configure pin 77 as output } // blink an LED once void blink1() digitalWrite(77,HIGH); // turn the LED on delay(500); // wait 500 milliseconds digitalWrite(77,LOW); // turn the LED off