ADC Module
Run program
Enter the following commands to test ADC module.
If the terminal displays the directory as below (where test.py is located). You can directly execute the test.py
command.
1. If not, execute the cd command:
cd ~/Freenove_4WD_Smart_Car_Kit_for_Raspberry_Pi/Code/Server
2. Execute test.py command:
sudo python test.py ADC
Result:
Every 1s, the voltage values of the two photoresistors and the battery are output. The value read for the first
time is not stable and inaccurate when the chip just starts. It will be stable later. You can press "Ctrl + C" to
end program.