hello sir thank u for this amazing video ,i just wanna ask u if is it the same with stm32f4 ?
@TechSponsorTV
4 ай бұрын
for stm32f4 some names are different, here is an example for stm32f4: www.thundertronics.com/STM32CubeIDE/Using_CMSIS_DSP_library.html
@aymenbennia2951
4 ай бұрын
@@TechSponsorTV hi sir, i couldnt follow the steps because im using cubemx with the kiel instead of IDE,i hope u can help me
@TechSponsorTV
4 ай бұрын
Have you tried this? stm32f4-discovery.net/2014/10/stm32f4-fft-example/ It's pretty old though
@aymenbennia2951
4 ай бұрын
@@TechSponsorTV thanks a lot for your help , i have decided to use cube IDE , now im reading and storing sensor data in buffer so,is it the same FFT code u used i should use or there are diffrences?
@TechSponsorTV
4 ай бұрын
There are two functions arm_cfft_...() And arm_cplx_mag_...() The first one calculates complex spectrum from complex input data, the second one calculates amplitude (magNITUDE) from complex spectrum. You can use your array as complex input if you interleave it with zeros. arm_cplx_mag_...() function has a design flaw: it loses precision shifting bits left after multiplication or taking a square root.. I don't know where to start, need a better tutorial or one-on-one training. There is also a "real" fft function, but it's not well designed, e.g., it should have same style as complex one, buy instead it's some bogus custom defined function. So, you have some data a[0] a[1] a[2] and so on. Make an array b[k*2]=a[k] b[k*2+1]=0. Feed array b to arm_cplx_fft function, feed output of this function to arm_cplx_mag function... keep array sizes and data types right, visualize each step output to check what's going on. If you need personalized help try reach out to info@thundertronics.com
@esps12
7 ай бұрын
can i get the prj folder zip ?, it looks great
@TechSponsorTV
7 ай бұрын
Unfortunately, I haven't saved this sample. You can try to follow this guide: www.thundertronics.com/STM32F103C8T6/Fast_Fourier_Transform.html just go through each step and copy.
@dmarman
4 ай бұрын
you are importing CMSIS 4, that's too old
@TechSponsorTV
4 ай бұрын
I think this is the version that comes with STM32 HAL libraries. FatFs version is not the latest too. If there is something interesting about newer CMSIS just let me know, I would be grateful to learn from my viewer!
@seanday7427
Ай бұрын
Why do you not speak?
@TechSponsorTV
Ай бұрын
No special reason. This video was recorded without me speaking and then uploaded. I guess it's a history already unless I record another video. I can ever sign a song maybe. Regarding FFT the most challenging part is making fast phase and amplitude measurements. CMSIS amplitude function loses dynamic range by right shifting and ATAN2 is very slow. I have solved these problems long time ago and will release a better tutorial soon but with a twist!
Пікірлер: 12