Right, I understand how the RC detector works. In the end, you will be measuring the decay time using a digital level comparison, and you'll get a "degree of whiteness" from each of the 8 sensors in parallel.
The goal of the "fuzzy logic" module is then to take the measurements from the 8 sensors, and turn that into PWM control values (duty cycles) for the two motors.
Note that this would typically be done with a PID controller rather than "fuzzy logic," although sometimes the line between the two can blur :-)
The basic algorithm you want is:
- each motor drives at a standard value by default
- the more "to the left" the centroid of the white line is, the faster you want to drive the right wheel, and the slower you want to drive the left wheel
- driving a wheel faster means increasing the PWM duty cycle; driving it slower means decreasing the duty cycle.
Now, take that behavior, and encode it as the kind of fuzzy logic your project requires you to use. Done!