SunFounder PiCar-X Kit
4.2.2 Calibrate Grayscale Module
Due to varying environmental conditions and lighting situations, the preset parameters for the greyscale module might
not be optimal. You can fine-tune these settings through this program to achieve better results.
1. Lay down a strip of black electrical tape, about 15cm long, on a light-colored floor. Center your PiCar-X so that
it straddles the tape. In this setup, the middle sensor of the greyscale module should be directly above the tape,
while the two flanking sensors should hover over the lighter surface.
2. Run the grayscale_calibration.py.
cd ~/picar-x/example/calibration
sudo python3 grayscale_calibration.py
3. After running the code, you will see the following interface displayed in the terminal.
4.2. 0. Calibrating the PiCar-X 45