How to save a component

For general Flowcode discussion that does not belong in the other sections.
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

How to save a component

Post by stefan.erni »

Hi Ben

On the webside from Flowcode is the component SHT31
Component: Temp / Humidity (SHT31) (Environmental) - Flowcode Help
https://www.flowcode.co.uk/wiki/index.p ... ronmental)

I can load it and see how it works.

I suppose I could make small changes in the addresses and this would work for the SHT41.
I can also export the component.
My question: How can I rename the component to SHT41 so that I can find and load it in Flowcode?

regards

Stefan

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: How to save a component

Post by medelec35 »

Hi Stefan.
After renaming the source project file and then editing the component source.
Select File > Export > Edit the export settings for your component
There you can change all the details of the component including its name, where within Flowcode you want the component to live etc.
For the icon the image will need to be 24 x 24 pixels.
Go into the Advanced tab, select Edit next to GUID window.
Select the top New to generate a new GUID then select OK, then OK again.

Now you can select Export this project as a component to a directory of your choice.
Don't forget to add the directory path within File > Global Settings... > Locations > Look for components in .... window
Martin

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

Re: How to save a component

Post by stefan.erni »

Hi Martin

I have reached the first part....
Edit and save/load is working .
So I will now try a little to change the addresses.

regards

Stefan

SHT41....
Snag_19f2b53.png
Snag_19f2b53.png (17.87 KiB) Viewed 4041 times

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: How to save a component

Post by medelec35 »

Hi Stefan, that's great, well done.
If you need help, e.g. would like editable address within properties, or want the icon to match the other sensors, then let me know and I will assist further.
Martin

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

Re: How to save a component

Post by stefan.erni »

Hi Martin

Thank you for the good tips and support. I changed the address.
It's working now with the SHT41.
I have noted my changes in the pdf and set the name of the component to Sensirion_SHT41
I will test more and later and I test also the STS41, a version Sensor from Sensirion only temperature.
Both sensor are avaible on a flexprint (FPCB) and really small...

regards

Stefan
Snag_6670839.png
Snag_6670839.png (135.61 KiB) Viewed 4014 times
Attachments
Sensirion_SHT41.fcpx
(6.27 KiB) Downloaded 191 times
Sensirion SHT41.pdf
(227.35 KiB) Downloaded 201 times
FC_Comp_Source_Sensirion_SHT41.fcfx
(45.75 KiB) Downloaded 192 times

medelec35
Matrix Staff
Posts: 1451
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 512 times
Been thanked: 472 times

Re: How to save a component

Post by medelec35 »

Hi Stefan.
You're welcome.
Thank you for posting the modified component and source file.
It will be handy for someone who has that sensor.
I'm glad it's working, well done.
Martin

steve001
Valued Contributor
Posts: 185
Joined: Wed Jan 13, 2021 7:15 pm
Has thanked: 81 times
Been thanked: 30 times

Re: How to save a component

Post by steve001 »

Hi Stefan.

I have been looking at those development kits also.
Are you using the humidity - what's the accuracy like ?

Got a idea lurking for a data logger for our binder climate chamber

Steve

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

Re: How to save a component

Post by stefan.erni »

Hi Steve

I also work on a logger, but only with the temperature and during 5 minutes

regards

Stefan

There are several versions SHT4x
Snag_1f707c2b.png
Snag_1f707c2b.png (29.52 KiB) Viewed 3940 times
A very good version is on this board
https://www.digikey.ch/de/products/deta ... 5/17831054
Snag_1f6b9c10.png
Snag_1f6b9c10.png (143.34 KiB) Viewed 3940 times

Alternatively:
still very good the SHT30 and practical in the case
https://shop.m5stack.com/products/env-i ... 30-qmp6988
Snag_1f6d5326.png
Snag_1f6d5326.png (138.55 KiB) Viewed 3940 times
There are more manufacturers of Board with SHT4x or SHT3x...

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

Re: How to save a component

Post by stefan.erni »

Hi Martin

I have found two ways to get the components.
It seems that both ways lead to the same components.

It is a great help for me, to see how the components work and how I can use them to build new ones.
But how do I know I have the latest version?

regards

Stefan

Link via wiki:
https://www.flowcode.co.uk/wiki/index.p ... Components
Link via help:
https://www.flowcode.co.uk/components/?p=coa

steve001
Valued Contributor
Posts: 185
Joined: Wed Jan 13, 2021 7:15 pm
Has thanked: 81 times
Been thanked: 30 times

Re: How to save a component

Post by steve001 »

hi Stefan,

Thank you.

I am looking at the 4x series too. Mainly the 45, do you have a way of checking accurately the temperature ?

Data sheet here if anyone else interested:

https://sensirion.com/media/documents/3 ... HT4x_1.pdf

I might have to ask nicely see if we can get a module, and plot it against what the chamber says on a slow ramp.


Steve

Post Reply