Questions about Pull-up/Pull-down and PWM
Posted: Fri Apr 05, 2019 10:08 am
Hi,
I noticed there are pull-ups resistors on the L9110s x2 Motor Drive Module. And lately, I got a tiny L9110s Motor board which doesn't have the pull-ups. And I read the data-sheet of L9110s chips. No pull-ups in the example circuit.
I'm generating the PWM by ledcWrite() and sigmaDeltaWrite() and connect the pins directly to the L9110s' IA and IB.
Q1 Does ESP32's internal pull-up or pull-down resistor is used by ledcWrite() or sigmaDeltaWrite()?
Q2 If not, should I activate any internal resistor by call pinMode(pin, INPUT_PULLUP) or pinMode(pin, INPUT_PULLDOWN) before or after setup the LEDC or SigmaDelta? Will that takes effects or messes the PWM up?
Q3 I've found that when the Frequency is Higher, the power(speed) of the motor is weaker(slower) than when the Frequency is Lower at the same Duty Value. Is a pull-up resistor good for a Higher Frequency situation to speed up the rising of the voltage? Could the interval resistor help?
I noticed there are pull-ups resistors on the L9110s x2 Motor Drive Module. And lately, I got a tiny L9110s Motor board which doesn't have the pull-ups. And I read the data-sheet of L9110s chips. No pull-ups in the example circuit.
I'm generating the PWM by ledcWrite() and sigmaDeltaWrite() and connect the pins directly to the L9110s' IA and IB.
Q1 Does ESP32's internal pull-up or pull-down resistor is used by ledcWrite() or sigmaDeltaWrite()?
Q2 If not, should I activate any internal resistor by call pinMode(pin, INPUT_PULLUP) or pinMode(pin, INPUT_PULLDOWN) before or after setup the LEDC or SigmaDelta? Will that takes effects or messes the PWM up?
Q3 I've found that when the Frequency is Higher, the power(speed) of the motor is weaker(slower) than when the Frequency is Lower at the same Duty Value. Is a pull-up resistor good for a Higher Frequency situation to speed up the rising of the voltage? Could the interval resistor help?