51³Ô¹Ï

MET202 Mechatronic Systems

This course introduces the use of microcontroller such as Arduino for control over mechanical systems. Emphasis is placed on both control over actuators (including motors, linkages, and gear trains) as well as reading inputs from sensors (both analog and digital). Students will write their own programs for both autonomous control and human-in-the-loop systems, and Pulse-Width-Modulation (PWM) outputs will be covered. Theory will be enhanced by laboratory projects.

Prerequisite(s): MET109

Course Learning Outcomes:

  • Students will be able to control movement of actuators through a microcontroller.
  • Students will be able to read the state of both analog and digital sensors and write a program to decide how to respond to those inputs.
  • Students will be able to write and debug basic control programs on a microcontroller.

Textbook: 

TOPICS STUDENT LEARNING OUTCOMES
Introduction to Microcontrollers 
  •    Students will be able to understand the different components of a microcontroller and the functionality that a microcontroller can provide.  
  • Students will be able to understand the structure of a microcontroller’s program, such as a setup function and the main loop.
  • Students will be able to run a program on a microcontroller in conjunction with prototyping tools such as a breadboard. 
Microcontroller Programming 

Students will be able to write basic programs in a microcontroller language

  •  Students will know variable types and be able to define variables
  • Students will be able to use built in functions to achieve a desired result 
Digital Outputs 

Students will be able to:

  •   Write digital values to output pins
  • Control digital components such as lamps and buzzers 
Digital Inputs  Students will be able to read the state of various components such as switches and sensors and use those values in a program 
Conditionals and Looping  

Students will be able to program logical decision making:  

  •     Students will be able to program and use while, do while, and for loops, or similar constructs 
  •     Students will be able to program and use nested and infinite loops 
  •    Students will be able to use conditional statements such as if statements 
Motors   

Students will be able to:

  •    Use DC, Servo and Stepper motors
  •     Use optical encoders to read the state of a motor
  • Use motor drivers like bridges and shields in conjunction with a microcontroller to control motors 
Analog I/O 

Students will be able to:  

  •   Read the state of analog sensors including potentiometers, flex sensors, and light sensors
  • Use Pulse Width Modulation enabled pins to control the position of components such as motors 
System Integration 

Students will be able to:  

  •       Use analog and digital I/O to control mechanical systems
  •     Enable user input and achieve autonomous control
  •      Control motors, gears, and linkages
  • Use proximity, light, force and Hall Effect sensors to achieve a desired goal