DS18b20 don' work

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
JakobRasmussen
Flowcode V4 User
Posts: 3
Joined: Sun Dec 18, 2011 11:47 am

DS18b20 don' work

Post by JakobRasmussen »

Hello.
I can not get a DS18b20 singel to work. I've tried with many examples from FC4 forums.
The display shows all kinds of things, just not what it should. There is no reaction when the temperature rises. I remembered 4.7 k resistor. I've tried with other DS18B20 and microcontrollers.
To be sure that my hardware, and the installation of FC5 is okay
Is there anyone who will make program, and upload the FCF-file + the corresponding hex file, to this forums.
Then I upload the hex file to my controller in a different way.
You must be sure that it works!
Sensor DS18b20 C
Micro Controllers must be 16F88, 16F690 or 16F877A.
Clock frequency must be internal.
LCD board is a standard.

Best regards
JakobRasmussen.

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

Re: DS18b20 don' work

Post by kersing »

Have you made sure to use ds18B20 example code and not ds18S20 code? The two devices are not the same from a code point of view. (Examples for the ds1820 will not work as that device is equivalent to the ds18s20 with regards to code)
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 116 times
Been thanked: 113 times
Contact:

Re: DS18b20 don' work

Post by STibor »

8MHz clock ds18b20 the necessary work.

JakobRasmussen
Flowcode V4 User
Posts: 3
Joined: Sun Dec 18, 2011 11:47 am

Re: DS18b20 don't work

Post by JakobRasmussen »

Thank Kersing and Stibor. I have no DS18S20, but I have DS1820 and DS18B20.
I changed the clock speed to 8 Mhz, and it helped. http://www.matrixmultimedia.com/mmforum ... 29&t=10125#
I do not think I've read here in this forums that DS18(x)20 only could operate at 8 MHz. Maybe FC support will explain whether it is right.
Should all "one-wire" running 8 Mhz?
My next project is to communicate with "Real Clock" and 16F690.
I've attached my FCF-file "It is a Flow Code 5" with the comment.
Attachments
1. Single OneWire_DS18B20_ 16F690.fcf
(11.94 KiB) Downloaded 350 times

Post Reply