During the end of the 2022 fall semester, I had the privilege of working with three other undergraduate students for the ME 522 Mechatronics final project. Our group developed a prototype racing car simulator that incorporated many mechatronics concepts learned throughout the class including microcontrollers, sensors, and actuators.
Our group had a fully functional final demo and well-received presentation, and the project earned a near-perfect grade.
The purpose of this project was for students to develop an electromechanical device that will assist university students to maintain their health and wellbeing.
The group must deliver a physical prototype (though not expected to fully meet safety and durability requirements for a production-ready system)
The device should be "safe-for-work" in scope and execution but may satisfy the project objective in any way the team otherwise deems appropriate
The device must fit within the volume of an 18"x18"x18" cube
The device must be programmable and respond in some way to its environment
The device must contain functioning elements from 7 categories
The group decided on creating a prototype racing simulator machine based on previous designs seen in advanced gaming rigs and other driving simulators.
Our system used multiple potentiometers to track the positions of the steering wheel, gas pedal, and brake pedal. These potentiometers would send information to a PIC16F88 and Arduino Uno which would calculate the speed and orientation of the car.
This data was then output to a DC servo motor that rotated a chair, an LCD which displayed the car's displacement and velocity, and two buzzers (left and right) that provided a form of surround sound. Two limit switches located beneath the sides of the chair acted as safety precautions against the car turning too far and would increase the pitch of the corresponding speaker when triggered.
The system also included an on/off switch.
The electronics were housed in a cardboard enclosure and interfaced with various custom cardboard car replica parts. (Lots of) Paperclips and tape were used as structural reinforcements.
Most of the components were wired into the PIC16F88, and all pins on the PIC were used. The RB6 and RB7 pins were used as analog inputs to accommodate the LCD and 3 of the potentiometers.
The fourth potentiometer (steering wheel) was connected to the Arduino Uno which then controlled the DC servo motor. Based on the orientation of the steering wheel, the Arduino Uno would output a signal denoting a left or right turn to the PIC16F88.
Arduino Uno: Mapped the potentiometer input ranges from 0-1023 to 0-179 and rotated servo / triggered directional turn based on input.
PIC16F88: Modeled a car with a 0-60 time of 5 seconds resulting in a max acceleration of 12 mi/min^2 or 120 mph. Both potentiometer inputs (gas and brake) were mapped to values between 0-12. Using a loop time of 1 second, acceleration was converted to speed and distance. The speed and distance (split into 3 numbers) was displayed on the LCD. Based on the turn orientation from the Arduino Uno and the state of the limit switches, the buzzers were activated at different pitches.
The lab group was able to successfully design and prototype the Formula 522F88 while satisfying all the requirements laid out in the project prompt.
Assisted university students in maintaining their health and wellbeing via an immersive video game experience
Contained functional components from each category
Fit within a 18"x18"x18" cube
Remained "safe-for-work" in scope and execution
Big thanks to my groupmates who were extremely helpful and active throughout our previous labs and this final project.