









| Parameter | Value |
|---|---|
| Motor Type | DC Motor / Stepper Motor |
| Operating Voltage | 3V - 12V (varies by motor model) |
| Rated Current | 100mA - 2A (depending on load) |
| Stall Current | Up to 3A (varies by motor model) |
| Torque | 0.1 Nm - 1 Nm (model-dependent) |
| Speed | 50 RPM - 300 RPM (no load) |
| Parameter | Value |
|---|---|
| Wheel Diameter | 65mm - 100mm |
| Wheel Material | Rubber or Plastic |
| Hub Type | Compatible with motor shaft |
| Traction | High-grip surface for stability |
| Pin Name | Description |
|---|---|
| V+ | Positive terminal for motor power |
| V- | Negative terminal for motor power |
| Pin Name | Description |
|---|---|
| A+ | Coil A positive terminal |
| A- | Coil A negative terminal |
| B+ | Coil B positive terminal |
| B- | Coil B negative terminal |
// This example demonstrates how to control a DC motor using an L298N motor driver
// and an Arduino UNO. The motor speed is controlled using PWM, and the direction
// is controlled using digital pins.
const int ENA = 9; // PWM pin for motor speed control
const int IN1 = 8; // Direction control pin 1
const int IN2 = 7; // Direction control pin 2
void setup() {
pinMode(ENA, OUTPUT); // Set ENA as output
pinMode(IN1, OUTPUT); // Set IN1 as output
pinMode(IN2, OUTPUT); // Set IN2 as output
}
void loop() {
// Rotate 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
// Rotate 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 before repeating
}
Motor Not Spinning:
Motor Spins in One Direction Only:
Motor Overheating:
Wheels Wobbling:
Can I use a single power supply for both the motor and microcontroller?
What type of motor driver should I use?
How do I calculate the required torque for my application?
This documentation provides a comprehensive guide to using motor and wheels assemblies effectively in your projects.