MDD10A test button equivalent signal

Autonomous Robot, Manual Robot, DC Motor Driver, Stepper Motor Driver, Servo, Multi PWM chip.....

MDD10A test button equivalent signal

Postby l3d » Sun Jan 09, 2022 3:10 pm

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.)
l3d
Fledgling
 
Posts: 1
Joined: Sun Jan 09, 2022 2:53 pm

Re: MDD10A test button equivalent signal

Postby jscottbee » Tue Jan 11, 2022 12:57 am

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?
jscottbee
Greenhorn
 
Posts: 2
Joined: Mon Jan 10, 2022 11:37 pm


Return to Robot Controller

Who is online

Users browsing this forum: No registered users and 13 guests