Shield vrs 8 (2022)Shield version 8 has 4 jumpers J1 to J4 for configuring connection to the apc220 radio and thebg openlog.
J2 APC220 radio RX pinThe APC220 radio RX pin is used for sending bytes to the radio for transmision. J2
D5 D4 D5 D7
apcRX apcTX apcRX apcSET
ardTX ardRX ardTX
IMU 4 3 2 1
--------------------------------------------------------------------------
Uno Serial TX to ap radio RX: Jumper J2 on ardTx<->apcRX
Uno Serial RX to ap radio TX: Jumper J3 on ardRx<->apcTX
Uno Serial TX to openlog RX: Jumper J4 on ardTx<->apcRX
----
softserial with RX D4 and TX T5,
Softserial TX to ap
Pin settingThe pins are used for roouting radio, openlog etc the right way
All HW serial on Arduino
NB remember to configure communication speed (baudrate Serial.begin(xxx)) on all serial ports to be the same
Arduino SW serial to apc220 and Arduino HW serial to openlog
Same as above plus APC220 config pin to D7So by apc220cfg.h you can reprogram radio in situ
J3 is for connecting apc220 tx to either Arduino HW rx (D0) or Arduino SW RX(D6) SW Serial port - code
#include <SoftWareSerial.h>
SoftwareSerial soft01(5,6); // RX, TX
for config you need
#include <apc220cfg.h>
char x[35];
int res;
apc220cfg soft01cfg(&soft01, 7); // pin7 for enabling
...
serialcfg.wrCfg("412000 2 9 3 0");
delay(100);
res = soft01cfg.rdCfg(x);
if (res == 0) {
Serial.println(x);
}
else {
Serial.print("no radio found");
Serial.println(res);
}
Pins on shield vrs 6Jumper no …
So for logging on SD card AND transmit by radio Jumper 2 and 4 is needed NB NB NB NB NB If you are going to reprogram Arduino with shield on you need to remove the jumpers |