Electronic Components Datasheet Search
  English  ▼

X  

DFR0259 Datasheet(PDF) 5 Page - DFROBOT

Part # DFR0259
Description  Arduino RS485 Shield SKU: DFR0259
PDF  6 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  DFROBOT [DFROBOT]
Direct Link  https://www.dfrobot.com/
Logo DFROBOT - DFROBOT

DFR0259 Datasheet(HTML) 5 Page - DFROBOT

  DFR0259 Datasheet HTML 1Page - DFROBOT DFR0259 Datasheet HTML 2Page - DFROBOT DFR0259 Datasheet HTML 3Page - DFROBOT DFR0259 Datasheet HTML 4Page - DFROBOT DFR0259 Datasheet HTML 5Page - DFROBOT DFR0259 Datasheet HTML 6Page - DFROBOT  
Zoom Inzoom in Zoom Outzoom out
 5 / 6 page
background image
# This sample codes is for testing the RS485 shiled(manual transmission mode)
.
# EN=2;
# Editor : YouYou
# Date
: 2013.9.16
# Ver
: 0.1
# Product: RS485 shield
# SKU
: DFR0259
*/
int led = 13;
int EN = 2;
//Definition RS485 shield enable terminal (the 2nd digital IO po
rts),
//high for the sending state, the low level of receiving state
void setup()
{
Serial.begin(9600);
pinMode(led,OUTPUT);
pinMode(EN,OUTPUT);
}
void loop()
{
int temp;
digitalWrite(EN,LOW);
//Enable low, RS485 shield waiting to receive data
if(Serial.available())
{
temp=Serial.read();
if(temp=='V')
{
digitalWrite(led,1-digitalRead(led));
digitalWrite(EN,HIGH);
//Enable high, RS485 shield waiting to transm
it data
Serial.println("OK");
delay(10);
//Delay for some time, waiting for data transmitted
}
}



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