Living with the lab Introduction to Arduino Programming arduino.cc Gerald Recktenwald Portland State University

Slides:



Advertisements
Similar presentations
Making Electronic Fashion Welcome Pink Team!. Etiquette Creative Girls Technology Arts.
Advertisements

Khaled A. Al-Utaibi Interfacing an LED The Light Emitting Diode (LED) Applications DC Characteristics & Operation Interfacing to.
EMS1EP Lecture 6 Digital Inputs
EMS1EP Lecture 4 Intro to Programming Dr. Robert Ross.
ARDUINO CLUB What we’re really doing. BASICS The setup() and loop() functions.
Electrical team Arduino tutorial I BY: JOSHUA arduini
Lab7: Introduction to Arduino
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
Embedded Sumo 1T4 – 1T5 UTRA.
Digital & Analog Inputs. Review Fundamental parts of an Arduino program are … Setting output types using pinMode. Declaring variables Can write a digital.
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2012 David Hall.
Using the Arduino to Make an LED Flash Work in teams of two! living with the lab digital I/O pins (I/O = input / output) USB cable plug power pins.
Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!
IR Object Detection living with the lab IR light from LED IR light reflected off object IR LED IR receiver Infrared (IR) light leaving an LED reflects.
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.
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2011 LWTL faculty team.
Introduction.
Arduino John Marcoux Christopher Lesch Thomas Dodge Unless otherwise noted, all information and pictures came from:
chipKit Sense Switch & Control LED
Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.
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
Khaled A. Al-Utaibi  The Push Button  Interfacing Push Buttons to Arduino  Programming Digital Inputs  Working with “Bouncy”
Cascade switching of an LED EAS 199B Winter 2013.
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
Microcontroller Hands-on Workshop #2 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers October 31, 2009.
Arduino libraries Datatekniker Udvidet hardware/software.
Microcontroller basics Embedded systems for mortals.
1 Introduction to Haptics Introduction to the Hapkit board Allison M. Okamura Stanford University.
Robotics Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics Technology.
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
Bdps 2 Lecture 2. Circuits and Ohm's Law For resistive circuits.
Introduction to Arduino A very basic intro to Arduino, the IDE and the Servos class.
Arduino Training For You! Learn Programming at Your Own Pace! Chapter 1 A course developed from the text book: “Introduction to Arduino A Piece of Cake!”
ICTWays workshop “Creativity and imagination in the classroom: Arduino and its application samples” LLP PT-COMENIUS-CNW
Arduino Programming Part 6: LCD Panel Output ME 121 Portland State University.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
ME 120: Arduino Programming Arduino Programming Part 1 ME 120 Mechanical and Materials Engineering Portland State University
[LAB 2] Cloud9 IDE  Cloud9 IDE introduction  Example and Exercise.
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.
Arduino.
Controlling Servos with the Arduino
Microcontroller basics
Dr. Kyung Eun Park Summer 2017
Val Manes Department of Math & Computer Science
Microcontroller basics
Introduction to the Arduino
Cascade switching of an LED
European Robotic LABoratory
UCD ElecSoc Robotics Club 2017/2018
INC 161 , CPE 100 Computer Programming
Arduino.
Introduction to Arduinos
Arduino 101 Credit(s):
using the Arduino to make LEDs flash
Welcome to Digital Electronics using the Arduino Board
analog and digital measurements
Arduino programs Arduino toolchain Cross-compilation Arduino sketches
Arduino : Introduction & Programming
Multiplexing seven-segment displays
I/O Programming with Arduino
Aeroponic Engineering and Vertical Farming
Arduino Uno circuit basics
Setting up a basic program with Arduino
Introduction to Arduinos
SAURABH GINGADE.
UNIT 1 First programs.
Arduino程式範例.
Introduction to Arduino IDE and Software
Interrupts.
Presentation transcript:

living with the lab Introduction to Arduino Programming arduino.cc Gerald Recktenwald Portland State University

references these notes borrow from... – Arduino web site – Adafruit tutorial #1 and 2 – Leah Buechley’s Introduction to Arduino living with the lab 2

writing and downloading code living with the lab 3

running Code while tethered living with the lab 4

running code stand-alone living with the lab 5

Arduino IDE IDE = Integrated Development Environment living with the lab 6

code structure: header header provides information and can also contain code living with the lab 7

code structure: setup function setup function is executed only once at the start living with the lab 8

code structure: loop function loop function is repeated indefinitely living with the lab 9

code digital I/O functions: pinMode digitalWrite digitalRead pinMode(13, Output) prepares pin 13 for outputs of voltage living with the lab 10

digitalWrite(13, HIGH) sets pin 13 to a voltage that means “on” (five volts in this case) living with the lab 11 code digital I/O functions: pinMode digitalWrite digitalRead

delay(1000); tells microcontroller to do nothing for 1000 ms = 1 s code living with the lab 12 digital I/O functions: pinMode digitalWrite digitalRead

digitalWrite(13, LOW) sets pin 13 to voltage that means “off” or zero volts living with the lab 13 digital I/O functions: pinMode digitalWrite digitalRead code