EasyManua.ls Logo

Freenove 4WD Smart Car Board for Raspberry Pi - LED, Buzzer, Servo, and Camera Testing

Default Icon
132 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Need support? support.freenove.com
65
Chapter 3 Module test (necessary)
www.freenove.com
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.