99
The data means the specific control value of a car, such as speed, angle.
The checksum is the xor result of each data bit.
The tail is the end part of the packet. When receiving this data, it means that the packet has been sent, the
next packet is ready to be received. We uniformly designate it as 0x55. For example, a complete packet can
be such as "AA 01 01 06 50 00 58 55", in which:
"06" is the "device type", such as motor, LED, buzzer and so on. The 06 here refers to the transmission
speed, and the 05 refers to the transmission direction.
"50 (or 0050)" is the controlling data, 0x50 in hexadecimal is 80 when converted to binary, which means the
speed value is 80. If the data is 05, it means the controlling direction, that is 80 degrees (forward).
"0058" is the check sum, that is, 0x01+0x01+0x06+0x50=0x58.
"55" is the tail of the protocol, indicating the end of data transmission.
typedef
enum
{
E_BATTERY
=
1
,
E_LED
=
2
,
E_BUZZER
=
3
,
E_INFO
=
4
,
E_ROBOT_CONTROL
=
5
,
E_ROBOT_CONTROL_SPEED
=
6
,
E_TEMPERATURE
=
7
,
E_IR_TRACKING
=
8
,
E_ULTRASONIC
=
9
,
E_VERSION
=
10
,
E_UPGRADE
=
11
,
}
E_CONTOROL_FUNC
;
Summary of Contents for Hummer-Bot
Page 1: ...Hummer Bot Instruction Manual Github https github com keywish keywish hummer bot...
Page 7: ...4...
Page 8: ...5...
Page 9: ...6...
Page 10: ...7...
Page 13: ...10 Fig 2 2 Several commonly usedArduino...
Page 15: ...12 After the completion as shown...
Page 16: ...13 The second step is to Welding wire on the motor...
Page 17: ...14 After the completion as shown...
Page 19: ...16 Fig 3 1 3 Diagram of Aluminum Alloy Bracket Installation...
Page 20: ...17 Fig 3 1 4 Diagram of Motor Installation Fig 3 1 5 Fixing Screw for Motor...
Page 24: ...21 Fig 3 1 10 Diagram of Wheel Installation Fig 3 1 10 Diagram of Wheel Screw Fixation...
Page 29: ...26 Fig 3 1 15 Diagram of Tracing Module Installation...
Page 30: ...27 Fig 3 1 16 Diagram of Screw Brackets Fig 3 1 17 The Back of Complete Installation...
Page 32: ...29 First install the screws on the UNO After the completion as shown...
Page 43: ...40 Fig 3 1 33 Diagram of Wires Arrangement Fig3 1 34 the Effect of Whole Assembly...
Page 56: ...53 Fig 3 2 11 Diagram of Data with Obstacles Fig 3 2 12 Diagram of Data without Obstacles...
Page 69: ...66 Fig 3 2 22 Diagram of Steering Gear Fig 3 2 23 Composition of Steering Gear...
Page 93: ...90 Fig 3 2 42 Receiving Head Position Fig 2 3 43 Installation of Receiving Head...