hi
I want to control a dc motor with a monster moto shield VNH2SP30 ,arduino uno and matlab ,I checked the shield with arduino program and it worked as the datasheet of the shield the digital pins 7 and 8 are used to run the dc motor 1 but in matlab I write this code:
Code:
a=arduino('com9','uno');
writeDigitalPin(a,'D7',1);
writeDigitalPin(a,'D8',0);
but nothing happened and the dc motor didn't run