DSP Components - An introduction

Use this section to discuss your embedded Flowcode projects.
Post Reply
BenR
Matrix Staff
Posts: 1706
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

DSP Components - An introduction

Post by BenR »

Hello,

Here is a short video I made on how to use the DSP components in Flowcode. They should work equally well in Embedded or App Creator.



As always if you have any comments, questions or requests then please let us know.
DSP.fcfx
(16.75 KiB) Downloaded 183 times

ruben123
Posts: 10
Joined: Thu Dec 10, 2020 12:17 pm
Has thanked: 5 times
Been thanked: 3 times

Re: DSP Components - An introduction

Post by ruben123 »

hi

I'm traying to replicate the same thing with an arduino uno
but i get this error( see attachement)
what do i wrong?

kind regards
Attachments
dsp.fcfx
(15.82 KiB) Downloaded 65 times
error
error
foutmeldig_dsp.jpg (103.43 KiB) Viewed 1573 times

BenR
Matrix Staff
Posts: 1706
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: DSP Components - An introduction

Post by BenR »

Hello,

Please can you try going to Help -> Library Updates, Then change the Files in use setting at the bottom of the window to Full Database. This should download some new files and after reloading your project hopefully it will all compile ok for you now.

One thing I did notice is the DSPWaveGen componnent Calculate Data property is currently generating a compile error when set to Yes so I'm going to try and investigate this for you now. edit - this should also be fixed now too.

ruben123
Posts: 10
Joined: Thu Dec 10, 2020 12:17 pm
Has thanked: 5 times
Been thanked: 3 times

Re: DSP Components - An introduction

Post by ruben123 »

everything works now thank you 8-)

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: DSP Components - An introduction

Post by stefan.erni »

Hi Ben


In your video everything works so simply but..
I tried to control the DAC of the ESP32 with the DSP.
Even on the beginn with the setting of the interrupt is not clear to me how that works.
At the end there should be a sinus signal of about 1 kHz on the DAC output, so a 10 kHz interrupt frequency would be good.

And as soon as I turn on the interrupt, the program crashes


regards

Stefan

how to set to 10khz
esp32_2022-08-30_17-37-16.jpg
esp32_2022-08-30_17-37-16.jpg (15.44 KiB) Viewed 1465 times

Simple dsp function:
output_2022-08-30_17-38-36.jpg
output_2022-08-30_17-38-36.jpg (9.41 KiB) Viewed 1465 times
Attachments
Demo_ESP32_Key_post_DSP_out.fcfx
(75.85 KiB) Downloaded 60 times

Post Reply