57
Grayscale
On this page, you can adjust the threshold of the line following and cliff detection.
Line Reference
Put the Picar-4wd on the white surface and record these three values of Grayscale. Now the value of
Grayscale is large enough, about 1500. Then put the grayscale sensor module of Picar-4wd above the black
surface and record these three values of Grayscale. Now, the value of Grayscale gets relatively small, about
150 as is predicted. So we set the value of Line Reference to 400. Of course, you can change the value. Once
you finish doing this, you can see that the corresponding area turning into gray if the value of Grayscale is
larger than 400; if not so, turning into black.
Cliff Reference
Put the car at the edge of the desk with the car’s head sticking out from the desk. Record three values of
Grayscale, and now the value is relatively small, less than 100. Please set the value of Cliff Reference to 110.
When you finish doing this, the corresponding area appears red exclamation symbol if the value of
Grayscale is less than 110.
Summary of Contents for PiCar-4WD
Page 6: ...1 Component List Structural Plates ...
Page 7: ...2 Mechanical Parts ...
Page 8: ...3 Electronic Parts ...
Page 9: ...4 Other Parts ...
Page 10: ...5 ...
Page 20: ...15 Step 9 Set country region language and time zone and then click next again ...
Page 21: ...16 Step 10 Input the new password of Raspberry Pi and click Next ...
Page 22: ...17 Step 11 Connect the Raspberry Pi to WIFI and click Next ...
Page 23: ...18 Step 12 Retrieve update ...
Page 47: ...42 Assembling Nylon Standoffs M2 5 6 Screw M2 5 8 6mm Nylon Standoff ...
Page 48: ...43 Assembling Top Plate and Bottom Plate M3 8 Screw M3 30mm Nylon Standoff M3 8 Screw ...
Page 49: ...44 Assembling Spoiler Spoiler ...
Page 50: ...45 Assembling Control Board 4WD Hat M2 5 11mm Nylon Standoff M2 5 6 Screw Raspberry Pi ...
Page 53: ...48 Assembling Ultrasonic Sensor Module M1 4 8 Screw M1 4 Nut Ultrasonic Module ...
Page 54: ...49 Assembling Wheels finished ...
Page 56: ...51 Interface Introduction ...
Page 63: ...58 ...
Page 67: ...62 Python Example Code Analysis Program Structure Framework ...