
i built this with four other people in the city robotics and machine intelligence society. it's a small robot car that follows a line on the floor. it took about two months, with a race at the end.
my part was the code. a sensor under the car tells it whether it's on the line. if it's on it, it goes forward, if it's drifting, it steers back, and if it loses the line completely, it reverses.
what made it fast enough for the race was keeping the car moving between decisions instead of pausing each time. the sensor wasn't always accurate, so we tested a lot and tightened the code until it stayed on the line without slowing down.
I built this with four other people in the City Robotics and Machine Intelligence Society. Took about two months. Race at the end. Line-following robot car, Arduino C, infrared sensors.
My bit was the code. Write it, debug it, keep the car on the line.
The IR module looks at the floor and tells you if you're on the line or not. From that we did the obvious stuff: go forward if you're on it, steer left or right if you're drifting, reverse if you've lost it completely.
We used while conditions so the car wouldn't keep pausing between moves. That's what made it fast enough for the race. Sensor accuracy was the annoying part, movement commands too. We just tested it a lot and tightened the code until it stayed on the line without slowing down.
Arduino C, IR sensors, a lot of debugging, a race. That's the project.
Sign in to join the conversation