Mechatronics Portfolio - Nick Greco
Lab 0x03: Pushing the Right Buttons

Summary

In this lab, we were required to create a tool to collect, store, and plot data. Source Code for the Front End: https://bitbucket.org/nicho755/me-305-labs/src/master/ME405_Lab0x03_PushingTheRightButtons/ME405_Lab0x03_FrontEnd.py Source Code for the Back End: https://bitbucket.org/nicho755/me-305-labs/src/master/ME405_Lab0x03_PushingTheRightButtons/ME405_Lab0x03_BackEnd.py

Engineering Requirements

Front End User Interface Requirements:

  • Build a front end User Interface
  • Runs on computer and recieves user input
  • If user presses 'G', the Nucleo waits for user input (button press)
  • After data collect, script outputs plot and .csv file

Brief Reflection: The theoretical time constant was calculated at approximately 0.48 ms. Following Professor Refvem's instruction, I explored three methods to approximate this time constant: Find the value of the time constant at 62% of 3.3V Find the tangent line at the beginning of the step response and the time in which the line crosses 3.3V Linearize the differential equation to obtain the best fit. Unfortunately, I could not accomplish the generation of a a plot of data, as communication between the front end and back end could not be established.