sennian WROTE:I first tested my new MDS40A smart driver by connecting a 12V source to the power source, a motor at the motor terminals. I set up mode for pwm input mode and connect it to my microcontroller. After testing for a while, when I removed the motor connection and reconnect it afterwards, it doesn't work anymore. Tried even pressing the button A and B but nothing happens (button A and B are supposed to work if there's power source and motor connected isn't it) and the error LED kept blinking for 2 times. Can anyone tell me what is wrong? Why even the A button and B button don't work
When there is error detected, the MDS40A will stop working including the onboard push button. This is for the safety precaution.
In your case, the MDS40A shows input error because when it's first powered up, the PWM signal received is not 0.
According to page 24 of the user manual (
https://docs.google.com/document/d/1Ci1 ... mwMV8/edit) :
The Analog/PWM signal to stop the motor (2.5V if Sign-Magnitude mode is off, 0V otherwise) must be available when the SmartDrive40 is turned on. Else, the driver will show Input Error until the correct signal is available.
This is to prevent the motor running accidentally when powered up.
If you want to test the functionality of the MDS40A, the easiest way is to set it to PWM Single Channel, Sign-Magnitude Mode (1001 0001), use a wire to connect the In1 to Gnd, and you can run the motor by pressing the onboard push button.