One wire
Moderator: Benj
-
- Posts: 63
- Joined: Mon Dec 23, 2013 5:51 pm
- Been thanked: 8 times
- Contact:
One wire
Hi
I'm trying to read a DS1820 3.3V. But I'm not getting.
My connections are as follows and my code.
I can not understand what I have done poorly.
Lcd in "Found On" always appears.
I'm trying to read a DS1820 3.3V. But I'm not getting.
My connections are as follows and my code.
I can not understand what I have done poorly.
Lcd in "Found On" always appears.
- Attachments
-
- RTD_DataLogger_V1.1.fcfx
- (8.63 KiB) Downloaded 221 times
-
- tumblr_mnw7x0ktCA1so209ao1_r1_500.jpg (14.36 KiB) Viewed 8323 times
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: One wire
According to the MAXIM data sheet pin 1 should be GND (0V), pin 3 Vdd (3.3V), Your diagram has them the other way around.
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
-
- Posts: 63
- Joined: Mon Dec 23, 2013 5:51 pm
- Been thanked: 8 times
- Contact:
Re: One wire
Yes, you're right. My circuit is good, is that the diagram is wrong.kersing wrote:According to the MAXIM data sheet pin 1 should be GND (0V), pin 3 Vdd (3.3V), Your diagram has them the other way around.
sorry
-
- Posts: 63
- Joined: Mon Dec 23, 2013 5:51 pm
- Been thanked: 8 times
- Contact:
- Jan Lichtenbelt
- Posts: 797
- Joined: Tue Feb 17, 2009 8:35 pm
- Location: Haren GN, the Netherlands
- Has thanked: 128 times
- Been thanked: 264 times
- Contact:
Re: One wire
Dear Emanuel
In your RTD_read macro you reset the Bus. This BusReset returns 1 if the DS18 has been detected. But you forgot to give a variable for the return value.
Good luck
Jan Lichtenbelt
In your RTD_read macro you reset the Bus. This BusReset returns 1 if the DS18 has been detected. But you forgot to give a variable for the return value.
Good luck
Jan Lichtenbelt
-
- Posts: 63
- Joined: Mon Dec 23, 2013 5:51 pm
- Been thanked: 8 times
- Contact:
Re: One wire
Dear Jan Lichtenbelt
Many thanks for the help.
I think it's just what you said to do. But still appears "No Device".
I've tried a lot of way. But still not got nothing.
Acceptance is opinions
greetings
Emanuel
Many thanks for the help.
I think it's just what you said to do. But still appears "No Device".
I've tried a lot of way. But still not got nothing.
Acceptance is opinions
greetings
Emanuel
- Attachments
-
- RTD_DataLogger_V1.1.fcfx
- (8.6 KiB) Downloaded 215 times
- Jan Lichtenbelt
- Posts: 797
- Joined: Tue Feb 17, 2009 8:35 pm
- Location: Haren GN, the Netherlands
- Has thanked: 128 times
- Been thanked: 264 times
- Contact:
Re: One wire
Dear Emanuel,
I'm not a DS18 specialist. But are you sure the the scratchpad must be >0? I would recommand to skip this test. The retval of the BusReset is perhaps a better criteria to test if the device is present.
Succes
Jan
I'm not a DS18 specialist. But are you sure the the scratchpad must be >0? I would recommand to skip this test. The retval of the BusReset is perhaps a better criteria to test if the device is present.
Succes
Jan
-
- Posts: 63
- Joined: Mon Dec 23, 2013 5:51 pm
- Been thanked: 8 times
- Contact:
Re: One wire
hello
I managed to pass the test but retval. Indicating the DS18 is "0.0".
Must be hardware problem.
I found this topic.
http://www.matrixmultimedia.com/mmforum ... ne+wire+v6 # p49436
But I am not understanding what to do.
If I could help algem grateful.
greetings
I managed to pass the test but retval. Indicating the DS18 is "0.0".
Must be hardware problem.
I found this topic.
http://www.matrixmultimedia.com/mmforum ... ne+wire+v6 # p49436
But I am not understanding what to do.
If I could help algem grateful.
greetings
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: One wire
Hello,
Please check your running the latest v6 release which is currently 6.0.7 as I recently found and fixed a couple of bugs in the 1-wire component. The Help -> Check for updates menu can be used to check if your copy is up to date.
Please check your running the latest v6 release which is currently 6.0.7 as I recently found and fixed a couple of bugs in the 1-wire component. The Help -> Check for updates menu can be used to check if your copy is up to date.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 63
- Joined: Mon Dec 23, 2013 5:51 pm
- Been thanked: 8 times
- Contact:
Re: One wire
Hello BenjBenj wrote:Hello,
Please check your running the latest v6 release which is currently 6.0.7 as I recently found and fixed a couple of bugs in the 1-wire component. The Help -> Check for updates menu can be used to check if your copy is up to date.
I have version 6.0.7.
My sensor is a waterproof DS18B20.
I am not able to get to work. I've tried many ways. But I think the problem is hardware.
Greating
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: One wire
Hello,
Ok thanks,
Might be worth looking at the demo's here as these are known to work well in v6.
http://www.matrixmultimedia.com/wiki/in ... 28Comms%29
Let me know if this helps at all, if not then can you get access to a scope you can use to look at the one wire signal.
Ok thanks,
Might be worth looking at the demo's here as these are known to work well in v6.
http://www.matrixmultimedia.com/wiki/in ... 28Comms%29
Let me know if this helps at all, if not then can you get access to a scope you can use to look at the one wire signal.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: One wire
Emanuel Lourenco wrote: My sensor is a waterproof DS18B20.
Ben, that page mentions the DS18S20, DS18B20 is not 100% compatible with the DS1820 and DS18S20. The family code is different, the temperature registers are different as well. Can the One Wire component handle the DS18B20 or does it handle the DS18S20??Benj wrote: Might be worth looking at the demo's here as these are known to work well in v6.
(See this comparison for details on the differences)
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
-
- Posts: 63
- Joined: Mon Dec 23, 2013 5:51 pm
- Been thanked: 8 times
- Contact:
Re: One wire
Hi
I changed my sensor to a DS18S20 but also got no readings. May be related to what Mr. kersing said.
I'll try to do some more testing.
greetings
I changed my sensor to a DS18S20 but also got no readings. May be related to what Mr. kersing said.
I'll try to do some more testing.
greetings
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: One wire
Hello,
I'm pretty sure the component can handle both devices but the example will need to be changed slightly to scale the temperature readings correctly for the B variant. You should however get something other then 0.0 when working with the B device so this is strange.
I'm pretty sure the component can handle both devices but the example will need to be changed slightly to scale the temperature readings correctly for the B variant. You should however get something other then 0.0 when working with the B device so this is strange.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 63
- Joined: Mon Dec 23, 2013 5:51 pm
- Been thanked: 8 times
- Contact:
Re: One wire
HelloBenj wrote:Hello,
I'm pretty sure the component can handle both devices but the example will need to be changed slightly to scale the temperature readings correctly for the B variant. You should however get something other then 0.0 when working with the B device so this is strange.
I'll ride the parasite power circuit to see if it works. After I leave news.
greetings
-
- Posts: 63
- Joined: Mon Dec 23, 2013 5:51 pm
- Been thanked: 8 times
- Contact:
Re: One wire
Hello
After much headache, it was discovered that the chip configuration.
But now with my code and there is room temperature shows me the lcd 190.0.
What am I doing wrong?
greetings
After much headache, it was discovered that the chip configuration.
But now with my code and there is room temperature shows me the lcd 190.0.
What am I doing wrong?
greetings
- Attachments
-
- RTD_DataLogger_V1.2.fcfx
- (9.58 KiB) Downloaded 133 times