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.)