Automatic Control Mike Robinson. You can measure the distance from the RC car to some target. What could your program do to keep the car as close to the.

Slides:



Advertisements
Similar presentations
Add and Use a Sensor & Autonomous For FIRST Robotics
Advertisements

Basic DC Motor Circuits
Project: Electronic Cricket
Intro to Robot Movement Topics: DC motors Servos Line following.
TECHNION - ISRAEL INSTITUTE OF TECHNOLOGY Department of Electrical Engineering Control and Robotics Lab Design a digitally controlled analog PID controller.
Basic Stamp II is kinda cool Bytes of EEPROM(non-volatile) - Clock speed of 20 MHz. - Holds 600 lines of code in EEPROM - executes an average of.
By: Mark Bright and Mike Donaldson.  Project Goal  Applications of our system  System Block Diagram  Thermal Plant Overiew  Current Progress ◦ Engine.
Operational Amplifier
Secret Door Knock Detector
Series RC Circuit. Shunt resistor It is good practice to short the unused pin on the trimpot when using it as a variable resistor Velleman function generator.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Series RC Circuit. Shunt resistor It is good practice to short the unused pin on the trimpot when using it as a variable resistor Velleman function generator.
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)
Module 4: Proximity Sensors Eng. Asma Abu Baker. Outlines Analog Sensors Digital Sensors Proximity sensors Inductive sensor Capacitive sensor Optical.
Week 10 Today 1.Homework presentations and critique. 2.Review digital and analog inputs. 3.DIY - jumpers, soldering etc.
P-REV Initial PCB Michael Connaboy Stephen Schiffli Ram Hudiara Win Than Aung.
NXT Development Tutorial Part 2: Sensor/ Motor Collaboration NTHU CS Freshman Camp Shu-Ting Wang.
Robot Sensors Kevin Watson and Rich Petras. Overview ➲ Sensors ● Micro Switch ● Gyro ● Encoders ➲ Command Sequencing ➲ PID Control.
Basic Stamp Free Pins These pins can be used by the operator for digital Inputs and Outputs Used Pins 0.
Agenda Path smoothing PID Graph slam.
Intro to Arduino Programming. Draw your circuits before you build them From Arduino 330 Ohm From Arduino 330 Ohm From Arduino 330 Ohm.
EE445:Industrial Electronics. Outline Introduction Some application Comparators Integrators & Differentiators Summing Amplifier Digital-to-Analog (D/A)
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.
ELECTRONICS PRIMER II.
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.
Session 6 - Sensor Modelling
PID. The proportional term produces an output value that is proportional to the current error value. Kp, called the proportional gain constant.
CSCI1600: Embedded and Real Time Software Lecture 12: Modeling V: Control Systems and Feedback Steven Reiss, Fall 2015.
ELECTRICAL ENGINEERING: PRINCIPLES AND APPLICATIONS, Fourth Edition, by Allan R. Hambley, ©2008 Pearson Education, Inc. Lecture 13 RC/RL Circuits, Time.
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.
3.TRANSISTOR CIRCUIT CONFIGURATION
ECE 192: NATCAR Team (Triton X) Sponsored by IEEE ( Vincent Bantigue, Joseph Formanes,
ECE 3450 M. A. Jupina, VU, 2016 Capacitance Sensor Project Goal: Creation of a digital capacitance sensor circuit where a variation in capacitance changes.
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.
ECE 4330 – Final Project By: John Litzenberger.  A IC temperature sensor (DS1620)  Reads through ADC (pin.0 Port A)  Feedback control for extreme conditions.
ECE 192: NATCAR Team (Triton X) Sponsored by IEEE ( Vincent Bantigue, Joseph Formanes,
ME 120: User-defined functions: average analog input reading Arduino Programming – Part 5: User-defined functions ME 120 Mechanical and Materials Engineering.
1 Introduction to Haptics Introduction to the Hapkit board Allison M. Okamura Stanford University.
Autonomous Wheelchair Tyler Morton & Ben Hoerst Senior Design Advisor: Dr. Stanislaw Legowski Project Advisor: Dr. Steven Barrett ECE Senior Design.
Pulse-Width Modulation: Simulating variable DC output
TITLE: 555 Timer OM INSTITUTE OF TECHNOLOGY Subject: Analog Electronics ( ) Semester: 03 Prepared By:
ME 120: Photoresistors and Arduino Programming Arduino Programming Case Study: Photoresistor Measurements ME 120 Mechanical and Materials Engineering Portland.
Intelligent Control Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics.
Arduino Setup & Flexing the ExBow
Salman Bin Abdulaziz University
Capacitance, Phase, and Frequency
Automatic heat source finding laptop cooling pad By Team 26
A lecture for Arduino Course, Winter 2017/18
Arduino Uno and sensors
How an Ultrasonic Range Finder works
AC Voltage Controllers AC to ac Converters
CSCI1600: Embedded and Real Time Software
How to avoid catching things on fire.
Roller Coaster Design Project
Maxbotix Ultrasonic Distance Sensor
6: Processor-based Control Systems
Using Photoresistors with an Arduino
Secret Door Knock Detector
Dynamical Systems Basics
CTY SAR FCPS Shawn Lupoli, Elliot Tan
ELECTRONICS II 3rd SEMESTER ELECTRICAL
Arduino 7 Segment Display Lab
HOMEWORK-03 Problem Kuo-95 (p. 377)
Pulse-Width Modulation: Simulating variable DC output
Automotive Technology Principles, Diagnosis, and Service
CTY SAR FCPS Alexander Velikanov
05 | Integrating Advanced Sensors and Shields
Presentation transcript:

Automatic Control Mike Robinson

You can measure the distance from the RC car to some target. What could your program do to keep the car as close to the target as possible?

Proportional control Error = target position – current position kp = proportional gain Duty cycle = kp*error

Think back to your vibrations class. What does the proportional response look like? Why is this not surprising? What could we do to reduce the oscillations we see?

Proportional control F X m

Proportional + Derivative control error = target position – current position derivative = (error – past error)/change in time kp = proportional gain kd = derivative gain Duty cycle = kp*error + kd*derivative

Why has adding derivative control made the car more jittery?

D = Derivative, D = Danger! Beware of noise when you are taking a numerical derivative

What would happen if we only had derivative control? Would the car still move to the target? Would the control do anything noticeable?

What could we add to get rid of the errors in position at steady state?

Proportional + Integral + Derivative control error = target position – current position derivative = (error – past error)/change in time integral = past error + error* change in time kp = proportional gain ki = integral gain kd = derivative gain Duty cycle = kp*error+ki*integral+kd*derivative

What would happen if we only had integral control?

A few words about commenting //Code for lab 3 int input = 0; //Declare variable input int inDist = 0; //Declare variable inDist /* This code reads an analog voltage from an ultrasonic sensor, converts the voltage to a distance in centimeters and prints the distance to the serial monitor Circuit: Connect +5 and ground to sensor Connect analog output from sensor to pin A0 Last edit: MDR 2/11/13 */ int ultrasonicPin = 0; //Analog input pin for ultrasonic sensor int ultrasonicDist = 0; //distance measurement in centimeters BADGOOD

Preview of this weeks lab +5V Motor

Preview of this weeks lab +5V Motor resistance Motor inductance