Ingo Lohs
Published © GPL3+

Grove - Introduction in a Vibration Motor - only for adults

Beginner-Example

BeginnerProtip1 hour4,479
Grove - Introduction in a Vibration Motor - only for adults

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Seeed Studio Grove Base Shield
×1
Seeed Studio Grove - Vibration Motor
×1

Software apps and online services

Arduino Web Editor
Arduino Web Editor

Story

Read more

Code

Vibration Motor - Example

C/C++
Original code by Seeedstudio
int MoPin = 5;    // vibrator Grove connected to digital pin 5

void setup()  {
    pinMode( MoPin, OUTPUT );
}

void loop()  {

    digitalWrite(MoPin, HIGH);
    delay(1000);

    digitalWrite(MoPin, LOW);
    delay(1000);
}

Credits

Ingo Lohs

Ingo Lohs

182 projects • 194 followers
I am well over 50 years and come from the middle of Germany.

Comments