DS18B20 or 1-wire issue

For general Flowcode discussion that does not belong in the other sections.
TheShadowOfTriumph
Posts: 18
http://meble-kuchenne.info.pl
Joined: Wed Feb 08, 2023 3:33 pm

Flowcode v10 DS18B20 or 1-wire issue

Post by TheShadowOfTriumph »

Hi,

DS18B20 component always return 99 or 0 (when CRC is off).
Conditions:
Electrically everything is OK, i see data on oscilloscope (but can`t read separate bits);
Trying different sensors, Dallas and UMW (same result);
Trying pins B9 and B2 (STM32F030C8T6).
Flowchart is copied from wiki example.
Attachments
2024-12-24_180657.png
2024-12-24_180657.png (137.79 KiB) Viewed 3077 times
2024-12-24_175402.png
2024-12-24_175402.png (93.42 KiB) Viewed 3077 times

Stathis
Posts: 6
Joined: Wed Jan 12, 2022 9:55 pm
Has thanked: 3 times

Re: DS18B20 or 1-wire issue

Post by Stathis »

I TRY THE SAME CODE WITH ARDUINO AND I HAVE THE SAME PROBLEM!!!
RETURN IS 0

medelec35
Matrix Staff
Posts: 2031
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 634 times
Been thanked: 684 times

Re: DS18B20 or 1-wire issue

Post by medelec35 »

Hello.
Please don't use all caps as that is perceived as shouting on forums.
I will see if I can find the issue with DS18B20.
For me to replicate your setup, what value pull-up resistor did you use?
Martin

Stathis
Posts: 6
Joined: Wed Jan 12, 2022 9:55 pm
Has thanked: 3 times

Re: DS18B20 or 1-wire issue

Post by Stathis »

Sorry for the caps.
The pull up resistor is 4k7.
Thank you.

medelec35
Matrix Staff
Posts: 2031
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 634 times
Been thanked: 684 times

Re: DS18B20 or 1-wire issue

Post by medelec35 »

Hello.
I have just tried DS18B20 on the Uno and 18F18877 (running with internal osc at 32MHz) and no issues at all.
DS18B20 Uno UART.png
DS18B20 Uno UART.png (11.06 KiB) Viewed 1648 times
For that reason, moving this topic from bugs to General, as there must be an issue with your setup.
Can you try selecting DS18B20 properties, and check that LinkTo drop down box is not blank.
If is, select One_Wire1 and recompile.
Martin

Stathis
Posts: 6
Joined: Wed Jan 12, 2022 9:55 pm
Has thanked: 3 times

Re: DS18B20 or 1-wire issue

Post by Stathis »

Thank you very much.
Can you post the flowcode file Please..
I am doing something wrong and i don't know what.
Thank you again

medelec35
Matrix Staff
Posts: 2031
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 634 times
Been thanked: 684 times

Re: DS18B20 or 1-wire issue

Post by medelec35 »

I replicated your setup by downloading the example from the wiki and changing the target device to Uno.
Changed number of devices from 2 to 1.
if that don't work for you, I will upload my version.
Martin

Stathis
Posts: 6
Joined: Wed Jan 12, 2022 9:55 pm
Has thanked: 3 times

Re: DS18B20 or 1-wire issue

Post by Stathis »

Thank you !!

medelec35
Matrix Staff
Posts: 2031
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 634 times
Been thanked: 684 times

Re: DS18B20 or 1-wire issue

Post by medelec35 »

Sorry, I have noticed I used the wrong tag. Edited for the wiki link.
Martin

Stathis
Posts: 6
Joined: Wed Jan 12, 2022 9:55 pm
Has thanked: 3 times

Re: DS18B20 or 1-wire issue

Post by Stathis »

I still have the same issue.
At simultion works ok.
But in real life not.
Can you please check it
Thank you once again
oled_temp.fcfx
(18.58 KiB) Downloaded 62 times

Post Reply