Servo Demonstration In MPIDE, select File > Examples > Servo > Sweep.

Slides:



Advertisements
Similar presentations
Button Input: On/off state change Living with the Lab Gerald Recktenwald Portland State University
Advertisements

EMS1EP Lecture 9 Analog to Digital Conversion (ADC) Dr. Robert Ross.
Lab7: Introduction to Arduino
Intermediate Electronics and Lilypad Where Electronics Meet Textiles Workshop with Lynne Bruning and Troy Robert Nachtigall Sponsored by Spark Fun and.
Servo Background Servos provide control of rotary position Servos are used extensively in the remote control hobby world for: Aircraft (flaps, ailerons,
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
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.
Digital & Analog Inputs. Review Fundamental parts of an Arduino program are … Setting output types using pinMode. Declaring variables Can write a digital.
Khaled A. Al-Utaibi  Digital Vs Analog Signals  Converting an Analog Signal to a Digital One  Reading Analog Sensors with the.
Potentiometer Electric circuit Cell or Battery Resistor Switch Bulb Earth/Ground LED.
Waterproofing a thermistor ENGR 121 living with the lab © 2013 David Hall.
Lesson 4: Breathing Monitors. Breathing Monitors In the past 3 classes, we’ve learned – How to write to a digital pin – How to read the value of a digital.
Secret Door Knock Detector
Servo Control Using Analog Signal Obtain “analog” input using analogRead().
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2011 LWTL faculty team.
Introduction.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Basic Circuits – Lab 2 Arduino and Sensors
Image of Arduino. Arduino discussion Address issues with circuit walk-through – Electricity, Programming, Arduino Concepts Work on BeatTable (next week)
ProtoSnap Introduction to Arduino Casey Haskell, Pete Lewis, David Stillman, Jim Lindblom, Pete Dokter, Lindsay Levkoff, Trevor Zylstra.
Control Angle via Button Pushes One button increases angle. Other decreases angle. Both light LED.
Khaled A. Al-Utaibi  The Push Button  Interfacing Push Buttons to Arduino  Programming Digital Inputs  Working with “Bouncy”
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi. Objectives 1. Control the rotation of standard servo motor  A standard servo motor is limited in its rotation.
Last week’s project demos RC circuit with creative use of 7- segment display Demo in class tonight – don’t start on the next project until I’ve seen this.
Pulse Width Modulation (PWM). 100% Pulse Width Modulation (PWM) 0% On the chipKIT there are 490 periods per second. Use analogWrite(pin, value) to control.
Arduino Circuits and Code. int ledPin = 9; void setup() { pinMode(ledPin, OUTPUT); } void loop() { digitalWrite(ledPin, LOW); delay(1000); digitalWrite(ledPin,
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
Basic Circuits – Lab 4 Serial and OSC (maybe some theory too) Xmedia Spring 2011.
Line following tips photoresistors positioned near floor photoresistor circuits © 2011 LWTL faculty team living with the lab.
Rebecca Bruce and Susan Reiser, May 2015 Analog Input and Output.
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.
Photoresistor resistance changes dramatically with light level living with the lab Using Photoresistors with an Arduino © 2011 LWTL faculty team.
C# SERIAL COMMUNICATION TEMPERATURE CONTROL WITH ARDUINO KAAN EREN
Temperature Sensor TYWu. Seeed’s Temperature Sensor Picture.
ME 120: User-defined functions: average analog input reading Arduino Programming – Part 5: User-defined functions ME 120 Mechanical and Materials Engineering.
Microcontroller basics Embedded systems for mortals.
ME 120: Arduino Programming Arduino Programming Part II ME 120 Mechanical and Materials Engineering Portland State University
Pulse-Width Modulation: Simulating variable DC output
ME 120: Photoresistors and Arduino Programming Arduino Programming Case Study: Photoresistor Measurements ME 120 Mechanical and Materials Engineering Portland.
Arduino Setup & Flexing the ExBow
Assist. Prof. Rassim Suliyev - SDU 2017
Microprocessors Tutorial 1: Arduino Basics
Arduino Programming Part II
Microcontroller basics
Line Following Tips photoresistor circuits
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
Arduino - Introduction
Control the color and brightness of an RGB LED with a Potentiometer
Control a motors angular position with a flex sensor
Analog Input through POT
Introduction to Arduinos
What is an Arduino ? Open Source electronic prototyping platform based on flexible easy to use hardware and software.
Chapter 2 Push button and Potentiometer
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi.
Using Photoresistors with an Arduino
Line Following Tips photoresistor circuit
Chapter 5 Servomotor.
Secret Door Knock Detector
Topics: Programming Constructs: loops & conditionals Digital Input
Arduino : Introduction & Programming
Programming 2: The Arduino IDE & First Sketches
Sensors and actuators Sensors Resistive sensors
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino 7 Segment Display Lab
Introduction to Arduinos
Pulse-Width Modulation: Simulating variable DC output
CTY SAR FCPS Alexander Velikanov
Presentation transcript:

Servo Demonstration In MPIDE, select File > Examples > Servo > Sweep

Increase Angle via Button Push If button pushed, increase position/angle by 1. If angle greater than 180, reset to 0.

Increase Angle via Button Push If button pushed, increase angle and light LED.

Control Angle via Button Pushes One button increases angle. Other decreases angle. Both light LED.

Display Angle in Serial Monitor Must initialize serial line in setup() function: Serial.begin(9600); Must “print a line” in the loop() function: Serial.println(pos, DEC); Must open the “Serial Monitor”:

Servo Control using Analog Signal Obtain “analog” input using analogRead(). Returns value a value between 0 (if pin at ground) and 1023 (if pin at 3.3 V). Voltage at “wiper” can vary between voltages at either end of the potentiometer.