Rebecca Bruce and Susan Reiser, May 2015 Analog Input and Output.

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

EMS1EP Lecture 8 Pulse Width Modulation (PWM)
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
Basic DC Motor Circuits
Intro to the Arduino Topics: The Arduino Digital IO Analog IO Serial Communication.
EML 2023 – Motor Control Lecture 4 – DAQ and Motor Controller.
Potentiometer Electric circuit Cell or Battery Resistor Switch Bulb Earth/Ground LED.
Intro to Arduino with LilyPad Make a MakerSpace, Artisan’s Asylum Linz Craig, Chris Taylor, Mike Hord & Joel Bartlett.
Computer Control. Computer Control Basics Input – (Sensors) Processing – (Black Box) Output – (Actuators)
Digital I/O Connecting to the Outside World
Introduction.
Microprocessors Tutorial 2: Arduino Robotics
Embedded Programming and Robotics Lesson 2 C Programming Refresher C Programming1.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Embedded Programming and Robotics
Arduino Part 1 Topics: Microcontrollers Programming Basics: structure and variables Digital Output Analog to Digital Conversion.
Image of Arduino. Arduino discussion Address issues with circuit walk-through – Electricity, Programming, Arduino Concepts Work on BeatTable (next week)
Dean Brock, Rebecca Bruce and Susan Reiser, CCSC SE 2009 Using Arduino Material taken from Todbot blog Bionic Arduino Todbot blog Bionic ArduinoTodbot.
Intro to Arduino Zero to Virtual Prototyping in Seven Hours
Intro to the Arduino Topics: The Arduino Digital IO
Segway Controller Notes. = connection on top layer of circuit board = connection on bottom layer of circuit board Ground Plane: Areas enclosed by the.
Microprocessors Tutorial 1: Arduino Basics
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Hybrid I/O – Pulses.
Overview What is Arduino? What is it used for? How to get started Demonstration Questions are welcome at any time.
BM-305 Mikrodenetleyiciler Güz 2015 (3. Sunu) (Yrd. Doç. Dr. Deniz Dal)
Microprocessors Tutorial 1: Arduino Basics
Microprocessors Tutorial 2: Arduino Robotics. Agenda 1. Robot Anatomy 2. Sensor Review 3. PWM 4. MAKE: Fade 5. Motors 6. H Bridge 7. Robot Control library.
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
July 18, UCSD - R.A. de Callafon Short Intro to Micro Processors and I/O functions of our Kinetic Sculpture Control Box Raymond de Callafon.
INTERNET OF EVERYTHING SDU 2016 Week 4. Simple Digital and Analog Inputs  The Arduino’s ability to sense digital and analog inputs allows it to respond.
PWM: Pulse Width Modulation © 2014 Project Lead The Way, Inc.Digital Electronics.
Throttle Arduino RC Receiver Stock Golf Cart Motor Controller Motor 1 PWM signal: Voltage: 0 – 5V Period = 22ms Positive Pulse Width: 1ms – 2ms Digital.
Bdps 2 Lecture 2. Circuits and Ohm's Law For resistive circuits.
Istituto Tecnico Industriale A.Monaco EURLAB Moving a robot simple example program to control a DC-Motor Next - Press the button (left)
Istituto Tecnico Industriale A.Monaco EURLAB Control a Servo Motor If you want to swing an robot arm or … steer a robot you need a special motor (Servo).
Pulse-Width Modulation: Simulating variable DC output
Controlling an LED with a switch. 2 breadboard place where you can build electric circuits really quickly the magical breadboard.
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
Lesson 1 PLC BASICS. PLC Definition  Programmable Logic Controllers are industrial computers that control machine and other applications.  PLC have.
Harpeth Hall Jan 2016 Introduction to Arduino Prepared for Harpeth Hall Winterim January 2016.
BM-305 Mikrodenetleyiciler Güz 2016 (3. Sunu)
Arduino Part 1 Topics: Microcontrollers
Michael Rahaim, PhD Candidate Multimedia Communications Lab
simple example program to control a DC-Motor
Assist. Prof. Rassim Suliyev - SDU 2017
Microcontroller basics
If you want to swing an robot arm or …
connect a DC-Motor with an arduino
Microprocessors Tutorial 1: Arduino Basics
Intro to the Arduino Created by
Arduino Development for Beginners
A lecture for Arduino Course, Winter 2017/18
Arduino - Introduction
How to avoid catching things on fire.
Analog Input through POT
Arduino and Grove LET’S START.
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
Pololu DC Motor Controller
Chapter 1 Introduction of Arduino
Arduino : Introduction & Programming
Intro to the Arduino by Someet Singh
Sensors and actuators Sensors Resistive sensors
CTY SAR FCPS Shawn Lupoli, Elliot Tan
(Shock Absorber Tester)
Lab #1: Getting Started.
Arduino and Grove LET’S START.
Introduction to arduino
Pulse-Width Modulation: Simulating variable DC output
Presentation transcript:

Rebecca Bruce and Susan Reiser, May 2015 Analog Input and Output

Rebecca Bruce and Susan Reiser, May Ohm resistor Demo 1: Digital Output on a Breadboard Connect the blue wire to pin 13 Run File > Examples > Basic> Blink

Rebecca Bruce and Susan Reiser, May 2015 Digital Input/Output Digital IO is binary valued—it’s either on or off, 1 or 0 Internally, all microprocessors are digital, why? 1 0

Rebecca Bruce and Susan Reiser, May 2015 IO Pins Image from Theory and Practice of Tangible User Interfaces at UC Berkley

Rebecca Bruce and Susan Reiser, May 2015 Demo 2: Digital Input Add a push-button switch to the breadboard - Connect the green wire to pin 2 Run File > Examples > Digital > Button 330 Ohm resistor

Rebecca Bruce and Susan Reiser, May 2015 Digital? Analog? Digital has two values: on and off Analog has many (infinite) values Computers don’t really do analog input, they quantize Remember the 6 analog input pins---here’s how they work Image credit: Tod Kurt

Rebecca Bruce and Susan Reiser, May 2015 Variable Resistance: Potentiometers It is a variable resistor

Rebecca Bruce and Susan Reiser, May 2015 Analog Input Connect to analog pin A0 Run File > Examples > Basic> ReadAnalogVoltage Open the serial port monitor to see the output

Rebecca Bruce and Susan Reiser, May 2015 Number of states or “bins” is the resolution Arduino resolution is 10-bits (1024 values, including 0) 5/1023 = 4.9 mV smallest voltage change you can measure Analog to Digital Image credit: Eoin Brazil

Rebecca Bruce and Susan Reiser, May 2015 Analog Output Computers can’t output analog voltages –Only digital voltages (0 volts or 5 volts) Simulating an analog signal with Pulse Width Modulation (PWM) –Can’t directly supply 2.5V, but can pulse the output on and off really fast to produce the same effect---the same effective voltage.

Rebecca Bruce and Susan Reiser, May 2015 Analog Output Vary the effective voltage by modulating the width of the high pulse Image credit: Tod Kurt

Rebecca Bruce and Susan Reiser, May 2015 PWM is Everywhere Lamp dimmers, motor, speed control, power supplies, noise making, etc.