Arduino Forum

Using Arduino => Audio => Topic started by: CamJackson on Feb 24, 2018, 03:20 am

Title: Possibility of Doing a 2048 point DFT?
Post by: CamJackson on Feb 24, 2018, 03:20 am
Does anyone have experience doing a 2048 point DFT on an Mega 2560?
Title: Re: Possibility of Doing a 2048 point DFT?
Post by: Grumpy_Mike on Feb 24, 2018, 05:18 pm
Given you need a float data type for an FFT, that is 4 bytes, then  a 2048 point array will consume all the 8K memory the meg has.
Title: Re: Possibility of Doing a 2048 point DFT?
Post by: robtillaart on Feb 24, 2018, 07:57 pm
You might extend the RAM of the MEGA with FRAM - https://www.adafruit.com/product/1895

OK, performance will be less than you want but it works, and you can tweak the I2C to at least 600KHz

Check - https://github.com/RobTillaart/Arduino/tree/master/libraries/FRAM
Title: Re: Possibility of Doing a 2048 point DFT?
Post by: CamJackson on Feb 27, 2018, 03:31 am
What do you think of using a USB card, rather than FRAM due to the cost and memory size differences?
Title: Re: Possibility of Doing a 2048 point DFT?
Post by: Grumpy_Mike on Feb 27, 2018, 05:21 pm
What do you think of using a USB card, rather than FRAM due to the cost and memory size differences?
Not much. I assume you mean USB memory stick, not card. That requires a USB host shield.

While you can use FRAM, you don't need it to be non volatile so simple SRAM will do, something like a 23K256 SPI interfaced chip.