Intro to the Arduino Topics: The Arduino Digital IO

Slides:



Advertisements
Similar presentations
Lab7: Introduction to Arduino
Advertisements

How to use Arduino By: Andrew Hoffmaster.
Intro to the Arduino Topics: The Arduino Digital IO Analog IO Serial Communication.
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.
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.
DPNM Lab., POSTECH 1/25 CS490K - Internet of Things (IoT) Jonghwan Hyun DPNM Lab. Department of Computer Science and Engineering, POSTECH
Intro to the Arduino Topics: The Arduino Digital IO
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
Rebecca Bruce and Susan Reiser, May 2015 Analog Input and Output.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
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.
Jeremy Sandoval University of Washington May 14, 2013
Arduino.
Arduino Part 1 Topics: Microcontrollers
Embedded Systems Intro to the Arduino
Michael Rahaim, PhD Candidate Multimedia Communications Lab
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
European Robotic LABoratory
By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot
Scrolling LCD using Arduino.
Downloading Arduino FOR WINDOWS.
Intro to the Arduino Created by
Arduino Programming Part II
UTA010 : Engineering Design – II
An Arduino Workshop A Microcontroller.
Welcome to Arduino A Microcontroller.
Arduino Development for Beginners
UCD ElecSoc Robotics Club 2017/2018
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
Introduction to Arduino Microcontrollers
The Arduino Microcontroller: Atmel AVR Atmega 328
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.
What is an Arduino ? Open Source electronic prototyping platform based on flexible easy to use hardware and software.
Welcome to Digital Electronics using the Arduino Board
Banyule Coding Club: Learn Arduino Richard Counsel Malcolm Macleod Watsonia Library - June 2018 Reference materials here ->
Arduino Board.
Debugging Debug environments Debug via serial
Intro to the Arduino by Someet Singh
Programming 2: The Arduino IDE & First Sketches
Manual Robotics ..
CTY SAR FCPS Shawn Lupoli, Elliot Tan
CTY SAR FCPS Shawn Lupoli, Elliot Tan
I/O Programming with Arduino
TI LaunchPad I/O Programming with Energia
Arduino Leonardo Setup
Introduction to Arduino
Lab #1: Getting Started.
Introduction to Arduino
Arduino and Grove LET’S START.
Introduction to Arduinos
SAURABH GINGADE.
Model Blimp Design Competition Programming Workshop by Youth College (International) / VTC May
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