Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use MKS DUAL FOC: Examples, Pinouts, and Specs

Image of MKS DUAL FOC
Cirkit Designer LogoDesign with MKS DUAL FOC in Cirkit Designer

Introduction

The MKS DUAL FOC (Manufacturer Part ID: V3.3) is a dual-channel field-oriented control (FOC) driver developed by Makerbase. It is designed to provide precise and efficient control of brushless DC (BLDC) motors. This component is ideal for applications requiring smooth motor operation, high torque, and energy efficiency, such as robotics, electric vehicles, CNC machines, and industrial automation systems.

The MKS DUAL FOC supports advanced motor control algorithms, enabling precise speed, position, and torque control. Its compact design and dual-channel capability make it a versatile choice for multi-motor systems.

Explore Projects Built with MKS DUAL FOC

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
STM32H7 Controlled Brushless Motors with AS5048 Encoders and CAN Bus Communication
Image of Robot Arm 2.0: A project utilizing MKS DUAL FOC in a practical application
This is a motor control system designed to operate and manage multiple brushless motors with feedback from magnetic encoders. It uses a STM32H7 microcontroller for control logic, SimpleFOCMini drivers for motor control, and a CAN BUS for communication, all powered by a 12V DC supply.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered BLDC Motor Control System with KK2.1.5 Flight Controller
Image of broncsDrone: A project utilizing MKS DUAL FOC in a practical application
This circuit is a quadcopter control system that includes a LiPo battery, four BLDC motors, four ESCs, a KK2.1.5 flight controller, and an FS-R6B receiver. The KK2.1.5 flight controller manages the ESCs and motors based on input signals from the receiver, which is powered by the LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
IR Obstacle Detection System with Relay-Controlled Gearmotors and Boost Converters
Image of LFR 1: A project utilizing MKS DUAL FOC in a practical application
This circuit consists of two FC-51 IR Obstacle Sensors connected to two KF-301 relays, which likely serve as triggers for switching the relays. Four gearmotors are powered through two XL6009E1 Boost Converters, which are likely used to step up the voltage from a 2-cell 18650 Li-ion battery pack. The relays appear to control the power flow to the boost converters, and thus to the gearmotors, based on the obstacle detection inputs.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Sumo Robot with IR Sensors and DC Motors
Image of MASSIVE SUMO AUTO BOARD: A project utilizing MKS DUAL FOC in a practical application
This circuit is designed for a robotic system, featuring a Massive Sumo Board as the central controller. It integrates multiple FS-80NK diffuse IR sensors and IR line sensors for obstacle detection and line following, respectively, and controls two GM25 DC motors via MD13s motor drivers for movement. Power is supplied by an 11.1V LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with MKS DUAL FOC

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Robot Arm 2.0: A project utilizing MKS DUAL FOC in a practical application
STM32H7 Controlled Brushless Motors with AS5048 Encoders and CAN Bus Communication
This is a motor control system designed to operate and manage multiple brushless motors with feedback from magnetic encoders. It uses a STM32H7 microcontroller for control logic, SimpleFOCMini drivers for motor control, and a CAN BUS for communication, all powered by a 12V DC supply.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of broncsDrone: A project utilizing MKS DUAL FOC in a practical application
Battery-Powered BLDC Motor Control System with KK2.1.5 Flight Controller
This circuit is a quadcopter control system that includes a LiPo battery, four BLDC motors, four ESCs, a KK2.1.5 flight controller, and an FS-R6B receiver. The KK2.1.5 flight controller manages the ESCs and motors based on input signals from the receiver, which is powered by the LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of LFR 1: A project utilizing MKS DUAL FOC in a practical application
IR Obstacle Detection System with Relay-Controlled Gearmotors and Boost Converters
This circuit consists of two FC-51 IR Obstacle Sensors connected to two KF-301 relays, which likely serve as triggers for switching the relays. Four gearmotors are powered through two XL6009E1 Boost Converters, which are likely used to step up the voltage from a 2-cell 18650 Li-ion battery pack. The relays appear to control the power flow to the boost converters, and thus to the gearmotors, based on the obstacle detection inputs.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of MASSIVE SUMO AUTO BOARD: A project utilizing MKS DUAL FOC in a practical application
Battery-Powered Sumo Robot with IR Sensors and DC Motors
This circuit is designed for a robotic system, featuring a Massive Sumo Board as the central controller. It integrates multiple FS-80NK diffuse IR sensors and IR line sensors for obstacle detection and line following, respectively, and controls two GM25 DC motors via MD13s motor drivers for movement. Power is supplied by an 11.1V LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer

Technical Specifications

Below are the key technical details of the MKS DUAL FOC:

General Specifications

  • Manufacturer: Makerbase
  • Part ID: V3.3
  • Control Type: Field-Oriented Control (FOC)
  • Number of Channels: 2 (dual-channel)
  • Supported Motors: Brushless DC (BLDC) motors
  • Input Voltage Range: 12V to 48V DC
  • Maximum Current per Channel: 15A (continuous), 20A (peak)
  • Communication Interfaces: UART, CAN, PWM
  • Control Modes: Speed control, position control, torque control
  • Dimensions: 80mm x 60mm x 20mm
  • Operating Temperature: -20°C to 85°C

Pin Configuration and Descriptions

The MKS DUAL FOC features multiple connectors for power, motor outputs, and communication. Below is the pin configuration:

Power and Motor Connections

Pin Name Description
VIN+ Positive DC power input (12V-48V)
VIN- Negative DC power input (GND)
M1A Motor 1 phase A output
M1B Motor 1 phase B output
M1C Motor 1 phase C output
M2A Motor 2 phase A output
M2B Motor 2 phase B output
M2C Motor 2 phase C output

Communication and Control Pins

Pin Name Description
UART_TX UART transmit pin for communication
UART_RX UART receive pin for communication
CAN_H CAN bus high signal
CAN_L CAN bus low signal
PWM1 PWM input for Motor 1 control
PWM2 PWM input for Motor 2 control
GND Ground reference for communication and control

Usage Instructions

How to Use the MKS DUAL FOC in a Circuit

  1. Power Supply: Connect a DC power supply (12V-48V) to the VIN+ and VIN- pins. Ensure the power supply can provide sufficient current for your motors.
  2. Motor Connections: Connect the three-phase wires of each BLDC motor to the corresponding M1A, M1B, M1C (for Motor 1) and M2A, M2B, M2C (for Motor 2) pins.
  3. Control Interface: Choose a communication method (UART, CAN, or PWM) and connect the appropriate pins to your microcontroller or control system.
  4. Configuration: Use the Makerbase configuration software or send commands via UART/CAN to set parameters such as motor type, control mode, and PID values.
  5. Testing: Gradually increase the input signal (e.g., PWM duty cycle or UART commands) to test motor operation.

Important Considerations and Best Practices

  • Heat Dissipation: The MKS DUAL FOC can generate heat during operation. Use a heatsink or active cooling if operating at high currents.
  • Motor Compatibility: Ensure the BLDC motors are compatible with the voltage and current ratings of the driver.
  • Wiring: Use appropriately rated wires for power and motor connections to avoid overheating or voltage drops.
  • Safety: Always disconnect power before making any wiring changes to prevent short circuits or damage.

Example: Using MKS DUAL FOC with Arduino UNO

Below is an example of controlling a single motor using the MKS DUAL FOC and Arduino UNO via UART:

#include <SoftwareSerial.h>

// Define UART pins for communication with MKS DUAL FOC
SoftwareSerial focSerial(10, 11); // RX, TX

void setup() {
  // Initialize serial communication
  Serial.begin(9600); // For debugging
  focSerial.begin(115200); // Communication with MKS DUAL FOC

  // Send initialization commands to MKS DUAL FOC
  focSerial.println("INIT"); // Example command to initialize the driver
  focSerial.println("SET_MODE SPEED"); // Set control mode to speed
  focSerial.println("SET_SPEED 1000"); // Set motor speed to 1000 RPM

  Serial.println("MKS DUAL FOC initialized.");
}

void loop() {
  // Example: Adjust motor speed dynamically
  int speed = analogRead(A0); // Read potentiometer value
  speed = map(speed, 0, 1023, 0, 3000); // Map to motor speed range

  focSerial.print("SET_SPEED ");
  focSerial.println(speed); // Send speed command to MKS DUAL FOC

  delay(100); // Small delay for stability
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Motor Not Spinning:

    • Check power supply connections and ensure the voltage is within the specified range.
    • Verify motor wiring (M1A, M1B, M1C or M2A, M2B, M2C) is correct.
    • Ensure the control commands (e.g., UART or PWM signals) are being sent correctly.
  2. Overheating:

    • Ensure proper heat dissipation using a heatsink or fan.
    • Reduce the motor load or operating current if possible.
  3. Communication Failure:

    • Verify the baud rate and communication settings match between the MKS DUAL FOC and the microcontroller.
    • Check wiring for UART or CAN connections.
  4. Erratic Motor Behavior:

    • Ensure the motor parameters (e.g., pole pairs, resistance) are correctly configured in the driver.
    • Check for loose or damaged wires.

FAQs

  • Can I control both motors independently? Yes, the MKS DUAL FOC supports independent control of two motors via separate PWM or UART commands.

  • What is the maximum motor speed supported? The maximum speed depends on the motor specifications and the input voltage. Ensure the motor is rated for the operating voltage.

  • Is the MKS DUAL FOC compatible with other microcontrollers? Yes, it can be used with any microcontroller that supports UART, CAN, or PWM communication.

  • Can I use the MKS DUAL FOC for sensorless BLDC motors? Yes, the driver supports both sensored and sensorless BLDC motors. Configuration may vary based on the motor type.