Hi, everyone. This is my first Arduino project, I really need your help. I tested the DC motor using in this project by simple code, it can work only one direction. So I measured the motor shield output voltage and found something wierd. The PWM value is the same for both motor working direction. But the out voltage get from is -7v and 0.1V(this should be 7V). What's the problem?
Set the PWM output to 255. Then the output voltage should switch between + the supply voltage to - the supply voltage as you change direction. If one of the voltages is still WAY off there is probably a problem in the H-bridge.