The APC220 radio communication module is a highly versatile and low-cost RF transceiver designed for embedding into a wide range of applications. It operates at 433MHz and is capable of transmitting data at distances of up to 1000 meters in open space. This makes it an ideal choice for hobbyist projects that require wireless communication, such as remote control systems, telemetry, and robotics.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V-5.5V) |
2 | GND | Ground connection |
3 | TXD | Transmit data (TTL level) |
4 | RXD | Receive data (TTL level) |
5 | SET | Configuration mode (Low level: enter config mode) |
6 | AUX | Status indicator (High: normal, Low: not working or in config mode) |
#include <SoftwareSerial.h>
SoftwareSerial APC220(10, 11); // RX, TX
void setup() {
// Start the APC220 communication
APC220.begin(9600);
Serial.begin(9600); // Start serial communication for debugging
}
void loop() {
if (APC220.available()) { // Check if data is available to read
Serial.write(APC220.read()); // Send the data to the Serial monitor
}
if (Serial.available()) { // Check if data is available to send
APC220.write(Serial.read()); // Send data from Serial monitor to APC220
}
}
Note: This example demonstrates basic serial communication between an Arduino UNO and the APC220 module. The SoftwareSerial
library is used to create a serial connection on pins 10 and 11, which are connected to the APC220's RXD and TXD pins, respectively. Data received from the APC220 is sent to the Serial Monitor, and data entered into the Serial Monitor is sent to the APC220.
Remember to adjust the baud rate in the APC220.begin()
function to match the configuration of your APC220 modules.