Wireless extend application for Arduino Board

Release time:2016-07-03

XBee wireless communication module is the official Arduino recommended 2.4G technology based on the ZigBee wireless data transmission, but given that we is not convenient to buy and cost-effective, and so on the recommendation of a domestic wireless 433MHz Data Transmission (APC220) to replace the XBee, APC220 the same through the Arduino serial port Tx and Rx pin to communicate, but only point-to-point communications APC220. APC220 first introduce the following characteristics and configuration parameters.(1). APC220 indicator characteristics,
1. Operating frequency 431MHz to 478MHz (1KHz steps)
2. GFSK Modulation
3. 200KHz frequency interval
4. Transmission power 20mw (10 level adjustable)
5. Receiving sensitivity-117dBm @ 1200bps
6. The air transmission rate of 1200 - 19200bps
7. Interface rate of 1200 - 19200bps
8. 8E1/8N1/8O1 interface means-tested
9. 512bytes interface buffer space
10. Working humidity 10% ~ 90% (no condensation)
11. Operating temperature -20 ℃ - 70 ℃
12. Power Supply 3.3 - 5.5V (± 50mV ripple)
13. Emission current ≦ 35mA @ 10mW
14. ≦ 30mA current receiver
15. Dormancy current ≦ 5uA
16. Transmission distance 1000 meters transmission distance (open to visual distance)
17. Dimensions 39mm x 19mm x 2.8mm

(2). The APC220 PC software:APC220 Test Mate

(3). USB adapter for use:

With USB adapter to connect the computer settings to use partner APC220 parameters, as the USB adapter pin function is not marked, so we will easily lead to dislocation APC interpolation, see the red tag under the plan, to avoid connection errors. USB adapter into the computer need to install drivers, install the driver you should be more skilled all right, I do not speak of, there are drivers toDownload Address.

According to the map after a good connection then, into the USB port on the PC, and then open the APC software partner.

Select PC Series, the software will identify the hardware, set to launch frequency (RF frequency) range of 431MHz - 478MHz, air baud rate (RF TRx rate) is set to recommend 19200bps, serial baud rate (Series rate) in accordance with the requirements set, here set to 19200bps, the remaining parameters to the default, the last point Write W, complete set (1 APC220 need to configure the same).

(4). APC and expansion board with:

System in Figure:


APC220 wireless data-transmission expansion into Arduino board, the attention to the location of pin serial port options, the need to disconnect the pin. Figure:

In talking about this, we can use to verify the code. Code is as follows:
int ledPin = 13;
int val;

void setup()
{
pinMode(ledPin, OUTPUT);
Serial.begin(19200);
}

void loop()
{
// receive data
val = Serial.read();
if (-1 != val) {
if (´A´ == val) {
digitalWrite(ledPin, HIGH);
delay(500);
digitalWrite(ledPin, LOW);
delay(500);
}
}
}
PC-side, using the Arduino IDE Serial Monitor send a letter A, the APC block letters will be sent through a wireless network.

Arduino end of another module to receive APC letters A, through Serial.read () function module to read from the APC data received to determine if it is the letter A, then the light emitting diodes.

Note that the download code to the A board, please unplug the APC220, because of its serial port to be occupied, resulting in failure to download.

NOTE: We have released RF4432 for alternative APC220 with higher sensitivity and max power output. RF4432 can cover the 868MHz and 915MHz band. They are Pin to Pin compatible.