i have moved the motors they are connected on a breadboard
so basically they look like the image below
i have used this demo code i have found on the web here it is
// L293D
//Define Pins
//Motor A
int enableA = 3;
int MotorA1 = 2;
int MotorA2 = 4;
//Motor B
int enableB = 5;
int MotorB1 = 6;
int MotorB2 = 7;
void setup() {
Serial.begin (9600);
//configure pin modes
pinMode (enableA, OUTPUT);
pinMode (MotorA1, OUTPUT);
pinMode (MotorA2, OUTPUT);
pinMode (enableB, OUTPUT);
pinMode (MotorB1, OUTPUT);
pinMode (MotorB2, OUTPUT);
}
void loop() {
//enabling motor A
Serial.println ("Enabling Motors");
digitalWrite (enableA, HIGH);
digitalWrite (enableB, HIGH);
delay (1000);
//do something
Serial.println ("Motion Forward");
digitalWrite (MotorA1, LOW);
digitalWrite (MotorA2, HIGH);
digitalWrite (MotorB1, LOW);
digitalWrite (MotorB2, HIGH);
//3s forward
delay (3000);
Serial.println ("Motion Backwards");
//reverse
digitalWrite (MotorA1,HIGH);
digitalWrite (MotorA2,LOW);
digitalWrite (MotorB1,HIGH);
digitalWrite (MotorB2,LOW);
//5s backwards
delay (3000);
Serial.println ("Stoping motors");
//stop
digitalWrite (enableA, LOW);
digitalWrite (enableB, LOW);
delay (3000);
}
now that i managed to move the motors
i dont quite understand how do i make the motors move faster or slower
in the demo code i used there aren't really any values i could input for the RPM
im accepting any advice
also perhaps someone could show me where i could link the flex sensors on the diagram in order
to control the motors...
thank you all very much