290 likes | 393 Views
Pioneers in Engineering. Week 8: Sensors and Feedback. Announcements. T-Shirts – Order by tomorrow! Zipcards /Badges – contact us if you still need them Zipcar voting contest starts tonight. Lesson Agenda. Definition of systems Overview of controls Introduction to sensors.
E N D
Pioneers in Engineering Week 8: Sensors and Feedback
Announcements • T-Shirts – Order by tomorrow! • Zipcards/Badges – contact us if you still need them • Zipcar voting contest starts tonight
Lesson Agenda • Definition of systems • Overview of controls • Introduction to sensors
Lesson Agenda • Definition of systems • Overview of controls • Introduction to sensors
Systems • A system is a function. SYSTEM INPUT OUTPUT
Example of Systems • F1 Car INPUT? OUTPUT?
Lesson Agenda • Definition of systems • Overview of controls • Introduction to sensors
What is controls theory? • The study of how to choose the input to a system to give the desired output. • The entity which generates the input is called a controller
Cruise Control Example Pedal Position Vehicle speed Desired speed CONTROLLER
Open-Loop Control • No measurements of system output, y (i.e. no feedback) CONTROLLER SYSTEM y u r
Open-Loop Control-Cruise Control Example Pedal Position Vehicle speed Desired speed CONTROLLER
Open-Loop Control - Implementation • Suppose system is invertible function f • Choose controller to be f -1 CONTROLLERf-1(r) SYSTEM f(u) y=r u r
Open-Loop Control - Problems • Usually we don’t know what the system is exactly • Model Mismatch–Model not the same as real car Laboratory Model Reality • Disturbances–gravity, wind, etc.
Solution: Feedback Control r • Measure output and send to controller • Controller usually acts on the error e=r-y’ CONTROLLER u SYSTEM y y’ SENSOR
Feedback Control-Cruise Control Example Controller Input CONTROLLER Desired speed Vehicle speed
Videos • Inverted Pendulum • Line Following Car • Quadrotors
Feedback Control r CONTROLLER u SYSTEM y y’ SENSOR
Lesson Agenda • Definition of systems • Overview of controls • Introduction to sensors
Sensor Input Types • Analog • Continuum of values • Digital • Value is 0 or 1
Digital Switch Sensor • DigitalSensorclass • Can be wired Normally Closed (NC) or Normally Open (NO) • Uses • Collision detection • Limit switch(limiting a mechanism’s range of motion) • Price: $2
IR Rangefinder • AnalogIRDistanceSensor class • Measures distance to object directly in front • Uses • Better collision detection • Navigation in a narrowpassageway • Cautions • Watch out for minimum detection distance • Price: $10/15
IR Rangefinder (Digital) • DigitalDistanceSensor class • Outputs LOW if an object is within its detection range (e.g. 4-10 cm) • Price:$2
Sonar Rangefinder • AnalogSonarSensor class • Pros • More accurate • Robust to sunlight • Cons • More expensive • Not good with absorbent objects • Cautions • Do not cross two beams (sonar may pick up its neighbor’s pulses) • Price:$30
Potentiometers • AnalogPotentiometer class • Available in linear and rotary forms • Uses • Detect mechanism position (e.g. jointed arm, lifts) • Price:$2
Encoders • GrizzlyEncoder class • Continuous rotation • Measures rotation; can calculate distance, velocity
Encoders • Uses • Detect mechanism position • Drive for a set distance • Set wheel velocity (i.e. driving straight) • Cautions • Wheel slipping (around turns and in collisions) • Price:$15 more than motors without encoders
RFID Sensor • Rfid class • Returns the ID of the current item scanned and the last item scanned.
Where do I get them? • Everything is available in Kit Extension for Panda points! • You can buy and return them for full refund if they are unaltered • Request parts via the forum