Robin2:
What is the purpose of the aprslib library?
Provide a library for easy APRS communication with Arduino.
Robin2:
dd
How do you know it is not working?
If it won't compile then post the error message
If it compiles but does not work properly tell us what actually happens and what should happen.
It compiles, but It doesn't send any signal through PWM pins.
I think that the problem is in afsk_avr.h and afsk_avr.cpp files, there are some functions with low level registers and timers that I don't understand.
I don't have any interest in the subject beyond the minimum required to help you get your program working so I am hoping you will convey the necessary information in a concise paragraph or two.
The zip file is the entire library, of course I can post the files where I think is the problem.
Before even considering the library we need to see your program that is using the library. And as you have some idea (which may be quite correct) about where the problem lies please explain how you come to that conclusion.
I wrote the library from the original code, the original code was a arduino sketch with a lot of cpp and h files, to handle it better I decided write a library with this functions:
Also I'm working on latitude and longitude conversion functions (APRS needs some special formats)
It works fine on Arduino UNO, It was originally designed for this plataform, but I think that is a good idea get working on Arduino MEGA 2560 because some High Altitude Balloons need a lot os sensors and Arduino UNO is not is not enough, HABs usually work with temperature, pressure, altitude sensors, GPS, GSM, much more and now APRS.
I think that the problem is in afsk_avr.h and afsk_avr.cpp because I see code working with pins at low level format like here:
One thing I see very quickly is that the library is using the 8 bit Timer2 which should transfer OK to the mega, but the hardware output pins are different.
cattledog:
Is AUDIO_PIN defined in a config file somewhere, or is it in your code?
Yes, is defined in config.h file:
With Arduino UNO (that works fine):
// AUDIO_PIN is the audio-out pin. The audio is generated by timer 2 using
// PWM, so the only two options are pins 3 and 11.
// Pin 11 doubles as MOSI, so I suggest using pin 3 for PWM and leave 11 free
// in case you ever want to interface with an SPI device.
#define AUDIO_PIN 3
With Arduino MEGA 2560 (that doesn't work):
// AUDIO_PIN is the audio-out pin. The audio is generated by timer 2 using
// PWM, so the only two options are pins 3 and 11.
// Pin 11 doubles as MOSI, so I suggest using pin 3 for PWM and leave 11 free
// in case you ever want to interface with an SPI device.
#define AUDIO_PIN 10
Hello Xload,
I'm trying to use a trackuino 1.52 firmware with Arduino mega2560 too. Could you share me the solution for the problem? In addition, eI'm working with the GPS NEO-7M-C.
Hey guys. I can see that this thread is more than a year old now, but I wanted you to know that I managed to port my Trackuino from an Arduino Uno to an Arduino Mega. It took me a long time to figure out the hardware and software changes that needed to be made, some of it I acquired from this thread. I put together a tutorial and posted it here: http://www.intelleggtual.com/porting-the-trackuino-from-an-arduino-uno-to-arduino-mega/
Hope it helps, and let me know if you end up getting it to work or have questions.