Sign In
Upload
Download
Table of Contents
Contents
Add to my manuals
Delete from my manuals
Share
URL of this page:
HTML Link:
Bookmark this page
Add
Manual will be automatically added to "My Manuals"
Print this page
×
Bookmark added
×
Added to my manuals
Manuals
Brands
Keywish Manuals
Robotics
Hummer-Bot-2.0
Instruction manual
Infrared Tracing - Keywish Hummer-Bot-2.0 Instruction Manual
Hide thumbs
1
2
Table Of Contents
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
page
of
111
Go
/
111
Contents
Table of Contents
Bookmarks
Table of Contents
Advertisement
{
analogWrite(INPUT1_PIN,180);//the speed value of motorA is val
analogWrite(INPUT2_PIN, 0);
analogWrite(INPUT3_PIN,180);//the speed value of motorA is val
analogWrite(INPUT4_PIN, 0);
Serial.print(dl);
Serial.print("
Serial.print(dr);
Serial.print("
Serial.println("Turning right");
delay(300);
analogWrite(INPUT1_PIN,0);
analogWrite(INPUT2_PIN, 0);
analogWrite(INPUT3_PIN,0);
analogWrite(INPUT4_PIN, 0);
delay(1000); //********************************************//Turning right
}
if (dl == 1 && dr == 1)
{
analogWrite(INPUT1_PIN,180);//the speed value of motorA is val
analogWrite(INPUT2_PIN, 0);
analogWrite(INPUT3_PIN,0);
analogWrite(INPUT4_PIN, 180); //the speed value of motorB is val
Serial.print(dl);
Serial.print("
Serial.print(dr);
Serial.print("
Serial.println("go");//********************************************//forward
}
}
In the above program, we made comments on some part of the program in order to make you to learn and
understand the program easily, the program is relatively simple, you can write your own programs to give the
car more skills. Of course, if you want to use it directly, we have the corresponding source program in the CD.
3.2.3 Infrared Tracing
3.2.3.1 Introduction of Infrared Tracing Sensor
After infrared obstacle avoidance, let us learn the infrared tracing, their nature of work is the same, using
basically the same module, just in different ways, to achieve different functions.
we have to pay attention to the color of the line we trace (the black line or white line), if your floor is black,
you should trace the white line (pasting white line on the floor); if it is white, then you should trace the black
");
");
");
");
53
In this section when we study,
Table of
Contents
Previous
Page
Next
Page
1
...
53
54
55
56
57
58
59
60
Advertisement
Table of Contents
Related Manuals for Keywish Hummer-Bot-2.0
Robotics Keywish Hummer-Bot Instruction Manual
(109 pages)
Robotics Keywish Hummer-Bot-1.0 Instruction Manual
(113 pages)
Related Content for Keywish Hummer-Bot-2.0
Hummer-Bot-1.0 Infrared Tracing
Keywish Hummer-Bot-1.0
Hummer-Bot Infrared Tracing
Keywish Hummer-Bot
Hummer-Bot Infrared Tracing
Keywish Hummer-Bot
Table of Contents
Print
Rename the bookmark
Delete bookmark?
Delete from my manuals?
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL