A 12V geared motor is an electromechanical device that combines a 12-volt DC motor with a gearbox. The gearbox is designed to reduce the high-speed rotation of the motor to a slower speed while increasing torque. This type of motor is widely used in applications where precise speed control and higher torque are necessary, such as in robotics, automatic doors, and hobbyist projects.
Pin Number | Description | Notes |
---|---|---|
1 | Motor Positive (M+) | Connect to 12V power supply |
2 | Motor Negative (M-) | Connect to ground |
// Example code to control a 12V geared motor with an Arduino UNO
#include <Arduino.h>
const int motorPin = 3; // Connect to the PWM-capable pin on the motor driver
void setup() {
pinMode(motorPin, OUTPUT);
}
void loop() {
// Set motor speed (0-255)
analogWrite(motorPin, 127); // Set to approximately 50% speed
delay(2000); // Run the motor for 2 seconds
// Stop the motor
analogWrite(motorPin, 0);
delay(1000); // Stop the motor for 1 second
// Change direction or speed as needed
// ...
}
This documentation provides a basic overview of the 12V geared motor and how to use it in various applications. Always refer to the specific motor's datasheet for detailed information and specifications.