DC18B20 No temperature

For general Flowcode discussion that does not belong in the other sections.
medelec35
Valued Contributor
Posts: 2486
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 796 times
Been thanked: 858 times

Re: DC18B20 No temperature

Post by medelec35 »

If you bare with, I'm modifying the DS18B20 so it should work the same as Arduino ide version.
Hopefully then you can use it for P and non P types.
You OK testing the modified component when I have finished it?
BTW the demo version on the Wiki should work for not P versions until used with modified component.
Martin

jgu1
Posts: 978
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 910 times
Been thanked: 220 times

Flowcode v11 Re: DC18B20 No temperature

Post by jgu1 »

Yes, of course! I’d be happy to test it if you make a new component, definitely. It would be great if all the different types worked. I’d better go and collect all the P models from the trash bin again, then! ;)

medelec35
Valued Contributor
Posts: 2486
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 796 times
Been thanked: 858 times

Re: DC18B20 No temperature

Post by medelec35 »

Can you let me know the exact name of the DS18B20 library and who is by and attach the ino sketch you used.
If it does not attach then just rename the extension to .txt or zip it up.
Reason being I don't have P version so need to use a normal version in parasitic mode.
I need to test it works with the sketch you used to make sure it works in that mode.
Martin

medelec35
Valued Contributor
Posts: 2486
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 796 times
Been thanked: 858 times

Flowcode v11 Re: DC18B20 No temperature

Post by medelec35 »

Unfortunately the sensors I have don't work in parasitic mode as they are not genuine.
Therefore I'm unable to test the modified component.
Browse to this location using File Explorer, it's hidden by default so just paste the link into your address bar.

Code: Select all

%ProgramData%\MatrixTSL\FlowcodeV11\Components
Replace the original files with the attached versions.
If Flowcode is already open, then you will need to reload your project.
If you run any component updates, then the fcdx you added will be overwritten.
Attachments
One_Wire.fcpx
(10.19 KiB) Downloaded 6 times
Temp_DS18B20.fcpx
(9.65 KiB) Downloaded 6 times
Martin

jgu1
Posts: 978
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 910 times
Been thanked: 220 times

Re: DC18B20 No temperature

Post by jgu1 »

Thank you Martin, I make a test later today :)

jgu1
Posts: 978
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 910 times
Been thanked: 220 times

Re: DC18B20 No temperature

Post by jgu1 »

Hi Martin!

Loking at your path I would take a backup of the old file but cant find the old file in this Lib: %ProgramData%\MatrixTSL\FlowcodeV11\FCD\PIC\ Before I copy the file into this path, is that the correct path?


Maybe I am wrong, normally it is this: c:\ProgramData\MatrixTSL\FlowcodeV11\Components

medelec35
Valued Contributor
Posts: 2486
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 796 times
Been thanked: 858 times

Re: DC18B20 No temperature

Post by medelec35 »

hi Jorgen.
Sorry was a bit tired.
I have corrected the link.
jgu1 wrote: ↑
Mon Oct 12, 2026 10:48 am
Maybe I am wrong, normally it is this: c:\ProgramData\MatrixTSL\FlowcodeV11\Components
You are correct with what you stated

Code: Select all

%ProgramData%\MatrixTSL\FlowcodeV11\Components
is the path
We use %ProgramData% as PC's set to a different language could have a different path so that will always work.
Martin

jgu1
Posts: 978
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 910 times
Been thanked: 220 times

Flowcode v11 Re: DC18B20 No temperature

Post by jgu1 »

Martin, you are a genius! It works perfectly, both with and without parasite mode, your long night has definitely not been wasted! :D

If you can, perhaps Ben or Steve could push the new component macro for DS18B20 and One_Wire to update, I guess they won’t have any effect on the other One_Wire functions.

I’m glad I didn’t throw all the other P models away after all! :lol:

Thanks again for your help, Martin! ;)
Br Jorgen

medelec35
Valued Contributor
Posts: 2486
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 796 times
Been thanked: 858 times

Re: DC18B20 No temperature

Post by medelec35 »

You're welcome and that's great!
Thanks for testing.
I have sent Ben an email about it and made the modified sources available to him.
Martin

Post Reply