SunFounder pico_4wd_car
Upon running, you will see that the values in the Shell change when you place the grayscale module
at a height of about 1cm above the different surfaces, indicating that it is working properly.
In general, the value for
white surfaces
> the value for
black surfaces
> the value for
overhanging
(grayscale module 10cm above the ground).
3. Because light intensities differ in different environments, the factory-set contrast may not be suitable for your
current environment, which means the grayscale module cannot identify white and black lines well, so it needs
to be calibrated.
• Tape a small piece of black electrical tape to the ground or table.
• Hold the grayscale module 1 cm above the table (this is about the same height as after assembly,
so you can use it directly after calibration).
• Keep
test_grayscale.py
running, then use a screwdriver to adjust the potentiometer on
the grayscale module until the values printed on the Shell are relatively far apart. Based on the
actual situation, your values should differ from mine.
1.4. 4. Test the Modules
21
Summary of Contents for Pico-4wd car
Page 1: ...SunFounder pico_4wd_car www sunfounder com Sep 21 2022 ...
Page 2: ......
Page 4: ...ii ...
Page 7: ...SunFounder pico_4wd_car SunFounder Pico 4wd Car Code Or check out the code at CONTENTS 3 ...
Page 8: ...SunFounder pico_4wd_car 4 CONTENTS ...
Page 37: ...SunFounder pico_4wd_car How it Work 1 6 6 Examples 33 ...
Page 44: ...SunFounder pico_4wd_car How it works 40 Chapter 1 Get Started ...
Page 56: ...SunFounder pico_4wd_car 52 Chapter 1 Get Started ...
Page 66: ...SunFounder pico_4wd_car 62 Chapter 4 Thank You ...