# FFT Window Example
(See the README.md file in the upper level 'examples' directory for more information about examples.)
This example demonstrates how to use Window and FFT functionality from esp-dsp library. Example does the following steps:
1. Initialize the library
2. Initialize input signals with 1024 samples
3. Apply window to input signal.
4. Calculate FFT for 1024 complex samples
5. Apply bit reverse operation for output complex vector
6. Split one complex FFT output spectrum to two real signal spectrums
7. Show results on the plots
## How to use example
### Hardware required
This example does not require any special hardware, and can be run on any common development board.
### Configure the project
If using Make based build system, run `make menuconfig` and set serial port under Serial Flasher Options.
If using CMake based build system, no configuration is required.
Also, under Component Config/DSP Library/Optimization for ESP32, it's possible to select optimized or ansi implementation to compare.
### Build and flash
Build the project and flash it to the board, then run monitor tool to view serial output:
```
make -j4 flash monitor
```
Or, for CMake based build system (replace PORT with serial port name):
```
idf.py -p PORT flash monitor
```
(To exit the serial monitor, type ``Ctrl-]``.)
See the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.
## Example output
Here is an typical example console output.
```
I (128) main: Start Example.
W (128) main: Hann Window
I (128) view: Data min[256] = -inf, Data max[1] = 24.086628
________________________________________________________________
0| |
1| |
2| |
3| |
4| |
5 | |
6 | |
7 ||||| |
8 ||||||||||||||| |
9 ||||||||||||||||||||||||||||||||||||||||||
0123456789012345678901234567890123456789012345678901234567890123
I (138) view: Plot: Length=512, min=-120.000000, max=40.000000
W (138) main: Blackman Window
I (148) view: Data min[355] = -165.295654, Data max[1] = 24.083012
________________________________________________________________
0| |
1| |
2| |
3| |
4| |
5| |
6 | |
7 ||| |
8 ||||||||| |
9 |||||||||||||||||||||||||||||||||||||||||||||||||||
0123456789012345678901234567890123456789012345678901234567890123
I (158) view: Plot: Length=512, min=-120.000000, max=40.000000
W (158) main: Blackman-Harris Window
I (168) view: Data min[128] = -inf, Data max[1] = 23.874702
________________________________________________________________
0| |
1| |
2| |
3| |
4| |
5| |
6| |
7|| |
8| |||| |
9 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
0123456789012345678901234567890123456789012345678901234567890123
I (178) view: Plot: Length=512, min=-120.000000, max=40.000000
W (178) main: Blackman-Nuttall Window
I (188) view: Data min[128] = -inf, Data max[1] = 23.890663
________________________________________________________________
0| |
1| |
2| |
3| |
4| |
5| |
6| |
7 || |
8 |||| | |
9 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
0123456789012345678901234567890123456789012345678901234567890123
I (198) view: Plot: Length=512, min=-120.000000, max=40.000000
W (198) main: Nuttall Window
I (208) view: Data min[203] = -175.147400, Data max[1] = 23.858671
________________________________________________________________
0| |
1| |
2| |
3| |
4| |
5| |
6| |
7|| |
8 ||| |
9 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
0123456789012345678901234567890123456789012345678901234567890123
I (218) view: Plot: Length=512, min=-120.000000, max=40.000000
W (218) main: Flat-Top Window
I (228) view: Data min[256] = -inf, Data max[1] = 22.490753
________________________________________________________________
0| |
1| |
2| |
3| |
4| |
5| |
6| |
7 || |
8 ||||| |
9 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
0123456789012345678901234567890123456789012345678901234567890123
I (238) view: Plot: Length=512, min=-120.000000, max=40.000000
I (238) main: End Example.
```
没有合适的资源?快使用搜索试试~ 我知道了~
基于esp32的FOC实验程序
共262个文件
c:93个
h:58个
s:28个
需积分: 5 2 下载量 73 浏览量
2023-06-23
15:50:58
上传
评论
收藏 349KB ZIP 举报
温馨提示
基于esp32的FOC实验程序
资源推荐
资源详情
资源评论
收起资源包目录
基于esp32的FOC实验程序 (262个子文件)
mpu6050.c 75KB
BLDCMotor.c 22KB
Data_Transfer.c 22KB
esp32_pwm.c 21KB
app_main.c 12KB
bsp_adc.c 11KB
Foc_Udp.c 8KB
bsp_i2c.c 8KB
test_dsp.c 8KB
dsps_fft2r_sc16_ansi.c 8KB
dsps_biquad_gen_f32.c 7KB
dsps_fft2r_fc32_ansi.c 7KB
test_dotprod_s16.c 7KB
InlineCurrentSense.c 6KB
pid.c 6KB
test_dsps_fft2r_sc16_ae32.c 6KB
foc.c 5KB
Sensor.c 5KB
test_dotprode_f32.c 5KB
test_mmult_3x3xx_f32_ae32.c 5KB
test_dotprod_f32.c 5KB
test_mmult_4x4xx_f32_ae32.c 5KB
test_dsps_dct_f32.c 5KB
test_dsps_conv_f32_ansi.c 4KB
foc_utils.c 4KB
test_dsps_conv_f32_ae32.c 4KB
test_dsps_fft2r_sc16_ansi.c 4KB
dsps_window_main.c 4KB
MagneticSensorI2C.c 4KB
test_mmult_f32_ansi.c 4KB
test_dsps_fft2r_fc32_ae32.c 4KB
esp32_adc.c 4KB
lowpass_filter.c 4KB
test_mmult_s16_ae32.c 4KB
test_dsps_fir_f32_ae32.c 4KB
test_dsps_fft2r_fc32_ansi.c 3KB
pwm.c 3KB
test_dsps_fird_f32_ae32.c 3KB
BLDCDriver3PWM.c 3KB
FOCMotor.c 3KB
dsps_iir_main.c 3KB
test_dsps_ccorr_f32_ansi.c 3KB
dsps_fft_main.c 3KB
test_dsps_fir_f32_ansi.c 3KB
CurrentSense.c 3KB
test_mmult_s16_ansi.c 3KB
test_wind_f32.c 3KB
dsps_dct_f32.c 3KB
dsps_math_main.c 3KB
test_dsps_fird_f32_ansi.c 3KB
test_mmult_f32_ae32.c 3KB
test_bq_f32_ae32.c 3KB
test_dsps_ccorr_f32_ae32.c 2KB
test_dsps_corr_f32_ae32.c 2KB
dsps_ccorr_f32_ansi.c 2KB
dsps_conv_f32_ansi.c 2KB
test_dsps_corr_f32_ansi.c 2KB
test_bq_f32_ansi.c 2KB
test_dsps_addc_f32_ansi.c 2KB
test_dsps_mul_f32_ansi.c 2KB
test_dsps_add_f32_ansi.c 2KB
test_dsps_mulc_f32_ansi.c 2KB
test_dsps_sub_f32_ansi.c 2KB
dsps_dotproduct_main.c 2KB
dspm_mult_s16_ansi.c 2KB
dsps_fird_f32_ansi.c 1KB
test_dsps_snr_f32.c 1KB
test_dsps_sfdr_f32.c 1KB
dsps_corr_f32_ansi.c 1KB
dsps_fir_f32_ansi.c 1KB
dsps_wind_flat_top_f32.c 1KB
dsps_tone_gen.c 1KB
dsps_wind_blackman_nuttall_f32.c 1KB
dspm_mult_f32_ansi.c 1KB
dsps_wind_blackman_harris_f32.c 1KB
dsps_dotprod_s16_ansi.c 1KB
dsps_wind_nuttall_f32.c 1KB
dsps_sub_f32_ansi.c 1KB
dsps_mul_f32_ansi.c 1KB
dsps_add_f32_ansi.c 1KB
dsps_fird_init_f32.c 1KB
test_dsps_view.c 1KB
dsps_wind_blackman_f32.c 1KB
dsps_h_gen.c 1KB
dsps_addc_f32_ansi.c 1020B
dsps_mulc_f32_ansi.c 1020B
dsps_biquad_f32_ansi.c 1012B
dsps_d_gen.c 987B
dsps_dotprode_f32_ansi.c 939B
dsps_fir_init_f32.c 928B
dsps_wind_hann_f32.c 913B
dsps_dotprod_f32_ansi.c 900B
test_app_main.c 68B
mat.cpp 17KB
test_mat_f32.cpp 8KB
dsps_view.cpp 4KB
dsps_snr_f32.cpp 3KB
dsps_sfdr_f32.cpp 2KB
dspm_matrix_main.cpp 2KB
dsps_pwroftwo.cpp 743B
共 262 条
- 1
- 2
- 3
资源评论
故故今天在
- 粉丝: 2
- 资源: 25
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 88-520告白(520气球).zip
- HTML+CSS+JS精品网页模板H126.rar
- n.cpp
- jdk-8u411-windows-x64下载安装可用
- vgg模型-图像分类算法对水果识别-不含数据集图片-含逐行注释和说明文档.zip
- KMP算法(Knuth-Morris-Pratt算法
- vgg模型-python语言pytorch框架训练识别化妆品分类-不含数据集图片-含逐行注释和说明文档.zip
- KMP算法(Knuth-Morris-Pratt算法
- shufflenet模型-基于人工智能的卷积网络训练识别狗的表情-不含数据集图片-含逐行注释和说明文档.zip
- EPIC Fantasy Town 1.0
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功