Intro to the Arduino Topics: The Arduino Digital IO

Slides:



Advertisements
Similar presentations
Lab7: Introduction to Arduino
Advertisements

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.
Bits and Bytes + Controlling 8 LED with 3 Pins Binary Counting and Shift Registers.
Intro to the Arduino Topics: The Arduino Digital IO Analog IO Serial Communication.
Getting your Arduino to Work: Microsoft Windows 1.Install Arduino programming environment 2.Install Arduino Uno driver 3.Make sure you can download a program.
Intro to Arduino with LilyPad Make a MakerSpace, Artisan’s Asylum Linz Craig, Chris Taylor, Mike Hord & Joel Bartlett.
1 Arduino Board: Arduino UNO Arduino Programing Environment: Arduino 0022
 Main Components:  Sensors  Micro controller  Motor drivers  Chasis.
Khaled A. Al-Utaibi  What is Arduino?  Arduino Boards  Arduino Shields  Arduino Uno Hardware.
Parallax 4x20 LCD (part number 27979) with Arduino Duemilanove
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Arduino Part 1 Topics: Microcontrollers Programming Basics: structure and variables Digital Output Analog to Digital Conversion.
Arduino Part 2 Topics: Serial Communication Programming Constructs: functions, loops and conditionals Digital Input.
Colorado Space Grant Consortium Gateway To Space ASEN 1400 / ASTR 2500 Class #12 Gateway To Space ASEN 1400 / ASTR 2500 Class #12 T-58.
Objectives: Lead Switching Circuitry/Control Analog to Digital Converter Write to Computer.
Dean Brock, Rebecca Bruce and Susan Reiser, CCSC SE 2009 Using Arduino Material taken from Todbot blog Bionic Arduino Todbot blog Bionic ArduinoTodbot.
Week 10 Today 1.Homework presentations and critique. 2.Review digital and analog inputs. 3.DIY - jumpers, soldering etc.
DPNM Lab., POSTECH 1/25 CS490K - Internet of Things (IoT) Jonghwan Hyun DPNM Lab. Department of Computer Science and Engineering, POSTECH
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.
Tweaking Your Simon Adding a photoresistor and changing code Instruction by Pete Lewis and Linz Craig.
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
Suleyman Demirel University CSS340 Microprocessor Systems – Lecture 1 Getting Started to Arduino.
Getting Started With the Arduino Uno
智慧電子應用設計導論(1/3) Arduino MEGA 2560
DPNM Lab., POSTECH 1/44 CS490K - Internet of Things (IoT) Jonghwan Hyun DPNM Lab. Department of Computer Science and Engineering, POSTECH
Rebecca Bruce and Susan Reiser, May 2015 Analog Input and Output.
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
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
HW & SW Overview  What’s UNO  Hardware  Specification  Installing IDE  Programming  Compiling.
Istituto Tecnico Industriale A.Monaco EURLAB European Robotic LABoratory HOW TO Transmit and RECEIVE Datas.
Harpeth Hall Jan 2016 Introduction to Arduino Prepared for Harpeth Hall Winterim January 2016.
Arduino.
Arduino Part 1 Topics: Microcontrollers
Embedded Systems Intro to the Arduino
Michael Rahaim, PhD Candidate Multimedia Communications Lab
European Robotic LABoratory
By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot
Downloading Arduino FOR WINDOWS.
Intro to the Arduino Created by
UTA010 : Engineering Design – II
An Arduino Workshop A Microcontroller.
Welcome to Arduino A Microcontroller.
UCD ElecSoc Robotics Club 2017/2018
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
Introduction to Arduino Microcontrollers
Arduino and Grove LET’S START.
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
Welcome to Digital Electronics using the Arduino Board
Arduino Board.
Debugging Debug environments Debug via serial
Intro to the Arduino by Someet Singh
Programming 2: The Arduino IDE & First Sketches
CTY SAR FCPS Shawn Lupoli, Elliot Tan
CTY SAR FCPS Shawn Lupoli, Elliot Tan
I/O Programming with Arduino
Arduino 7 Segment Display Lab
Arduino Leonardo Setup
Lab #1: Getting Started.
Arduino and Grove LET’S START.
SAURABH GINGADE.
Introduction to arduino
Introduction to Arduino IDE and Software
Presentation transcript:

Intro to the Arduino Topics: The Arduino Digital IO Data Representation Serial Communication

Topic 1: Meet Arduino Uno

What is the Arduino todbot.com/blog/bionicarduino

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

Status Messages todbot.com/blog/bionicarduino

todbot.com/blog/bionicarduino

Input/Output Image from Theory and Practice of Tangible User Interfaces at UC Berkley

Topic 2: Digital Input/Output 1 Digital IO is binary valued—it’s either on or off, 1 or 0 Internally, all microprocessors are digital, why?

IO Pins Image from Theory and Practice of Tangible User Interfaces at UC Berkley

Arduino Digital I/0 pinMode(pin, mode) digitalRead(pin) www.mikroe.com/chapters/view/1 pinMode(pin, mode) Sets pin to either INPUT or OUTPUT digitalRead(pin) Reads HIGH or LOW from a pin digitalWrite(pin, value) Writes HIGH or LOW to a pin Electronic stuff Output pins can provide 40 mA of current Writing HIGH to an input pin installs a 20KΩ pullup 12

Our First Program

Topic 3: Data Representation You know how information is encoded in 0s and 1s (ECE109) Let’s look at the data types for programming the Arduino:

An Example What output would be generated? This will be explained later This prints to the screen

Topic 4: Serial Communication Image from http://www.ladyada.net/learn/arduino/lesson4.html

todbot.com/blog/bionicarduino

Serial Communication Compiling turns your program into binary data (ones and zeros) Uploading sends the bits through USB cable to the Arduino The two LEDs near the USB connector blink when data is transmitted RX blinks when the Arduino is receiving data TX blinks when the Arduino is transmitting data todbot.com/blog/bionicarduino

Open the Serial Monitor and Upload the Program

Some Commands Example Program Serial.begin() - e.g., Serial.begin(9600) Serial.print() or Serial.println() - e.g., Serial.print(value) Serial.read() Serial.available() Serial.write() Serial.parseInt() Example Program

Serial-to-USB chip---what does it do? The LilyPad and Fio Arduino require an external USB to TTY connector, such as an FTDI “cable”. In the Arduino Leonardo a single microcontroller runs the Arduino programs and handles the USB connection. Image from Theory and Practice of Tangible User Interfaces at UC Berkley

Two different communication protocols Serial (TTL): Image from http://www.fiz-ix.com/2013/02/introduction-to-arduino-serial-communication/

USB Protocol Much more complicated Image from http://en.wikipedia.org/wiki/USB Much more complicated