DSP Output CSV1 clear data

Any bugs you encounter with Flowcode should be discussed here.
stefan.erni
Valued Contributor
Posts: 758
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 171 times

Re: DSP Output CSV1 clear data

Post by stefan.erni »

Hi Ben

Yes V10 Beta is perfect,
and I'm always ready to test new DSP componeten or functions.

regards

Stefan

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: DSP Output CSV1 clear data

Post by BenR »

Hi Stefan,

Ok I've pushed the v10 changes for you. Let me know how you're getting on.

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

Re: DSP Output CSV1 clear data

Post by stefan.erni »

Hi Ben

It's compieling and starting, card is ok, but it cant open the file for writing in the ESP32. Never get ret_bool= 1
I get always a 0

If I dont test it's crashing later while writing.


regards


Stefan
Attachments
Fc10_csv_test1.fcfx
(28.13 KiB) Downloaded 63 times

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: DSP Output CSV1 clear data

Post by BenR »

Hi Stefan,

Hmm ok I did some work to streamline the File SD component so I wonder if I've introduced a bug. I'll investigate and see if I can get it resolved.

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

Re: DSP Output CSV1 clear data

Post by stefan.erni »

Hi Ben

I also suspect the problem in the file-sd component. I can't write to the card even without a DSP component.
But in the simulation it's working also with the DSP component.

regards

Stefan

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: DSP Output CSV1 clear data

Post by BenR »

I've got it working now on a 16-bit PIC turned out to be a problem with the DSP component opening the file.

Hopefully working well for you too but worrying you were having issues with the SD component as it's playing fairly nicely here.

Assuming it's now working for you as well is there anything else you would like to see from the DSP component?

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

Re: DSP Output CSV1 clear data

Post by stefan.erni »

Hi Ben


Yes it's working now. Super!
Now it works great with the DSP CSV writer.


Same style as this DSP CSV witer it should also have a

DSP RAW writer.

Instead of a string to excel, this simply stores a INT or a LONG in little endian Format.
Byte, Uint, Ulong, it actually doesn't need it.

For example this way you can save 8Channel INT in a (binary) file,
Later I can open this file with the Flowcode10 APP but also with Matlab, Audacity or whatever.
I guess I can then very easily load it into the FC10 APP with the DSP RAW reader and filter there again with the DSP system or calculate mean values and much more.

I can also add a Wav header (you have showed it to me, a while ago) just open the first block, add infos and save the first block again.

And one DSP component for a Microfon I2S PORT,PDM encoding output (CLK/DAT) like the SPM1423
A samplerate of 2Khz is already enough for me. At the moment I'm using an analogue microphone but it's quite big.
It works well for recording snoring, grinding teeth, coughing during the night. But the new mics are much smaller and often already on the board
or simply to place it on my own board.
example of a I2S MIC
https://shop.m5stack.com/collections/m5 ... it-spm1423

regards

Stefan

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

Re: DSP Output CSV1 clear data

Post by stefan.erni »

Hi Ben


I did a test with 10 DSP filter
Filter 1 has coeficient 1
Filter 2 has coeficient 2 .....

The signal is from a HX711 and a strain gage. After 7 Sec I load some coins on the straingage and after 100 Sec I stopped recording
It's working perfect.

Just not so fast.
Now tried to use array




Test Adapter:
5_Coins_IMG_0887.jpg
5_Coins_IMG_0887.jpg (99.77 KiB) Viewed 1696 times
Filter and raw Signal:
Filter_2022-10-06_14-41-51.png
Filter_2022-10-06_14-41-51.png (140.15 KiB) Viewed 1696 times
Open in Excel and add all in a Diagramm
Filter_2022-10-06_14-46-23.png
Filter_2022-10-06_14-46-23.png (113.29 KiB) Viewed 1696 times

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: DSP Output CSV1 clear data

Post by BenR »

Excellent glad it's working and love the results. Many thanks for sharing.

Also those coins look pretty cool 8-)

Post Reply