Controlling SmartDrive40 Using 3.3V Microcontroller (Serial Simplified Mode)

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 ESP32SmartDrive40Rotary Encoder
VIN5V 
GNDGNDGND
D13IN1 
D14IN2 
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 Products

40Amp 10V-45V SmartDrive DC Motor Driver Best Seller

NODEMCU ESP32

$7.25 $7.25

x 1 unit(s)