2024 ASEE Annual Conference & Exposition

Project of a Self-Balancing Robot Using a PIC Microcontroller

Presented at Project-Based Learning Enhanced through Instrumentation

The project developed as part of the subjects Instrumentation, Embedded and Control Systems, studied in the fourth year of the Control and Automation Engineering course at the Mauá Institute of Technology, aims to create a robot that simulates the behavior of an inverted pendulum. This implies designing a robot capable of autonomously balancing on two wheels, interpreting data provided by sensors, and taking actions based on that data. This project provides an opportunity for the practical application of the concepts covered in these subjects, emphasizing the integration of knowledge in a single project. An inverted pendulum is an unstable system since its center of mass is located above the pivot point, tending to fall. To keep the system in balance, it is necessary to incorporate key elements, including a measurement unit that combines a 3-axis accelerometer and a 3-axis gyroscope, stepper motors as actuators, and a PIC microcontroller. After the mechanical and electronic construction of the robot, the next step is processing sensor data through developed software to obtain more precise and stable readings. Then, a PID controller is implemented, responsible for adjusting the position of the support point and the applied force to maintain the robot's balance continuously. The angle at which the robot is in relation to the ground is visible through an application that connects to the system via a Bluetooth module. During the project's development, it was possible to recognize the importance of certain aspects to ensure the effective performance of the system. Firstly, there is the need for a robust physical structure that ensures the alignment of the robot's wheels and the correct distribution of its mass. Furthermore, it is essential to ensure the proper synchronization of the control loop with the previously defined sampling period to allow the controller to react consistently to possible disturbances. These findings play a crucial role in the successful development and operation of the system. At the end, will be presented as well as student evaluation, and they learn related to ABET outcomes.

Authors
  1. Mrs. Andressa Corrente Martins Instituto Maua de Tecnologia [biography]
  2. Julia Meneses Roberto Instituto Mauá de Tecnologia [biography]
Download paper (2.73 MB)

Are you a researcher? Would you like to cite this paper? Visit the ASEE document repository at peer.asee.org for more tools and easy citations.