One wire

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
Emanuel Lourenco
Posts: 63
Joined: Mon Dec 23, 2013 5:51 pm
Been thanked: 8 times
Contact:

One wire

Post by Emanuel Lourenco »

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.
Attachments
RTD_DataLogger_V1.1.fcfx
(8.63 KiB) Downloaded 221 times
tumblr_mnw7x0ktCA1so209ao1_r1_500.jpg
tumblr_mnw7x0ktCA1so209ao1_r1_500.jpg (14.36 KiB) Viewed 8323 times

kersing
Valued Contributor
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

Post by kersing »

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

Emanuel Lourenco
Posts: 63
Joined: Mon Dec 23, 2013 5:51 pm
Been thanked: 8 times
Contact:

Re: One wire

Post by Emanuel Lourenco »

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.
Yes, you're right. My circuit is good, is that the diagram is wrong.
sorry

Emanuel Lourenco
Posts: 63
Joined: Mon Dec 23, 2013 5:51 pm
Been thanked: 8 times
Contact:

Re: One wire

Post by Emanuel Lourenco »

Already got it, but now appears "no device".
Is it because?

User avatar
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

Post by Jan Lichtenbelt »

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

Emanuel Lourenco
Posts: 63
Joined: Mon Dec 23, 2013 5:51 pm
Been thanked: 8 times
Contact:

Re: One wire

Post by Emanuel Lourenco »

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
Attachments
RTD_DataLogger_V1.1.fcfx
(8.6 KiB) Downloaded 215 times

User avatar
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

Post by Jan Lichtenbelt »

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

Emanuel Lourenco
Posts: 63
Joined: Mon Dec 23, 2013 5:51 pm
Been thanked: 8 times
Contact:

Re: One wire

Post by Emanuel Lourenco »

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

User avatar
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

Post by Benj »

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.

Emanuel Lourenco
Posts: 63
Joined: Mon Dec 23, 2013 5:51 pm
Been thanked: 8 times
Contact:

Re: One wire

Post by Emanuel Lourenco »

Benj 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.
Hello Benj
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

User avatar
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

Post by Benj »

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.

kersing
Valued Contributor
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

Post by kersing »

Emanuel Lourenco wrote: My sensor is a waterproof DS18B20.
Benj wrote: Might be worth looking at the demo's here as these are known to work well in v6.
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??

(See this comparison for details on the differences)
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Emanuel Lourenco
Posts: 63
Joined: Mon Dec 23, 2013 5:51 pm
Been thanked: 8 times
Contact:

Re: One wire

Post by Emanuel Lourenco »

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

User avatar
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

Post by Benj »

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.

Emanuel Lourenco
Posts: 63
Joined: Mon Dec 23, 2013 5:51 pm
Been thanked: 8 times
Contact:

Re: One wire

Post by Emanuel Lourenco »

Benj 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.
Hello

I'll ride the parasite power circuit to see if it works. After I leave news.

greetings

Emanuel Lourenco
Posts: 63
Joined: Mon Dec 23, 2013 5:51 pm
Been thanked: 8 times
Contact:

Re: One wire

Post by Emanuel Lourenco »

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
Attachments
RTD_DataLogger_V1.2.fcfx
(9.58 KiB) Downloaded 133 times

Post Reply