# APC 220 - Configuration

**URL:** <https://forum.arduino.cc/t/apc-220-configuration/663948>\
**Category:** Networking, Protocols, and Devices\
**Created:** [July 4, 2020, 1:54pm UTC](https://forum.arduino.cc/t/apc-220-configuration/663948 "2020-07-04T13:54:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlisthenewcool](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@mlisthenewcool](https://forum.arduino.cc/u/mlisthenewcool)\
**Post date:** [July 4, 2020, 1:54pm UTC](https://forum.arduino.cc/t/apc-220-configuration/663948/1 "2020-07-04T13:54:09Z")

</div>

I'm trying to connect a pair of APC 220; one is connected to a drone, the other one to my laptop which runs Linux.

I uploaded the following code on both APC to run some experiments :

```arduino
#include <SoftwareSerial.h>

const int PIN_APC_RX  = 11;
const int PIN_APC_TX  = 12;
const int PIN_APC_SET = 13;

SoftwareSerial APC(PIN_APC_RX, PIN_APC_TX);

void setup() {
    Serial.begin(9600);
    
    pinMode(PIN_APC_SET, HIGH);
    APC.begin(9600);

    digitalWrite(PIN_APC_SET, LOW);
    delay(10);

    APC.println("WR 433900 3 9 3 0");
    delay(10);

    digitalWrite(PIN_APC_SET, HIGH);
    delay(200);
}

```

```arduino
void send_APC() {
    char rc;
    while (Serial.available() > 0) {
        rc = Serial.read();
        APC.write(rc);
    }
}

```

```arduino
void read_APC() {
    while (APC.available() > 0) {
        rc = APC.read();
      Serial.print(rc);
    }
}

```

> ☹ I am not able to transmit/receive data on any device. Has anyone ever solved that before ?

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [July 4, 2020, 2:59pm UTC](https://forum.arduino.cc/t/apc-220-configuration/663948/2 "2020-07-04T14:59:23Z")

</div>

Always post the complete, compilable code.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 11:20am UTC](https://forum.arduino.cc/t/apc-220-configuration/663948/3 "2021-05-06T11:20:58Z")

</div>

Closed on May 6, 2021, 11:20am UTC


