Hello,
I bought DRV8838 single channel motor driver from https://www.pololu.com/product/2990 and I've connected to arduino, My connections are like this
VIN and VCC Shorted and given to 3.3v of arduino
O1 and O2 is connected to motor
EN pin is connected to 9
PH pin is connected to 8
SLP pin is connected to 7
i followed this logic diagram but the motor is rotating in one direction, whatever i do it is rotating in one direction. Please help me