- Mon Dec 11, 2017 1:37 pm
#197166
Hello
I recently bought SX1509 I/O Expander and i try to control some DC motors with PWM signal ( 8 motors at the same time).
I noticed that when i give a '0' pwm value:
and if i do:
This is reversed to what i know, and what i usually do by hooking up a Motor Driver directly to an arduino.
Is it because of "Sinking Current"?
If it does can you please explain more about it ?
Thank you for the help !
I recently bought SX1509 I/O Expander and i try to control some DC motors with PWM signal ( 8 motors at the same time).
I noticed that when i give a '0' pwm value:
Code: Select all
the motor turns in its heighst speed.io.analogWrite(Motor_pwm_pin, 0);
and if i do:
Code: Select all
the motor stops completly.io.analogWrite(Motor_pwm_pin, 255);
This is reversed to what i know, and what i usually do by hooking up a Motor Driver directly to an arduino.
Is it because of "Sinking Current"?
If it does can you please explain more about it ?
Thank you for the help !