Vibration Motor

A vibration motor will vibrate and is for example used in a smartphone.
Information

Type : Output

Mode : Digital

Pins : 0-14

Tutorial : elektro.turanis.de

Image by funduino, CC-BY-SA.

Connection scheme

Scheme made with Fritzing.

Functions

On

On State

Switches the component on.

void function_0_vibrationMotor(){
digitalWrite(pin_0_vibrationMotor, HIGH);
function_0_vibrationMotor();
}
  
digitalWrite(pin_0_vibrationMotor, HIGH);
  
void function_0_vibrationMotor(){
digitalWrite(pin_0_vibrationMotor, HIGH);
state = 1;
}
  

Off

Off State

Switches the component off.

void function_0_vibrationMotor(){
digitalWrite(pin_0_vibrationMotor, LOW);
function_0_vibrationMotor();
}
  
digitalWrite(pin_0_vibrationMotor, LOW);
  
void function_0_vibrationMotor(){
digitalWrite(pin_0_vibrationMotor, LOW);
state = 1;
}
  

Last modified April 6, 2022: added component translations (dd86b1f)