MDDS30 hardware setup solution

Hey! need some help to wire my arduino to this setup using pwm, how should i wire everything related to Arduino card from this motordriver? hard to find help about this specific motordriver.. :)

https://www.cytron.io/p-30amp-7v-35v-smartdrive-dc-motor-driver-2-channels https://docs.google.com/document/d/1OstW8T0kRIopWSuMEOyG2h9KNhQ3O4yowwjnp40Z23o/view |500x209

A quick look at the page you links and they link Arduino examples here and a user manual that shows how to wire it up and set jumper settings.

Ye, i can’t really find the wiring scheme tho, could u help me?..

Assuming your using the Arduino UNO then…
For PWM you need to use the 2 grove connectors (N and O on the board image below)

Connector N is marked AN2, AN1, NC & GND
AN2 is the PWM input for right motor (Arduino pin 9)
AN1 is the PWM input for the left motor (Arduino pin 3)
NC is not connected (NC = No Connection)
GND is for connecting to the Arduino GND

Connector O is marked IN2, IN1, NC & GND
IN2 is the motor direction for the right motor (Arduino pin 10)
IN1 is the motor direction for the left motor (Arduino pin 4)
NC is not connected (NC = No Connection)
GND is for connecting to the Arduino GND

The manual shows the DIP switch settings needed for PWM but I have included the DIP image for completeness.

If you connect this like this then the PWM_DIR_DUAL.ino example from the Cytron github site I linked (Included below) should work.

/*******************************************************************************
 * THIS SOFTWARE IS PROVIDED IN AN "AS IS" CONDITION. NO WARRANTY AND SUPPORT
 * IS APPLICABLE TO THIS SOFTWARE IN ANY FORM. CYTRON TECHNOLOGIES SHALL NOT,
 * IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL
 * DAMAGES, FOR ANY REASON WHATSOEVER.
 ********************************************************************************
 * DESCRIPTION:
 *
 * This example shows how to drive 2 motors using the PWM and DIR pins with
 * 2-channel motor driver.
 * 
 * 
 * CONNECTIONS:
 * 
 * Arduino D3  - Motor Driver PWM 1 Input
 * Arduino D4  - Motor Driver DIR 1 Input
 * Arduino D9  - Motor Driver PWM 2 Input
 * Arduino D10 - Motor Driver DIR 2 Input
 * Arduino GND - Motor Driver GND
 *
 *
 * AUTHOR   : Kong Wai Weng
 * COMPANY  : Cytron Technologies Sdn Bhd
 * WEBSITE  : www.cytron.io
 * EMAIL    : support@cytron.io
 *
 *******************************************************************************/

 #include "CytronMotorDriver.h"


// Configure the motor driver.
CytronMD motor1(PWM_DIR, 3, 4);  // PWM 1 = Pin 3, DIR 1 = Pin 4.
CytronMD motor2(PWM_DIR, 9, 10); // PWM 2 = Pin 9, DIR 2 = Pin 10.


// The setup routine runs once when you press reset.
void setup() {
  
}


// The loop routine runs over and over again forever.
void loop() {
  motor1.setSpeed(128);   // Motor 1 runs forward at 50% speed.
  motor2.setSpeed(-128);  // Motor 2 runs backward at 50% speed.
  delay(1000);
  
  motor1.setSpeed(255);   // Motor 1 runs forward at full speed.
  motor2.setSpeed(-255);  // Motor 2 runs backward at full speed.
  delay(1000);

  motor1.setSpeed(0);     // Motor 1 stops.
  motor2.setSpeed(0);     // Motor 2 stops.
  delay(1000);

  motor1.setSpeed(-128);  // Motor 1 runs backward at 50% speed.
  motor2.setSpeed(128);   // Motor 2 runs forward at 50% speed.
  delay(1000);
  
  motor1.setSpeed(-255);  // Motor 1 runs backward at full speed.
  motor2.setSpeed(255);   // Motor 2 runs forward at full speed.
  delay(1000);

  motor1.setSpeed(0);     // Motor 1 stops.
  motor2.setSpeed(0);     // Motor 2 stops.
  delay(1000);
}

board.jpg

pinout.jpg

dip.jpg

I am working / learning to combine Mdds30 motordriver and Adruino Nano and controlling the speed and direction with a analog Joystick.
I got it so far that the motors are working independent on x axis and one on y axis.
I want to have both motors going forward and backwards on one axis.
I done it with a different motor-driver, but can’t figure it out using Cytron MDDS30.
Could anybody give me some advice or help me with the code.
Basically it would be the same idea as driving a wheelchair.
Thank you