I am having a problem with programming my pololu Low voltage dual serial motor controller http://www.pololu.com/catalog/product/120 if anyone could find what is wrong with my code that would be awesome, it has no compling issuses but it cant drive any motors. Below is my code
int rstPin = 2; // Reset Port connected to digital pin 2
void setup() { Serial.begin(9600); // opens serial port, sets data rate to 9600 bps pinMode(rstPin, OUTPUT); // sets the digital reset pin as output
Serial.write((byte)0x80); Serial.write((byte)0x02); Serial.write((byte)02000000); delay; 1000; }
void loop() {
digitalWrite(rstPin, HIGH); // sets the sets rst pin on full to continue
Serial.write((byte)0x80); Serial.write((byte)0x00); Serial.write((byte)00000011); Serial.write((byte)0x7F);
}