Keywish Hummer-Bot-2.0 Instruction Manual page 29

Table of Contents

Advertisement

After a serial port monitor steering Angle input above value respectively, will find the steering gear will
turn, if after entering 90, the steering wheel steering gear without a figure 3.1.7.4 perspective, the need to
keep don't turn the steering gear and pitman arm will be removed, and then reinstall into figure 3.1.7.4, such
calibration is completed, the steering gear can be screwed good steering gear, for the next step of operation
int
ServoPin
= 13;
char
inByte
= 0;
int
angle
= 0;
//Angle value
String temp
=
"";//Temporary character variables, or use it for the cache
void
setup()
{
Serial.begin(9600);
pinMode(ServoPin, OUTPUT);
}
void SetServoDegree(int
{
Serial.println(Angle);
for
(int
i
= 0;
float
pulsewidth
Figure 3.1.7.3 Serial port input steering gear Angle value
Figure 3.1.2.4 Calibration diagram of Servo
//Serial port to receive data
//Set the baud rate
Angle)
//Output data to the serial port for observation
i
< 80; i++) {
=
(Angle
* 11) + 350;
26

Advertisement

Table of Contents
loading

Related Products for Keywish Hummer-Bot-2.0

Table of Contents