Problem with the MONSTER MOTO SHIELD VNH2SP30

Have questions about a SparkFun product or board? This is the place to be.

Moderators: phalanx, TS-Tim

Post Reply
andresrtr
Posts: 2
Joined: Tue Sep 12, 2017 11:04 am

Problem with the MONSTER MOTO SHIELD VNH2SP30

Post by andresrtr » Sat Sep 16, 2017 10:32 am

Hi,
I have a problem with the VNH2SP30 (Monster Moto Shield), I need a code from someone who has been able to run the VNH2SP30. The SparkFun code does not work for me.
could give me a code that works please.

Code: Select all

void setup() 
{

digitalWrite(4,0);
digitalWrite(7,0);
digitalWrite(8,0);
digitalWrite(9,0);

}

void loop() {
/////////////////////////////
digitalWrite(7,1);
digitalWrite(8,0);

digitalWrite(4,1);
digitalWrite(9,0);

analogWrite(5,255);
analogWrite(6,255);
delay (2000);
////////////////////////////////
digitalWrite(7,0);
digitalWrite(8,1);

digitalWrite(4,0);
digitalWrite(9,1);

analogWrite(5,255);
analogWrite(6,255);
delay (2000);

}

Post Reply