Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

DFR0440 Datasheet(PDF) 4 Page - DFROBOT

Part # DFR0440
Description  Gravity: Vibration Module SKU: DFR0440
PDF  6 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  DFROBOT [DFROBOT]
Direct Link  https://www.dfrobot.com/
Logo DFROBOT - DFROBOT

DFR0440 Datasheet(HTML) 4 Page - DFROBOT

  DFR0440 Datasheet HTML 1Page - DFROBOT DFR0440 Datasheet HTML 2Page - DFROBOT DFR0440 Datasheet HTML 3Page - DFROBOT DFR0440 Datasheet HTML 4Page - DFROBOT DFR0440 Datasheet HTML 5Page - DFROBOT DFR0440 Datasheet HTML 6Page - DFROBOT  
Zoom Inzoom in Zoom Outzoom out
 4 / 6 page
background image
* @version
V1.0
* @date
2016-5-26
* All above must be included in any redistribution
* ****************************************************/
const int buttonPin = 8;
// the number of the pushbutton pin
const int VibPin =
11;
// the number of the Vibration Module pin
int key=0;
void setup()
{
pinMode(VibPin,OUTPUT);
// Set the digital pin(11) as output
pinMode(buttonPin, INPUT); // Set the digital pin(8) as input
}
void loop()
{
key=digitalRead(buttonPin);
if(key==LOW)
{
digitalWrite(VibPin,HIGH);
//Turn on the
Vibration Mod
ule
delay(5000);
//Waits for 5 seconds
digitalWrite(VibPin,LOW);
//Turn off the
Vibration Modu
le
}
else
digitalWrite(VibPin,LOW); //Turn off the
Vibration Module
// put your main code here, to run repeatedly:
}
Results: when the button of pin 8 is pressed, the vibration module will be on for 5 seconds, then
stop and wait for the button to be pushed again



Html Pages

1 2 3 4 5 6


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com