Recently I have been trying to create a digital compass that always points towards a set of coordinates. However, I have run into a major wall with the Arduino Nano being that my libraries are taking up too much program memory. Right now I have these libraries installed:
//for the Neo 6M GPS module #include <TinyGPS++.h> //for serial communication with GPS #include <SoftwareSerial.h> //Used to separate the gyrometer and OLED display data lines #include <Wire.h> //Gyrometer library #include <MPU6050_tockn.h> //Smaller OLED library #include <U8g2lib.h> //GPS haversine math for f64 #include <Gps64.h>
This takes up about 158% of program memory and 89% of dynamic memory. I have already modified the gps64 to remove unnecessary functionalities but have not been able to do much else. Is there any way to get out of this bind?
This is all supposed to fit in an Altoid tin which so far works with an Arduino Nano but may not work with the larger models like the Uno or Mega.