A car designed to stay 10cm away from the target done for Ryerson University. An infra-red sensor was used to track distance and was recorded with an NI DAQ in Labview, where a lookup table converted voltage values to distance and interpolate. A PID was used to control the DC motors and was tuned using the Ziegler-Nichols tuning method (keeping the derivative gain = 0.24 x integral gain). Unfortunately there was always a delay before the signal was sent to the motors, causing a bit of lag.
آی-ویدئو