새로운 I/O 확장 실드 V5 Xbee 센서 실드, RS485 APC220 용 Arduino I/0 센서 확장 보드 V5.0 용 SRS485 블루투스 PWM
Description:
Our IO expansion board is evolving, this latest V5 IO expansion shield is now supporting Xbee. It combines our popular Xbee shield
Specification
1. extension of 14 digital IO ports (12 servo interface) and power;2.6 analog IO ports and power;3.1 digital external power port terminal;4. Digital-port external power supply and an onboard power supply automatic switching;5.1 External power input terminal and an input pin;6.RS485 interface;7. reset button;8.xbee/Bluetooh Bee Bluetooth wireless data transmission interface;9.APC220/Bluetooh V3 Bluetooth wireless data transmission interface;10.IIC/I2C/TWI interface;11.3.3V output port;12.SD card module interface;
It uses an SP485CN chip to handle comms.
The screw terminals (assuming that the three jumpers are set to '485') marked 'A' and 'B' go directly to the IC 'A' and 'B' pins (6 & 7 respectively).
The screw terminal marked VCC goes to the IC VCC pin (8), and also to the board's +5V line
The screw terminal marked GND goes to the IC GND pin (5), and also to the board's GND line
The chip's DI (Data Input?) pin (4) is connected to for Arduino's Digital Pin 1 (TX).
The chip's RO (Data Output?) pin (1) is connected to for Arduino's Digital Pin 0 (RX), with a resistor pull-up to the +5V rail.
The chip's DE (output enable) pin (3) is connected (via a resistor) to for Arduino's Digital Pin 2 - this is active high.
This DE pin is also connected to the chip's RE bar (receiver enable) pin (2) and therefore controlled by for Arduino's Digital pin 2 too - this is active low.
Digital Pin 2 = Rx/Tx 'Enable'; High to Transmit, Low to Receive
So, to transmit data from for Arduino Digital Pin 1 you need to take Digital pin 2 high, and to receive data to for Arduino Digital Pin 0 you need to take Digital pin 2 low.
Pin Out
RS485 Transmit Data
int EN = 2; //RS485 has a enable/disable pin to transmit or receive data. (remove the for) for Arduino Digital Pin 2 = Rx/Tx 'Enable'; High to Transmit, Low to Receive void setup() { pinMode(EN, OUTPUT); Serial.begin(19200); } void loop() { // send data digitalWrite(EN, HIGH);//Enable data transmit Serial.print('A'); delay(1000); }RS485 Receiving Data
int ledPin = 13; int EN = 2; int val; void setup() { pinMode(ledPin, OUTPUT); pinMode(EN, OUTPUT); Serial.begin(19200); } void loop() { // receive data digitalWrite(EN, LOW);//Enable Receiving Data val = Serial.read(); if (-1 != val) { if ('A' == val) { digitalWrite(ledPin, HIGH); delay(500); digitalWrite(ledPin, LOW); delay(500); } } }
모델 번호 : 1
유형 : 전압 조정기
공급 전압 : 1
조건 : 새로운
작용 온도 : 1
브랜드 이름 : diymore
분산 전원 : 1
패키지 : TQFP
근원 : CN (정품)
신청 : 컴퓨터
맞춤 가능 유무 : 그렇습니다