









| Parameter | Value |
|---|---|
| Motor Type | DC Motor / Stepper Motor |
| Operating Voltage | 3V - 12V (varies by model) |
| Rated Current | 100mA - 2A (depending on load) |
| Torque (DC Motor) | 0.1 Nm - 0.5 Nm |
| Speed (No Load) | 100 RPM - 300 RPM |
| Parameter | Value |
|---|---|
| Wheel Diameter | 65mm - 100mm |
| Wheel Material | Rubber or Plastic |
| Axle Hole Diameter | 3mm - 6mm |
| Tread Type | Smooth or Grooved |
| Pin Name | Description |
|---|---|
| Positive (+) Terminal | Connect to positive voltage |
| Negative (-) Terminal | Connect to ground or motor driver |
| Pin Name | Description |
|---|---|
| A+ | Coil A positive terminal |
| A- | Coil A negative terminal |
| B+ | Coil B positive terminal |
| B- | Coil B negative terminal |
DC Motor with Wheels:
Stepper Motor with Wheels:
// Example code to control a DC motor with L298N motor driver
// Connect IN1 and IN2 of L298N to Arduino pins 9 and 10 respectively
// Connect ENA of L298N to Arduino pin 5 (PWM pin)
#define IN1 9 // Motor driver input 1
#define IN2 10 // Motor driver input 2
#define ENA 5 // Motor driver enable pin (PWM)
void setup() {
pinMode(IN1, OUTPUT); // Set IN1 as output
pinMode(IN2, OUTPUT); // Set IN2 as output
pinMode(ENA, OUTPUT); // Set ENA as output
}
void loop() {
// Move motor forward
digitalWrite(IN1, HIGH); // Set IN1 high
digitalWrite(IN2, LOW); // Set IN2 low
analogWrite(ENA, 150); // Set motor speed (0-255)
delay(2000); // Run motor for 2 seconds
// Move motor backward
digitalWrite(IN1, LOW); // Set IN1 low
digitalWrite(IN2, HIGH); // Set IN2 high
analogWrite(ENA, 150); // Set motor speed (0-255)
delay(2000); // Run motor for 2 seconds
// Stop motor
digitalWrite(IN1, LOW); // Set IN1 low
digitalWrite(IN2, LOW); // Set IN2 low
analogWrite(ENA, 0); // Set motor speed to 0
delay(2000); // Wait for 2 seconds
}
Motor Not Spinning:
Motor Spins in the Wrong Direction:
Stepper Motor Skipping Steps:
Wheels Slipping or Misaligned:
Can I use a single power source for both the motor and microcontroller?
What is the maximum load the motor can handle?
Can I control the motor speed without a motor driver?
How do I calculate the required torque for my application?
Torque = Force × Radius, where Force = Weight × Friction Coefficient.