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.
DS18B20 or 1-wire issue
-
- Posts: 18
- http://meble-kuchenne.info.pl
- Joined: Wed Feb 08, 2023 3:33 pm
DS18B20 or 1-wire issue
- Attachments
-
- 2024-12-24_180657.png (137.79 KiB) Viewed 3077 times
-
- 2024-12-24_175402.png (93.42 KiB) Viewed 3077 times
Re: DS18B20 or 1-wire issue
I TRY THE SAME CODE WITH ARDUINO AND I HAVE THE SAME PROBLEM!!!
RETURN IS 0
RETURN IS 0
-
- 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
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?
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
-
- 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
Hello.
I have just tried DS18B20 on the Uno and 18F18877 (running with internal osc at 32MHz) and no issues at all. 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.
I have just tried DS18B20 on the Uno and 18F18877 (running with internal osc at 32MHz) and no issues at all. 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
Re: DS18B20 or 1-wire issue
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
Can you post the flowcode file Please..
I am doing something wrong and i don't know what.
Thank you again
-
- 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
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.
Changed number of devices from 2 to 1.
if that don't work for you, I will upload my version.
Martin
Re: DS18B20 or 1-wire issue
I still have the same issue.
At simultion works ok.
But in real life not.
Can you please check it
Thank you once again
At simultion works ok.
But in real life not.
Can you please check it
Thank you once again