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 …


  ---------------|
  -- ARDUINO UNO-|
  |      A   aref|
  |      R    GND|++-GND---------------
  |      D     13|++ 5V               |=======antenna =======>
  |      U     12|-- ENABLE(high)     |
  |      I     11|++ RX               |
  |      N     10|++ TX               |
  5V     O     09|-- not used         |
  GND          08|++ SET/CONFIG(low)--|
  ---------------
  |          ~ 07|
  |          ~ 06|
  |          ~ 05|
  |            04|
  |          ~ 03|
  |            02|
  |         TX 01|
  |         RX 00|
  ---------------

Remember to connect 5V(pin13) to 5V as p13 might no be able 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