Basic Motor Torque Control Application
In this application, you will learn how to control the torque (current) of a brushed DC motor using the Torque Mode of the SMD Red module. You will input a torque value between -100
and 100
, and observe the motor’s response. This control mode is particularly useful for applications that require force feedback, current-limited motion, or haptic interaction.
About Tools and Materials:
SMD USB Gateway (Purchase Here)
Arduino Gateway Module (Purchase Here)
Step 1: Hardware & Software Overview
Project Key Components
SMD Red: Drives the DC motor and manages current control via internal PID loop.
BDC Motor: Converts electrical energy into mechanical torque.
Project Key Features
Real-time torque input via command line
Bidirectional torque control (±100)
Live current measurement feedback
PID-based torque regulation
Step 2: Assemble
Getting Started
Hardware Setup
Connect the SMD to the PC or Arduino board using USB Gateway Module or Arduino Gateway Module.
Connect the 100 RPM BDC Motor with Encoder to the motor ports of the SMD Red.
Make sure that the SMD is powered and all connections are correct.
Project Wiring Diagram
Step 3: Run & Test
Run the Script
You will be prompted to enter a torque value in the range of -100
to 100
.
The motor will apply the specified current, and the system will print both the target and actual measured torque.
Codes
Last updated