paulvha wrote: ↑Sat Jan 05, 2019 5:43 am That code will do nothing. look at https://www.sparkfun.com/products/10182, documents-tab, and look for sample code (download directly or on github) It will be a good starting pointI know that but this code is just for Arduino and its format is PDE but I want to run the motor with Matlab and as the datasheet of the monster moto shield the digital pins 7 and 8 are used to run the dc motor but why it does not work?
BLH wrote: ↑Sun Jan 06, 2019 11:51 am It will not run with only D7 and D8 being usedok thank you so much
Other signals are needed to enable the IC's. I can't say exactly all that will be needed. As I have no experience with the IC's or the board. Just what the schematic and data sheet provided.
The enable, PWM determines speed. INA, INB determine which direction the motor runs. According to the data sheet.
The schematic shows some of the signals pulled low by resistors. So they can't be unconnected and need to be used for a signal input.
I hope you can get someone with actual use of the board to give you more definite information.