For this project we created a robot car with the ability to navigate through a maze and respond to the amount of light in a room. By using C code we programmed the MSP432p401R to control our ADCs and motor driver. In order to navigate through this maze we used the logic that if the robot continuously turns right it should be able to escape. By using infrared sensors we programmed the robot to detect if there are walls to the right or in front of it. We then created a combination of if statements in order to command the robot which way it will need to turn. For example if the robot came to a dead end, where there are walls both to the right and in front of it, the robot would turn around. We also attached LEDs as “headlights” and “brake lights”. Using a light sensor it informs the LEDs how much light is in the room. If the room is dark enough our headlights will turn on. If the robot came to a halt our brake lights will turn on. This project allowed us to dive into the realm of robotics and explore topics that we are all interested in. The biggest challenge of this project was learning how to program UART. Although we were able to successfully code the UART, as proven by a logic analyzer we were unable to get the motors to run. Despite this fact, this project allowed us to dive into the world of embedded systems and allowed us to practice design, programming, and hardware development.
Created December 13, 2019
Comments