Bukit Mertajam, Penang

Controlling SmartDrive40 Using 3.3V Microcontroller (Serial Simplified Mode)

Introduction

SmartDrive40 is a smart motor driver series with current capacity up to 80A peak and 40A continuously. It is equipped with a microcontroller unit to provide smart features such as multiple input modes, current limiting and thermal protection. In order to control SmartDrive40 using 3.3V microcontroller, you can consider to use either:

  1. RC MCU mode
  2. Serial Simplified mode
  3. Serial Packetized mode

In this tutorial, I will show you how to control SmartDrive40 using ESP32 board in Serial Simplified mode.

Video

This video shows how to control SmartDrive40 using NodeMCU ESP32 in Serial Simplified mode.

Hardware Preparation

Below is the list of items used in the video

ESP32 MDS40B Wiring

Wiring connection table.

NodeMCU ESP32 SmartDrive40 Rotary Encoder
VIN 5V
GND GND GND
D13 IN1
D14 IN2
3.3V VCC
D25 CE
D26 EA
D27 EB

Sample Code

This is the sample code used in the video. Please install ESP32 board in your Arduino IDE first.

Thank You

References:

  1. MDS40B User’s Manual

Thanks for reading this tutorial. If you have any technical inquiry, please post at Cytron Technical Forum.

Related Posts

Leave a comment