Scott Penrose

Arduino Memory

Scott is an expert software developer with over 30 years experience, specialising in education, automation and remote data.

Once you want to keep data you need to think about memory use

Free memory

#!C
#include <MemoryFree.h>
void setup() {
    Serial.begin(115200);
    Serial.print("freeMemory()=");
    Serial.println(freeMemory());
}

Now you can see free memory, what can you do

Reduced buffers

Free up some of the serial buffer - http://www.ladyada.net/library/arduino/hacks.html

Don't use strings !

Arduino Static Strings

  • Arduino