Keywish Hummer-Bot-1.0 Instruction Manual page 49

Table of Contents

Advertisement

const int leftPin
= A3;
const int rightPin
= A4;
int
dl;
int
dr;
void
setup() {
Serial.begin(9600);
pinMode(leftPin, INPUT);
pinMode(rightPin, INPUT);
delay(1000);
}
void
loop() {
dl
= analogRead(leftPin);
dr
= analogRead(rightPin);
Serial.print("left:");
Serial.print(dl);
Serial.print("
Serial.print("right:");
Serial.println(dr);
}
");
Figure .3.2.14 Diagram of Data with Obstacles
46

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Hummer-Bot-1.0 and is the answer not in the manual?

Questions and answers

Related Products for Keywish Hummer-Bot-1.0

Table of Contents