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 Redarrow-up-right (Purchase Herearrow-up-right)

SMD USB Gatewayarrow-up-right (Purchase Herearrow-up-right)

Arduino Gateway Modulearrow-up-right (Purchase Herearrow-up-right)

BDC Motorarrow-up-right (Purchase Herearrow-up-right)

Step 1: Hardware & Software Overview

Project Key Components

  1. SMD Red: Drives the DC motor and manages current control via internal PID loop.

  2. BDC Motor: Converts electrical energy into mechanical torque.

Project Key Features

  1. Real-time torque input via command line

  2. Bidirectional torque control (±100)

  3. Live current measurement feedback

  4. PID-based torque regulation

Step 2: Assemble

Getting Started

Hardware Setup

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