APC220 radio

Pinout:

 

For configuration you need to access TX and RX,

See below for more code and examples

In the bottom an example how to reprogram apc200 insitu on AAU cansat shield v8.

The simple library

Just a headerfile:

(click for apc220cfg.h code)

click for raw headerfile code

apc220cfg.zip can be installed in you Arduino environment


Configuration parameters

See in datasheet for how to configure the radio It consists of a simple textstring with the following format:

config string: example: FFFFFF R P B C

FFFFFF - Frequency

434000 is 434,000 MHz

R: radio link baudrate in kHz

1/2/3/4 equals 2400(1km)/4800/9600/19200bps

P: Radio output power

0 .. 9 where 9(highest) equals 13dBm(20mW)

B UART baudrate (between radio and you

UART baudrate - 0/1/2/3/4/5/6 equals 1200/2400/4800/9600/19200/38400/57600bps

C: UART parity check

Byte Check Parity - 0/1/2 equals NoCheck(8N1)/EvenParity(8E1)/OddParity(8O1)

config string: example:

415000 MHz 9600 baud-in-air  full radiopower uart baudrate 57600 no parity

gives

415000 3 9 6 0

APC220 radio - my code


First two strip down example

Simple config code

The radio is connected to the UNO serial port.

The set pin is connected to D8

Power and ground on radio from somewhere else.

(click for apc220 cfg simple hardware serial code)

raw file

Simple config code software radio

(click for apc220 cfg simple software serial code)

raw file


More examples with more printout

Just below headerfile code and in bottom an example

happy hacking


apc220 config

Too much code but on other hand lot of info

The APC220 is connected to D8-D13. If your radio has pin just …

Serial.println(F(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> "));
	Serial.println(F("Attach radio directly to Arduino on pin 8 to gnd as shown below"));
	Serial.println(F("or solder some wires so you can connect the radio on the shields"));
	Serial.println(F("to 8,10,11,13 and 14. Remove any jumpers on shield "));
	Serial.println(F(" "));
	Serial.println(F("  ---------------"));
	Serial.println(F("  |      A   aref"));
	Serial.println(F("  |      R    GND-++-GND---------------"));
	Serial.println(F("  |      D     13 ++ 5V               |=======antenna =======>"));
	Serial.println(F("  |      U     12 -- ENABLE(high)     |"));
	Serial.println(F("  |      I     11 ++ RX               |"));
	Serial.println(F("  |      N     10 ++ TX               |"));
	Serial.println(F("  5V     O     09 -- not used         |"));
	Serial.println(F("  GND          08-++ SET/CONFIG(low)--|"));
	Serial.println(F("  ---------------"));
	Serial.println(F("  |          ~ 07"));
	Serial.println(F("  |          ~ 06"));
	Serial.println(F("  |          ~ 05"));
	Serial.println(F("  |            04"));
	Serial.println(F("  |          ~ 03"));
	Serial.println(F("  |            02"));
	Serial.println(F("  |         TX 01"));
	Serial.println(F("  |         RX 00"));
	Serial.println(F("  ---------------"));
	Serial.println(F("Remember to connect5V(pin13) to 5V as p13 might no be able"));
	Serial.println(F("to give enough power for normal op"));

(click for apc220cfgexample code)

raw file

apc220

On an Uno locate your apc220 on pin d 8-14 and configure your radio

(click for apc220cfg on pin8 to 13 code)

raw file

Simple and efficent version of previous example

Just the few lines to configure apc220 on dig pin 8 to 13

(click for apc220cfg pin8to13 simple code)

raw file

Reprogram by SW serial on AAU cansat shield v8

(click for code)

raw file

A few APC220 specs

See here