01Chapter 1: Three kinds of memory: flash, SRAM and EEPROMAssume you can write and upload a basic Arduino sketch, use the Serial Monitor, and understand variables, arrays, and functions. The examples use an AVR-based Arduino Uno.2 min read
02Chapter 2: How a sketch uses SRAM: static data, heap and stackAssume you can write and upload a basic Arduino sketch, use the Serial Monitor, and understand C/C++ variables, arrays, functions, and pointers. This chapter uses an AVR-based board such as the Arduino Uno.2 min read
03Chapter 3: Reading the memory report after compilingAssume you can write and upload a basic Arduino sketch, understand variables and arrays, and use the Serial Monitor. This chapter focuses on the report printed by the Arduino IDE after compilation. The report helps you find memory problems before they appear while the board is running.3 min read
04Chapter 4: Choosing the smallest data type that fitsThis chapter assumes that you can write basic Arduino sketches, use variables and arrays, and read values in the Serial Monitor. It also assumes an AVR-based board such as the Arduino Uno, where SRAM is only 2 KB. Choosing suitable data types saves SRAM and can make calculations clearer.2 min read
05Chapter 5: Keeping string literals out of SRAM with F()This chapter assumes you can write and upload Arduino sketches, use the Serial Monitor, and understand variables and functions. The examples target AVR-based boards such as the Arduino Uno.2 min read
07Chapter 7: Measuring free RAM while the sketch runsThis chapter assumes you can write and upload Arduino sketches, use the Serial Monitor, and understand variables, arrays, functions, and pointers. The examples target an AVR-based board such as the Arduino Uno.2 min read
09Chapter 9: The String class versus C stringsAssume you know variables, arrays, functions, pointers, and how to use the Serial Monitor. This chapter focuses on AVR-based boards such as the Arduino Uno, where SRAM is small and heap fragmentation can cause failures.2 min read
10Chapter 10: Fixed-size buffers and bounded formattingAssume you can write Arduino functions, use arrays and pointers, and inspect output in the Serial Monitor. This chapter uses C strings: null-terminated character arrays that store text. A fixed-size buffer gives text a known maximum size and avoids allocating memory from the heap while the sketch ru2 min read
12Chapter 12: Saving small values in EEPROMThis chapter assumes you can write basic Arduino sketches, use C/C++ structs, and read values in the Serial Monitor. It focuses on saving configuration data that must survive a reset or power loss.2 min read
13Chapter 13: Recognizing out-of-memory symptomsThis chapter assumes that you can write and upload Arduino sketches, use variables and arrays, and read messages in the Serial Monitor. The examples target an AVR board such as the Arduino Uno, which has only 2 KB of SRAM.2 min read
14Chapter 14: Memory sizes on other boardsThis chapter assumes you can compile and upload a sketch, read the Serial Monitor, and understand variables, arrays, and functions. The examples use an Arduino Uno as the reference board.3 min read