Welcome to Raspbot V2 repository
当製品の日本語版マニュアル資料は、こちらからご取得ください。
7.Tracking module status printing
07.Tracking module status printing
07.Tracking module status printing1. Learning objectives2. Experimental preparation2.1 Wiring2.2 Debugging the four-way patrol module3. Core code analysis4. Experimental phenomenon
1. Learning objectives
Read and print the status of the four-way patrol module.
2. Experimental preparation
2.1 Wiring
As shown in the figure below, connect the four-way patrol module to the expansion board.

2.2 Debugging the four-way patrol module
(1) Place the four-way patrol module on a white paper or other white background.

(2) Place the first probe above the black line and adjust the knob to make the indicator light on.

(3) Then continue to adjust the second and third probes and adjust the knob to make the indicator light on. Similarly, debug the fourth probe


Finally, the indicator light is on when the probe is above the black line, and off when the probe is not above the black line.

3. Core code analysis
Raspbot_Lib library function required to read the status of the four-way patrol module: