Matlab results
I used the mathematical model transfer function and analysed the step response, as shown in the picture. The main goal was to obtain a value of the closed-loop controller gain which will allow the left and right wheels to work ideally.
This was programmed in C using a PIC18f2221 microcontroller and Spark-fun Line follower array sensor as a guiding input sensor.