Page 1 of 1

MDD10A test button equivalent signal

PostPosted: Sun Jan 09, 2022 3:10 pm
by l3d
Hi,

Can somebody advise how to use Arduino to generate signal equivalent to the behavior of the Test button on MDD10A board?

The reason I'm asking is because I'm trying to spin a motor: When using Arduino, motor doesn't spin; When pushing the test buttons, I can see motor spins accordingly -- looks like a pulse being sent to the motor from MDD10A board.

Below are a few variants of codes I've experimented in void loop(){}, and none of them works:

CODE: SELECT_ALL_CODE
1.
digitalWrite(dirPin, 0);
analogWrite(pwmPin,255); // also tried other values between 0~255
delay(5000);

2.
digitalWrite(dirPin, 0);
digitalWrite(pwmPin,HIGH);
delay(5000);

3.
digitalWrite(dirPin, HIGH);
digitalWrite(pwmPin,HIGH);
delay(5000);

4.
int pwm_value;
for (pwm_value=0;pwm_value<=10;pwm_value+=2){
    digitalWrite(dirPin, HIGH);
    digitalWrite(pwmPin,HIGH);
    delay(100);
}
delay(5000);



(The control pins on MDD10A must be healthy, as I can use them to control another motor.)

Re: MDD10A test button equivalent signal

PostPosted: Tue Jan 11, 2022 12:57 am
by jscottbee
Hi,

Do you have the pin modes set to OUTPUT for the pins?

Can you see a state change on the two pins with a multimeter?