Keywish Hummer-Bot-2.0 Instruction Manual page 60

Table of Contents

Advertisement

3.2.3.5 Experimental Procedures
1, Fixing the sensor on the car (the assembly is completed) and connecting it to the Arduino as shown in
Fig.3.2.19.
2, Making the track.If your floor is white, then you could stick a black tape to form a loop, otherwise
stick a white tape, the shape of track is based on your own desires, the best width of the tape is 13-18mm. In
this manual, we use the black track, as shown in Fig.3.2.20.
3, Module test. Copying the following codes to the IDE compiler environment (you can also open the
program in the CD directly) and downloading to the development board, opening the serial port monitor
rate is
9600) to observe the changes of data when there is the white line (Fig. 3.2.21) and is not the white line
(Figure 3.2.22).
Program flow chart is as follows:
Note: Here we connect the signal output port of infrared obstacle avoidance to the analog port on Arduino
(A0-A5), so the serial port monitor prints analog values, you can connect it to the digital port (2-13), then the
serial port monitor will print out only "0" and "1".
57
(baud

Advertisement

Table of Contents
loading

Related Products for Keywish Hummer-Bot-2.0

Table of Contents