In this project, I worked with a partner and used Claude Code to help with a lot of the advanced coding and interface design. This project had two main components: hardware (wiring, mounts, etc.) and software (coding and testing if the code works.) The main goal was to go around a central oval at PRISMS (my high school). The theme of our robot was "Lizard" from the Hoppers movie :)
2 rods on each side of the robot provide a structural support for all the other components. The Husky Lens is a device which uses AI for object detection. We used it here for line following using PID and testing if that works. Below is a wiring diagram showing how the ESC (power source), Husky Lens, and steering servo were connected to Arduino Giga we were using.
Below: Our code for line following using PID.
Next, we decided to mount the RPLidar sensor. This sensor ended up being the most reliable out of all of them. Images of the mount and wire diagram are below.
Initially we tried to use backwards logic (the robot moves backwards when it sees an obstacle, but that didn't work too well and was inconsistent. That's why we switched to a more systematic approach, which is detailed below.
We then decided to implement IMU and GPS to improve accuracy, however these sensors were VERY sensitive, which is why we ended up only using the RPLidar in the final test. Below are images of the IMU mount. We mounted the GPS on a piece of plywood and put holes on it to screw it onto the 2 base rods. There's also a wiring diagram below of everything so far.