Page 1 of 2

MDS40A need help

PostPosted: Tue Jan 29, 2013 4:58 pm
by sennian
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

Re: MDS40A need help

PostPosted: Tue Jan 29, 2013 10:33 pm
by robosang
have check the error LED blinking twice indicate what status? They should list it out.

Re: MDS40A need help

PostPosted: Tue Jan 29, 2013 10:36 pm
by sennian
input error will cause the error LED to blink twice. The thing is, shouldn't the test buttons work the same even if you have input error?

Re: MDS40A need help

PostPosted: Wed Jan 30, 2013 7:43 am
by robosang
Not sure, I don have this product, need to wait Cytron staff to verify that. Is there any quick test procedure to verify it?

Re: MDS40A need help

PostPosted: Wed Jan 30, 2013 10:34 am
by waiweng83
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.

Re: MDS40A need help

PostPosted: Wed Jan 30, 2013 12:52 pm
by sennian
Thanks for the help... It's working fine now

Re: MDS40A need help

PostPosted: Thu Feb 27, 2014 10:45 pm
by Muhammad Syafiq
Hey guys, I've problem with MDS40A.. I'm using PIC microcontroller, but I cannot stop the motor. The motor still running even I didn't push the start button. Please help me :(

Re: MDS40A need help

PostPosted: Fri Feb 28, 2014 8:24 am
by ober
Hi, can you show us the hardware setup? Which start button? The test buttons on MDS40A? Which mode you choose and what is the code doing?

Re: MDS40A need help

PostPosted: Thu Mar 06, 2014 3:26 am
by john012428
can i know I download the sample code given. the sample code can't compile. 'build failed'...why..?
i use mplab IDE v8.63 with HI-TECH universal toolssuite... and pic16f877A...

Re: MDS40A need help

PostPosted: Thu Mar 06, 2014 3:32 am
by john012428
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



try this http://tutorial.cytron.com.my/2012/07/2 ... ng-mds40a/

http://tutorial.cytron.com.my/wp-conten ... erview.jpg