Mechatronics Portfolio
Logan Williamson's Mechatronics Portfolio and Documentation Repository
Lab 2 Deliverables

*Please see the files tab for file documentation

Lab 2 source code

The source code files for Lab 2 can be found at https://bitbucket.org/wokka29/me305_labs/src/master/Lab%200x02/

Introduction

This program consists of five files which work together to generate an encoder object from the encoder.py class file, record the time and position data associated
with that object iteratively in the taskEncoder.py file, and print the results to the console in the taskUser.py file. This last file, taskUser.py, also serves to
handle user inputs which reset the encoder position, print the current position and delta (speed) of the encoder, and record position data for 30 seconds or less.

Lab 2 Diagrams

taskEncoder Finite State Machine

taskUser Finite State Machine

Task sharing diagram for taskUser and taskEncoder

30 seconds of recorded encoder data

A video demonstrating the proper functionality of this program can be seen here:

quadEncoder from Logan Williamson on Vimeo.

Author
Logan Williamson
Date
January 31, 2022