Timer Car

TLROB005

Shruti wants to click her picture in different poses and from different angels. She used camera timer to get automatic clicks from the camera but she still needs to move the camera to change the angel. Can you help her to make something that can move the camera to required places?
Robo car chassis kit
  1. Attach 2 motors and caster wheel to the chassis.
  2. Create a system of motor driver IC and arduino UNO.
  3. Code on arduino IDE. (for connection and code take help of let's tinker app)

    

int in1=4;

int in2=5;

int in3=6;

int in4=7;

void setup()

{

pinMode(in1, OUTPUT);

pinMode(in2, OUTPUT);

pinMode(in3, OUTPUT);

pinMode(in4, OUTPUT);

Serial.begin(9600);

}

void loop()

{

digitalWrite(in1, LOW);

digitalWrite(in2, HIGH);

digitalWrite(in3, HIGH);

digitalWrite(in4, LOW);

delay(5000);

digitalWrite(in1, LOW);

digitalWrite(in2, LOW);

digitalWrite(in3, HIGH);

digitalWrite(in4, LOW);

delay(5000);

digitalWrite(in1, LOW);

digitalWrite(in2, HIGH);

digitalWrite(in3, LOW);

digitalWrite(in4, LOW);

delay(3000); 

digitalWrite(in1, HIGH);

digitalWrite(in2, LOW);

digitalWrite(in3, LOW);

digitalWrite(in4, HIGH);

delay(5000);

digitalWrite(in1, HIGH);

digitalWrite(in2, LOW);

digitalWrite(in3, HIGH);

digitalWrite(in4, LOW);

delay(3000);

}