Klausj
Published © GPL3+

Calculate Function Table and Store in Flash at Compile Time

If you need fast access to function values but no space in SRAM you can either save them in a csv-file or ask the preprocessor to do it.

AdvancedFull instructions provided1 hour289
Calculate Function Table and Store in Flash at Compile Time

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
SparkFun I2C DAC Breakout - MCP4725
SparkFun I2C DAC Breakout - MCP4725
×1
Analog Panel Meter, Black Spade Type Pointer
Analog Panel Meter, Black Spade Type Pointer
×1

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Code

Use 512 values of sine stored in FLASH, sin-calc3.zip

Arduino
The values can be printed to the Serial monitor, or plotted on the Serial plotter and used in the program, e.g. sent to the DAC MCP4725 or whatsoever.
No preview (download only).

Credits

Klausj
88 projects • 8 followers

Comments