Your shopping cart is empty!
Controlling SmartDrive40 Using 3.3V Microcontroller (Serial Simplified Mode)
- Idris Zainal Abidin
- 24 Apr 2019
- 1766
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:
- RC MCU mode
- Serial Simplified mode
- 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
- 40Amp 10V-45V SmartDrive DC Motor Driver
- NODEMCU ESP32
- Breakout Board Rotary Switch
- DC Brushed Motor
- 40 Ways Male to Male Jumper Wire
- Breadboard
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:
Thanks for reading this tutorial. If you have any technical inquiry, please post at Cytron Technical Forum.