Electronic Components Datasheet Search
  English  ▼

X  

DFR0017 Datasheet(PDF) 3 Page - DFROBOT

Part # DFR0017
Description  Relay Module (Arduino Compatible) (SKU: DFR0017)
PDF  3 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  DFROBOT [DFROBOT]
Direct Link  https://www.dfrobot.com/
Logo DFROBOT - DFROBOT

DFR0017 Datasheet(HTML) 3 Page - DFROBOT

  DFR0017 Datasheet HTML 1Page - DFROBOT DFR0017 Datasheet HTML 2Page - DFROBOT DFR0017 Datasheet HTML 3Page - DFROBOT  
Zoom Inzoom in Zoom Outzoom out
 3 / 3 page
background image
Sample Code
//Arduino Sample Code
//www.DFRobot.com
//Last modified on 14th March 2012 by HJS
//This code has been updated to work with the sample code provided in the Wik
i
int Relay = 3;
void setup()
{
pinMode(13, OUTPUT);
//Set Pin13 as output
digitalWrite(13, HIGH);
//Set Pin13 High
pinMode(Relay, OUTPUT);
//Set Pin3 as output
}
void loop()
{
digitalWrite(Relay, HIGH);
//Turn off relay
delay(2000);
digitalWrite(Relay, LOW);
//Turn on relay
delay(2000);
}
Result
Every two seconds, LED will be turned on and off.
 
 
 
Powered By DFRobot © 2008-2017



Html Pages

1 2 3


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