PLTW CALIFORNIA STATE CONFERENCE CENTENNIAL HIGH SCHOOL

Slides:



Advertisements
Similar presentations
Introduction to Programming
Advertisements

Artificial Intelligence 13. Multi-Layer ANNs Course V231 Department of Computing Imperial College © Simon Colton.
Add and Use a Sensor & Autonomous For FIRST Robotics
The Bioloid Robot Project Presenters: Michael Gouzenfeld Alexey Serafimov Supervisor: Ido Cohen Winter Department of Electrical Engineering.
Using the NXT Light Sensor. 2 Connect One Light Sensor – 1 From My Files use Left / Right NXT buttons and get to View menu and push Orange button. From.
CHE 185 – PROCESS CONTROL AND DYNAMICS
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
FRC LabVIEW Software Overview Joe Hershberger Staff Software Engineer National Instruments.
Roberto - Balancing Robot RIT Computer Engineering Senior Design Project.
Programming Concepts C: GOTO_Beacon ENGR 10 Introduction to Engineering 1.
Patent Liability Analysis Andrew Loveless. Potential Patent Infringement Autonomous obstacle avoidance 7,587,260 – Autonomous navigation system and method.
Proportional/Integral/Derivative Control
What is RobotC?!?! Team 2425 Hydra. Overview What is RobotC What is RobotC used for What you need to program a robot How a robot program works Framework.
Robot Sensors Kevin Watson and Rich Petras. Overview ➲ Sensors ● Micro Switch ● Gyro ● Encoders ➲ Command Sequencing ➲ PID Control.
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
VEX Parts – Batteries, Logic, and Controls
Programming Design ROBOTC Software Principles of Engineering
VEX ARM® Cortex®- based Microcontroller. The VEX ARM® Cortex®-based Microcontroller coordinates the flow of all information and power on the robot. All.
Control Theory Control System Objectives  Establish a final condition  Provide safe operation  Eliminate the human element  Assure economical operation.
PID. The proportional term produces an output value that is proportional to the current error value. Kp, called the proportional gain constant.
PLTW CALIFORNIA STATE CONFERENCE FEBRUARY 19, 2015 COLIN SMITH CENTENNIAL HIGH SCHOOL BAKERSFIELD, CA Advanced RobotC Programming.
PID CONTROLLERS By Harshal Inamdar.
Basic Differentiation Rules The CONSTANT Rule: The derivative of a constant function is 0.
Control systems KON-C2004 Mechatronics Basics Tapio Lantela, Nov 5th, 2015.
Session 12 Sensors and Timers. 3 Main Types of Robot Projects Command-Based Robot A more complicated project for more complicated robots Iterative Robot.
Programming with LabVIEW Intro to programming and.
ChE 433 DPCL Model Based Control Smith Predictors.
Get your software working before putting it on the robot!
ROBOTC for VEX Online Professional Development. Homework Questions Thoughts? Questions?
Project Overview  Introduction  Clawbot Build  Design Modification  Design Development  Programming  Sensors  Advanced Sensors  Open design challenges.
Programming Design ROBOTC Software. Behavior-Based Programming A behavior is anything your robot does –Turning on a single motor or servo Three main types.
Project Overview  Introduction  Clawbot Build  Design Modification  Design Development  Programming  Sensors  Advanced Sensors  Open design challenges.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
VEX IQ Curriculum Key Concepts Lesson 06 Lesson Materials:
Programming Design ROBOTC Software Principles Of Engineering
Project Overview Introduction Clawbot Build Design Modification
ClawBot Beginning Programing.
Digital Control CSE 421.
VEX Cortex Video Trainer using ROBOTC
Process Control & Instrumentation MAPUA INSTITUTE OF TECHNOLOGY
ROBOTC for VEX Professional Development
ROBOTC for VEX Online Professional Development
ROBOTC for VEX Online Professional Development
VEX Robotics Platform and ROBOTC Software
ROBOTC for VEX On-Site Professional Development
Advanced EasyC Jim Cline July 20-21, 2017.
ROBOTC for VEX Online Professional Development
Project Overview Introduction Clawbot Build Design Modification
FlowArm PLTW Programming
Control Loops Nick Schatz FRC 3184.
Programming Design ROBOTC Software Computer Integrated Manufacturing
RobotC Sensors.
RobotC Sensors.
Electronic Control Systems Week 7 – PID Control
Cole Perrault Spring 2015 ET 493 Wesley Deneke
Lesson 1: Overview of Sequential Control and Data Acquisition
Better Line Following with PID
Getting Started in RobotC
Programming – Remote Control Statements
Multitasking Emergency Stop Computer Integrated Manufacturing
Robotics and EVT - line follower -
Programming Design ROBOTC Software Principles Of Engineering
Feedback Controllers Chapter 8
VEX IQ Curriculum Key Concepts Lesson 06 Lesson Materials:
Advanced LabVIEW
Advanced LabViEW
VEX Drag Race Your name, date, hour.
Programming Design ROBOTC Software Principles of Engineering
PID Line Follower.
Introduction to Programing the Cortex for BEST
Presentation transcript:

PLTW CALIFORNIA STATE CONFERENCE CENTENNIAL HIGH SCHOOL Taking RobotC Programming to the Next Level PLTW CALIFORNIA STATE CONFERENCE January 26, 2016 COLIN SMITH COLIN_SMITH@KHSD.K12.CA.US CENTENNIAL HIGH SCHOOL BAKERSFIELD, CA

Motivation Allow more advanced programmers to explore further options Differentiated Instruction for Machine Control unit in Principles of Engineering More variety in Project 3.3.1 Increase 'pool' of potential VRC students Allow increased training for VRC students

Outline vexNet and VEX remote Multitasking Motor Speed calculation PID Control Loops

vexNET Requires pairing of cortex with a remote Can use a usb or the vexNET wireless keys Adds 8 channels with 12 digital buttons and 4 'analog' inputs Includes a built in accelerometer Allows additional user input to control robot function Can be used just like any other inputs

Pairing

Sensor vs. Remote

Example: ClawBot

Multi-Tasking Limitations of Linear programming Users must be careful with what control structures are being used. Adding tasks to control different motors/sensors Sensors can be shared, motors shouldn't

Implementing Multitasking Works like function declaration Task can be started or stopped within main() using the StartTask or StopTask functions.

continued Finally, the task must be defined

Use of Multi-tasking Materials sorter Emergency shutoff Allows multiple actions to occur ‘simultaneously’ Materials sorter Emergency shutoff StopAllTasks function

Proportional Control Use variables for iterative control of motor speeds Sensors are required for continuous input A target value is set and is used to control the speed of the motor(s)

Error Inside a loop, the ‘distance’ to the target is used to determine the speed of the motor. This distance to target is often referred to as the error

Proportionality Instead of a 1:1 ratio between the error and the motor speed, there is often a proportionality constant used to ‘tune’ the response of the motor.

Tuning the Proportionality constant

Integral Sometimes tuning the Proportional term makes it so you do not reach your target, but have an offset. The integral term allows you to adjust the value to reach the specified target. The error is summed (integrated).

Proportional Integrated Control The motorspeed is determined by the proportional and integrated terms. Because the error is generally large at first, the integrated constant is much smaller.

Derivative To control how quickly the control loop reacts to change, you can look at how much the error is changing (derivative).

PID Control The three terms can all be added together to create a responsive standard of motor control

Velocity Calculation

PID Velocity Control

Putting it Together

Additional Resources www.vexforum.com www.robotc.net/education/training/vex/ www.robotc.net/forums/ www.robotc.net/support/webhelpfiles/ www.team7983.com www.youtube.com

PLTW CALIFORNIA STATE CONFERENCE CENTENNIAL HIGH SCHOOL Taking RobotC Programming to the Next Level PLTW CALIFORNIA STATE CONFERENCE January 26, 2016 COLIN SMITH COLIN_SMITH@KHSD.K12.CA.US CENTENNIAL HIGH SCHOOL BAKERSFIELD, CA