Tools for the Make:DC Motor Driver Board
Some tools you can use to build and use the Make:DC Motor Driver Board
If you want to build a Make:DC Motor Driver board, you can use the tools in this folder to help you build and use your boards. You can download the Eagle files and board layouts with which you can modify or make your own. If you want, you can download the PCB image files and make your own boards at home, using the toner transfer method (see here for some instructions on how to do it on your own if you want.)
// Demonstrates the Make:DC Motor Driver Board
// Based on code from the current reference documentation
int LdirPin = 7; // Left direction pin
int LpowPin = 6; // Left Power pin
int RdirPin = 4; // Right direction pin
int RpowPin = 5; // Right power pin
int LEDpin = 13; // LED connected to digital pin 9
void setup()
{
Serial.begin(9600);
pinMode(LdirPin, OUTPUT); // sets left Direction the pin as output
pinMode(LpowPin, OUTPUT); //sets Left power pin as output
pinMode(RdirPin, OUTPUT); // sets the right direction pin as output
pinMode(RpowPin, OUTPUT); //sets right direction pin as output
pinMode(LEDpin, OUTPUT); //sets LED pin as output
}
void loop()
{
Serial.print("d: HIGH p:HIGH\n");
digitalWrite(LdirPin, HIGH); //set the motor direction
digitalWrite(LpowPin,HIGH);
delay(1000); // wait a second
Serial.print("d: LOW p:HIGH\n");
digitalWrite(LdirPin, LOW); //set the motor direction
digitalWrite(LpowPin,HIGH);
delay(1000); // wait a second
Serial.print("d: HIGH p:LOW\n");
digitalWrite(LdirPin, HIGH); //set the motor direction
digitalWrite(LpowPin,LOW);
delay(1000); // wait a second
Serial.print("d: LOW p:LOW\n");
digitalWrite(LdirPin, LOW); //set the motor direction
digitalWrite(LpowPin,LOW);
delay(1000); // wait a second
}

