Overall Software Flow Chart; The Car Tracing Flow Chart; The Data When The Sensor Detects The Black Line - Keywish Hummer-Bot Instruction Manual

Table of Contents

Advertisement

From Fig.3.2.19 and Fig.3.2.20 we can see that the output is high level when the sensor does not detect
the black line, low level when detects the black line. We use the analog port to collect the sensor's signal, so
the printed value is analog that, the high level is reaching 1024, the low level is 0. After we master the
working principle of the sensor, our tracing car in this section comes to an end, then let us open a car
journey.
3.2.3.5 Software Design

1. Overall software flow chart

When the car enters the tracing mode, it keeps scanning the I/O port of the MCU connected to the
sensors, once detecting the changes in signal at the I/O port, the corresponding procedure will be
implemented, the corresponding signal will be sent to the motor so as to correct the status of the car.

2. The car tracing flow chart

When the car enters the tracing mode, it keeps scanning the I/O port of the MCU
connected to the sensors, once detecting the changes in signal at the I/O port, the corresponding procedure
will be implemented. If the left sensor detects the black line(the left half of the car walked across the black
line, the car body is trended right), the car should turn the left; If the right sensor detects the black line(the
right half of the car walked across the black line, the car body is trended left), the car should turn the right.
After the direction adjustment, the car walks forward, and continues to detect the black line repeatedly. The
tracing flow chart is shown in Fig.3.2.21.
Figure 3.2.20 The Data When the Sensor Detects the Black Line
62

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Hummer-Bot and is the answer not in the manual?

Subscribe to Our Youtube Channel

Related Products for Keywish Hummer-Bot

Table of Contents

Save PDF