I‘m looking for a working #ESP32 library that can produce #APRS packets and corresponding #AFSK signals which are sent via the ADC to a SA818-V module.

The libraries I found are either dead or more a proof of concept. Either way, the work required to get it working is way over my head.

#hamradio #microcontroller #arduino

@OE3FKG I’ve used this one with a RP2040 Pico so it should work with the ESP32

https://github.com/handiko/Arduino-APRS

My code did multiple modes including SSTV

https://github.com/alanbjohnston/CubeSatSim/tree/pico-v0.41/cubesatsim

GitHub - handiko/Arduino-APRS: Create simple APRS modulator using Arduino UNO

Create simple APRS modulator using Arduino UNO. Contribute to handiko/Arduino-APRS development by creating an account on GitHub.

GitHub
@ku2y I‘ve come across this one. Since the author wrote, that creating a library is on the roadmap, I (wrongfully?) assumed that this is not a proof of concept and maybe too hard for me to implement. But I‘ll give it a shot. Thanks!

@OE3FKG I turned it into a simple Arduino library. You are welcome to use it. My CubeSatSim code is an example of how to use it if you just look at the APRS code

https://github.com/alanbjohnston/Arduino-APRS/tree/lib-v0.14

GitHub - alanbjohnston/Arduino-APRS at lib-v0.14

Create simple APRS modulator using Arduino UNO. Contribute to alanbjohnston/Arduino-APRS development by creating an account on GitHub.

GitHub

@ku2y you‘re talking about this repo: https://github.com/alanbjohnston/CubeSatSim right?

Hm I have troubles finding the relevant piece of code using the search terms „aprs“ and „afsk“… could you help me out?

GitHub - alanbjohnston/CubeSatSim: CubeSatSim, the AMSAT CubeSat Simulator

CubeSatSim, the AMSAT CubeSat Simulator. Contribute to alanbjohnston/CubeSatSim development by creating an account on GitHub.

GitHub

@OE3FKG Here’s the Arduino library:

https://github.com/alanbjohnston/Arduino-APRS/tree/lib-v0.14/Arduino-APRS-Library

If you look ok at the .h file it lists the functions you can use. The zip file is here under Assets: https://github.com/alanbjohnston/Arduino-APRS/releases You can install it like any Arduino library.

If you search this file for AFSK you will see an example of how to use it:

https://github.com/alanbjohnston/CubeSatSim/blob/pico-v0.41/cubesatsim/cubesatsim.ino

Arduino-APRS/Arduino-APRS-Library at lib-v0.14 · alanbjohnston/Arduino-APRS

Create simple APRS modulator using Arduino UNO. Contribute to alanbjohnston/Arduino-APRS development by creating an account on GitHub.

GitHub
@ku2y ah! Now I get it! Thanks!

@ku2y I'm sorry to keep bothering you...

I loaded the library into the IDE and created a script:

https://pastebin.com/yBpu6M4h

It compiles, uploads and runs fine on the ESP32. However, direwolf can't decode the wav file, I recorded with Audacity. (http://sndup.net/5k9q2). It says `0 packets decoded in 0.027 seconds. 32.4 x realtime`

Am I missing somethin?

#include<Arduino-APRS-Library.h>void setup() { Serial.begin(9600); Ser - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Pastebin

@OE3FKG Where and how did you record the wav file? Did you listen to the wav file? APRS has a distinctive sound that you can tell. Listening will also tell if the volume level is correct.

I see you selected pin 26. What is pin 26 connected to? It needs to be low pass filtered (this library generates square waveforms) then connected at the right level to the audio input of a FM transmitter.

@ku2y I connected pin 26 (DAC2 of the ESP32) via an AUX cable to the PC and recorded it that way with audacity.

I‘ll try a low pass filter soon! What cut off frequency should I aim for? 2400 Hz?

Using the ESP32's DAC's cosine wave generator didn't solve the problem. The sound stayed the same.

The attached wav file does not have that distinct modem sound yet, you’re right! And it's very short...

Maybe I should adjust `baud_adj`. But to what value?