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
Содержание Pico-4wd car
Страница 1: ...SunFounder pico_4wd_car www sunfounder com Sep 21 2022 ...
Страница 2: ......
Страница 4: ...ii ...
Страница 7: ...SunFounder pico_4wd_car SunFounder Pico 4wd Car Code Or check out the code at CONTENTS 3 ...
Страница 8: ...SunFounder pico_4wd_car 4 CONTENTS ...
Страница 10: ...SunFounder pico_4wd_car 3 Next click Next and Install to finish installing Thonny 6 Chapter 1 Get Started ...
Страница 24: ...SunFounder pico_4wd_car 2 Run the test_grayscale py file in pico_4wd_car_main tests 20 Chapter 1 Get Started ...
Страница 37: ...SunFounder pico_4wd_car How it Work 1 6 6 Examples 33 ...
Страница 44: ...SunFounder pico_4wd_car How it works 40 Chapter 1 Get Started ...
Страница 56: ...SunFounder pico_4wd_car 52 Chapter 1 Get Started ...
Страница 66: ...SunFounder pico_4wd_car 62 Chapter 4 Thank You ...