Objective:
The purpose of this project was to use a mathematical model of a block diagram in order to implement a cruise control system into the microcontroller code. The microcontroller would be connected to an apparatus containing a motor. The finished product would provide an interface for a user to input the desired output speed of the motor and the motor would be able to adjust to that output speed. There would also be a location for the user to input a value for the proportional and integral gains constants. The user would also have three toggling options:
1. to turn the motor on and off
2. to switch between open and closed loop
3. to enable or disable the updating of the LCD display.
The Equipment:
All of the equipment was provided to us by the school. We used a MC9S12XDP512 microcontroller, and we programmed it in assembly language. The key-pad and LCD were standard and cheap but they got the job done. For the motor, we were provided with 24 Volt DC PITTMAN motors. Pictures of all of the equipment is displayed on the right.
Results:
We were successfully able to do all of the requirements in the objective section. Accomplishing this task was an incredibly satisfying feeling. We also were able to complete an extra credit assignment, in which we connected the setup to an oscilloscope and trigger it to capture the step response of our motor. From the capture we were able to determine the time constant and compare it to a model of the system that our instructor had provided for us. The time constants were similar and we knew that we had accomplished something big. We took our first steps into the mechatronic world and came out still standing.
© 2025 • All content within this project is strictly the property of Donavan Lawrence and is not for public use without permission.
Comments