Step 9Arduino code example
#define BACK 5
#define RIT 7
#define LEFT 9
void setup() {
// put your setup code here, to run once:
pinMode(FWR,OUTPUT);
pinMode(BACK,OUTPUT);
pinMode(RIT,OUTPUT);
pinMode(LEFT,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
analogWrite(FWR,100);
digitalWrite(RIT,HIGH);
delay(1000);
analogWrite(FWR,0);
digitalWrite(RIT,LOW);
delay(1000);
analogWrite(BACK,100);
digitalWrite(LEFT,HIGH);
delay(10000);
analogWrite(BACK,0);
digitalWrite(LEFT,LOW);
delay(1000);
}
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|









































