Robot with Arduino Setup Guide
Last updated
Last updated
This detailed and beginner-friendly guide walks you through every step needed to build, connect, program, and troubleshoot a robot using the SMD Red motor controller and an Arduino board. Whether you're a student, teacher, hobbyist, or engineer, this guide is designed to be practical and accessible.
The SMD Red is a smart motor controller that lets you easily drive motors, control servos, and read sensor data. It communicates with Arduino through an RS-485 connection via the Arduino Gateway Module, making it powerful yet easy to use even for beginners.
This guide explains everything you need to:
Build your robot with SMD Red and Arduino
Wire all components correctly
Write and upload code using Arduino IDE
Understand how the SMD Red system works
Test and troubleshoot each part step by step
Even if you've never built a robot or written a line of code, this guide will help you go from zero to a working robot confidently.
Download Arduino IDE from .
Install and open the IDE.
Navigate to Sketch > Include Library > Manage Libraries
.
Search for Acrome-SMD
and click Install.
Verify the IDs of connected modules and controllers
Change SMD Red IDs to unique values for project usage
Test functionality of motors and modules
✅ Your computer is now ready to program your robot.
Plug an RJ-11 cable from the Gateway Module to the first SMD Red Motor Driver Board.
Connect modules (e.g., motors, servos, sensors) to the SMD Red using RJ-45 cables.
Detect which modules are connected
Confirm or discover module IDs
Test functionality
📌 If multiple modules share the same ID, they must be connected to different SMD Red controllers to prevent conflict.
Use RJ-11 cables to connect additional SMD Reds.
Each SMD Red must have a unique ID (0, 1, 2, ...).
Assign and verify SMD Red IDs
Monitor and test all connected modules
Plug a 12V DC adapter into the power port of the SMD Red.
To control the SMD Red from Arduino, you'll write and upload C++ code using the Arduino IDE. Here’s a breakdown of how it works:
Include the library for SMD Red: #include <Acrome-SMD.h>
Define the serial baud rate (default is 115200).
Create a Red object, defining which SMD Red you’re connecting to.
In setup()
, initialize the communication, choose control mode, and enable torque.
In loop()
, send commands to control motors.
Red red(...)
: Creates a connection to SMD Red ID 0
begin()
: Establishes communication
setOperationMode(PWMControl)
: Sets control mode to PWM (speed)
torqueEnable(1)
: Enables motor power output
setpoint(0, 50)
: Sends command to motor 0 to run at 50% forward
delay(1000)
: Waits for 1 second before stopping
💡 You can add more setpoint()
lines or change the speed/direction with values from -100 to 100.
Connect Arduino to your PC using USB.
In Arduino IDE, go to Tools > Port
and select the correct COM port.
Click the Upload button to flash your code.
After uploading, the motor should spin forward for 1 second, then stop.
Nothing is moving
No power to SMD Red
Connect 12V adapter
Upload error in IDE
TX/RX conflict with Serial
Disconnect SMD Red before uploading
Module not detected
Wrong ID / cable loose
Verify using SMD UI
Motor spins wrong way
Wiring reversed
Swap motor wires or use negative setpoint
Sensor returns 0 always
Wrong module ID or bad cable
Check ID with SMD UI and replug cable
🎉 You’re done! Your robot is now fully operational using Arduino + SMD Red. Start adding new features like servo control, sensor-based actions, or AI-assisted navigation!
Use the — a red shield that plugs directly into your Arduino Uno/Mega headers.
Each SMD module comes with a module ID that identifies it. These IDs are hardware-based and may vary between module versions. Use the to:
Use to: