Hi, I'm testing this ZS-X11H component that I bought on Amazon: link.
Problem:
It's not working as it should when changing the motor speed.
What I did:
I used the dacWrite
function on the driver's pin, which is mentioned to be 0-5V. The controller works perfectly when connected via USB, but the problems arise when trying to use it without the USB connection.
Observed Situations:
- Connecting the 5V to the VIN of my ESP32 causes strange behaviors:
- Sometimes the controller locks up for no apparent reason.
- Sometimes, when I set the voltage to 0 with the DAC on the speed pin, the motor still moves very slowly.
Possible Cause:
Could it be the power supply?
Additional Tests:
I tried using PWM on the pins located next to the Hall sensor pins, specifically a pin named P, and obtained the same results. After several attempts, the controller started to lose power, and now it no longer works with either the DAC or the physical potentiometer. I assume the driver is damaged.
After the driver was damaged for no apparent reason, I continued testing with other drivers without trying the PWM pin.
Observations:
Using the dacWrite
and analogWrite
functions on the speed pin (not PWM), the motor works fine when connected to the PC. Isn't analogWrite
supposed to be for PWM? Why does it work correctly like with the DAC?
I would appreciate any help or suggestions on what might be going wrong and how to fix it.