L9110 H-Bridge Speed control

rhj4:
I ave read many articles on the L9110 H-Bridge. It has only two pins per motor: DIR and PWM.

lookin the datasheet here I would say that that statement is incorrect

from what I could understand from the datasheet is that to be able to run the motor in either direction, IA and IB need to be opposites
ie IA = NOT(IB).

that would mean all you need to control the motor speed is to send analogWrite(_PWM, _speed) to 'IA' and the inverted PWM to 'IB' to run the motor one way.

to go the other way send analogWrite(_PWM, _speed) to 'IB' and the inverted PWM to 'IA'

hope that helps

1 Like