90
The data means the specific control value of a car, such as speed, angle.
“Checksum” is the result of different or calculated data bits of the control instruction.
“Protocol end code ” is the end part of the data bag when receiving this data ,it means that the data pack has
been sent, and is ready for receiving the next data pack, here we specified it as 0x55.
For example, a complete packet can be such as "AA 070101065000 5F55", in which:
"07" is Transmission Data Length 7 bytes.
"01" is device type
"01" is device address.
"06" is the transmission data, 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. "005F" is the check sum, that is, 0x01+0x01+0x06+0x50=0x5F.
"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-1.0
Page 1: ...Hummer Bot 1 0 Instruction Manual V 2 0 ...
Page 18: ...15 Step4 You need to install motors Figure 3 1 5 Schematic diagram of motor installation ...
Page 50: ...47 Figure 3 2 15 Diagram of Data without Obstacles ...
Page 83: ...80 Test code Path hummer bot Lesson ModuleDemo IrkeyPressed IrkeyPressed ino ...