APC220 Radio; Arduino: Difference between revisions
From wikiluntti
(→Theory) |
|||
| Line 13: | Line 13: | ||
SiLabs.com CP210x USB-UART VCP drivers. Run CP210xVCPInstaller_x64. | SiLabs.com CP210x USB-UART VCP drivers. Run CP210xVCPInstaller_x64. | ||
=== APC220 Pinouts === | |||
*VIN: Module power supply | |||
*GND: Ground | |||
*RX: Data receive through serial protocol | |||
*TX: Data transmit through serial protocol | |||
*SET: Mode Setting | |||
*AUX: For other commands | |||
*EN: Enable module | |||
=== Arduino === | === Arduino === | ||
Library: https://github.com/PaulStoffregen/SoftwareSerial | |||
apc220cfg | apc220cfg | ||
J2 & J3 | J2 & J3 | ||
<syntaxhighlight lang="C" lines> | |||
/* | |||
Modified on March 09, 2021 | |||
Modified by MohammedDamirchi from https://github.com/PaulStoffregen/SoftwareSerial | |||
Home | |||
*/ | |||
#include <SoftwareSerial.h> | |||
SoftwareSerial mySerial(10, 11); // RX, TX | |||
void setup() { | |||
// Open serial communications and wait for port to open: | |||
Serial.begin(9600); | |||
while (!Serial) { | |||
; // wait for serial port to connect. Needed for native USB port only | |||
} | |||
// set the data rate for the SoftwareSerial port | |||
mySerial.begin(9600); | |||
} | |||
void loop() { // run over and over | |||
if (mySerial.available()) { | |||
Serial.write(mySerial.read()); | |||
} | |||
if (Serial.available()) { | |||
mySerial.write(Serial.read()); | |||
} | |||
} | |||
</syntaxhighlight> | |||
=== Terminal program === | === Terminal program === | ||
Revision as of 21:08, 7 December 2022
Introduction
Theory
Frequencies
433.050 MHz - 434.800 MHZ.
RF magic
USB-TTL converter
SiLabs.com CP210x USB-UART VCP drivers. Run CP210xVCPInstaller_x64.
APC220 Pinouts
- VIN: Module power supply
- GND: Ground
- RX: Data receive through serial protocol
- TX: Data transmit through serial protocol
- SET: Mode Setting
- AUX: For other commands
- EN: Enable module
Arduino
Library: https://github.com/PaulStoffregen/SoftwareSerial
apc220cfg
J2 & J3
/*
Modified on March 09, 2021
Modified by MohammedDamirchi from https://github.com/PaulStoffregen/SoftwareSerial
Home
*/
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
// set the data rate for the SoftwareSerial port
mySerial.begin(9600);
}
void loop() { // run over and over
if (mySerial.available()) {
Serial.write(mySerial.read());
}
if (Serial.available()) {
mySerial.write(Serial.read());
}
}
Terminal program
Br@y++:n Terminal v.1.9b https://sites.google.com/site/terminalbpp/