Activating coin vibration motor with arduino

Hey everyone. this is my first time using Arduino.
i've tried all day to activate my vibrating coin motor via Arduino uno board without sucsses.
i have a PMDR1 #6148 vibrating coin motor, and my Arduino board was connected this whole time to the computer via the correct cable.
i've tried to connect it and activate the vibration motor in two ways:

  1. connecting the blue wire to the ground, the red wire to digital exit 9, implementing the following code, pressing verify\compile and upload:

const int motorPin = 9; // Digital pin to which the motor is connected

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

void loop() {
// Activate the vibration motor
digitalWrite(motorPin, HIGH);
delay(1000); // Vibration for 1 second

// Turn off the vibration motor
digitalWrite(motorPin, LOW);
delay(2000); // Pause for 2 seconds before the next vibration
}

  1. using a breadboard, connecting two wires from the Arduino board to the ground and two wires from the coin vibration motor to the breadboard.

what am i doing wrong?
from videos i've seen
thank you!!

Hello, do yourself a favour and please read How to get the best out of this forum and modify your post accordingly (➜ including code tags. link to documentation for your ask like the motors etc would be good too).


you can't power the motor from an Arduino pin...
it will try to draw 40 to 100mA which is way too much for your Arduino
➜ don't use digital pin for power supply. you need a power stage and also protect your Arduino with a free wheel diode..
(you might already have damaged your arduino)

Here is a drawing to help you (with an added diode and a capacitor) from the following web site:

Read this. It even shows how to make music with the ERM/LRA motor!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.