Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use Vibration Motor: Examples, Pinouts, and Specs

Image of Vibration MotorDesign with Vibration Motor in Cirkit Designer

Introduction

A vibration motor is an electromechanical device designed to generate vibrations when an electrical current is applied. These vibrations can be used for a variety of applications, including haptic feedback in user interfaces, alert notifications in mobile devices, and as a tactile indicator in industrial and medical equipment. The compact size and ease of use make vibration motors suitable for a wide range of products.

Explore Projects Built with Vibration Motor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Arduino Nano Battery-Powered Vibration Motor Controller: A project utilizing Vibration Motor in a practical application
Arduino Nano Battery-Powered Vibration Motor Controller

This circuit uses an Arduino Nano to control four vibration motors through NPN transistors, with each motor connected to a transistor and a rectifier diode for protection. The Arduino Nano receives power from a 5V battery and controls the transistors via digital pins D9, D10, D11, and D12, enabling the vibration motors to be turned on and off programmatically.

Open Project in Cirkit Designer

Technical Specifications

General Characteristics

Pin Configuration and Descriptions

Pin Number Description
1 Positive Power Supply (V+)
2 Ground (GND)

Usage Instructions

Integration into a Circuit

  1. Power Supply: Connect the positive terminal of the vibration motor to a power source (e.g., battery) and the negative terminal to the ground. Ensure the power source matches the motor's rated voltage.

  2. Control: To control the motor with a microcontroller like an Arduino UNO, you can use a transistor or a motor driver as a switch.

  3. PWM Control: For variable vibration intensity, use Pulse Width Modulation (PWM) through a microcontroller.

Best Practices

Example Code for Arduino UNO

// Define the pin connected to the vibration motor
const int motorPin = 3; // Use a PWM pin for analog output

void setup() {
  // Set the motor pin as an output
  pinMode(motorPin, OUTPUT);
}

void loop() {
  // Turn on the vibration motor at full speed
  analogWrite(motorPin, 255); // Send a PWM signal of max duty cycle
  delay(1000); // Vibrate for 1 second
  
  // Turn off the motor
  analogWrite(motorPin, 0); // Send a PWM signal of zero duty cycle
  delay(1000); // Pause for 1 second
  
  // Vibrate the motor at half speed
  analogWrite(motorPin, 127); // Send a PWM signal of 50% duty cycle
  delay(1000); // Vibrate for 1 second
  
  // Turn off the motor
  analogWrite(motorPin, 0); // Send a PWM signal of zero duty cycle
  delay(1000); // Pause for 1 second
}

Troubleshooting and FAQs

Common Issues

FAQs

Q: Can I control the vibration intensity? A: Yes, by using PWM, you can control the intensity of the vibrations.

Q: How do I extend the life of my vibration motor? A: Avoid running the motor continuously at high currents and ensure it is mounted securely.

Q: Is it possible to use the vibration motor with a 5V Arduino pin directly? A: It is not recommended to connect the motor directly to an Arduino pin without a current-limiting resistor or a transistor, as it may draw more current than the pin can safely supply.

Q: Can I use the vibration motor with a 3.3V supply? A: Yes, but the vibration strength may be reduced compared to using a higher voltage within the motor's rated range.