Page 1 of 2

How to save a component

Posted: Tue Oct 17, 2023 12:59 pm
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

Re: How to save a component

Posted: Tue Oct 17, 2023 2:01 pm
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

Re: How to save a component

Posted: Tue Oct 17, 2023 3:16 pm
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 4201 times

Re: How to save a component

Posted: Tue Oct 17, 2023 3:41 pm
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.

Re: How to save a component

Posted: Wed Oct 18, 2023 1:40 pm
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 4174 times

Re: How to save a component

Posted: Thu Oct 19, 2023 8:27 am
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.

Re: How to save a component

Posted: Sat Oct 21, 2023 8:13 am
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

Re: How to save a component

Posted: Mon Oct 23, 2023 10:22 am
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 4100 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 4100 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 4100 times
There are more manufacturers of Board with SHT4x or SHT3x...

Re: How to save a component

Posted: Fri Oct 27, 2023 11:39 am
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

Re: How to save a component

Posted: Sun Oct 29, 2023 9:16 am
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