The Godfather talking
You may crack software. How about me?
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2024, 01:31:30 13:31


Login with username, password and session length


Pages: 1 [2]  All
Print
Author Topic: DS18B20 one wire communication with PIC  (Read 41377 times)
0 Members and 1 Guest are viewing this topic.
diamadiss
Junior Member
**
Offline Offline

Posts: 69

Thank You
-Given: 202
-Receive: 4



« Reply #25 on: March 13, 2013, 12:33:29 12:33 »

Hello,
I am still trying to contact with the DS18B20 but I can't. I change the time slots and I check again the example of DS18S20 on page 23 (I use the DS18B20 which has the same time slots and commands with DS18S20). Please could anyone check my code or if you have a DS18B20 connected with a PIC could you check my one wire function? Thanks.
« Last Edit: March 13, 2013, 10:25:18 22:25 by diamadiss » Logged
frasenci
Translator
Active Member
***
Offline Offline

Posts: 171

Thank You
-Given: 142
-Receive: 85


« Reply #26 on: March 13, 2013, 11:22:19 23:22 »

Hello , I am attaching code for reading temperature on DS1820

This one is from an rather old instrument I developed, still going.

It is in Proton Basic , I think it can help you

I just cut out the parts of code concerning DS1820, Setup routine and Reading routine along with the variables defined.
On the board , DS1820 Pin is pulled high with a 4k7 Ohm resistance.

Greetings
Logged
diamadiss
Junior Member
**
Offline Offline

Posts: 69

Thank You
-Given: 202
-Receive: 4



« Reply #27 on: March 13, 2013, 11:54:42 23:54 »

Unfortunatelly I don't now about basic language. Nonetheless, thanks for your reply.
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4666

Thank You
-Given: 833
-Receive: 4320


There is no evidence that I muted SoNsIvRi


« Reply #28 on: March 14, 2013, 11:47:10 11:47 »

why offer solutions when working examples, have been posted.
with a bit of input, Like reading the data sheet, and study of code posted here, he could solve the problems, only he seems to have.
 
Topic is now on second page, now starting to filling with crap.

EDIT: If you think my responce is harsh
user has record of not responding to posts, or taking advice.
see this topic...
http://www.sonsivri.to/forum/index.php?topic=26029.msg87988#msg87988
« Last Edit: March 16, 2013, 01:42:48 01:42 by pickit2 » Logged

Note: I stoped Muteing bad members OK I now put thier account in sleep mode
Catcatcat
Senior Member
****
Offline Offline

Posts: 432

Thank You
-Given: 284
-Receive: 1646



WWW
« Reply #29 on: April 13, 2013, 08:46:22 20:46 »

Thank you for the invitation pikit2.
Just want to apologize for my English, I use Google for translation.
I would like to look my option to work with a temperature sensor on the bus. I tried to carry comments for clarity.
Currently I use my program to work on the bus up to 16 sensors, it is enough for many applications. If you're interested, I'll try to translate the comments and to the library and put it on this forum.
Logged
pickit2
Moderator
Hero Member
*****
Offline Offline

Posts: 4666

Thank You
-Given: 833
-Receive: 4320


There is no evidence that I muted SoNsIvRi


« Reply #30 on: April 14, 2013, 12:49:24 00:49 »

Just want to apologize for my English, I use Google for translation.
If you're interested, I'll try to translate the comments and to the library and put it on this forum.
No problem, I would not translate comments, unless members have a problem, most users, should able to follow code.
Logged

Note: I stoped Muteing bad members OK I now put thier account in sleep mode
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2420

Thank You
-Given: 862
-Receive: 678


Top Topic Starter


« Reply #31 on: April 14, 2013, 06:23:42 06:23 »

members can use google to translate comments..
Logged
Catcatcat
Senior Member
****
Offline Offline

Posts: 432

Thank You
-Given: 284
-Receive: 1646



WWW
« Reply #32 on: April 14, 2013, 06:36:22 06:36 »

Here is my latest version of the library to work on the bus up to 16 temperature sensors
Logged
Interprog
Newbie
*
Offline Offline

Posts: 12

Thank You
-Given: 18
-Receive: 8


« Reply #33 on: April 28, 2023, 03:34:46 15:34 »

Here is my latest version of the library to work on the bus up to 16 temperature sensors
I got errors when unpacking with winrar and 7-zip, and I tried 2 browsers.
Logged
zuisti
Senior Member
****
Offline Offline

Posts: 409

Thank You
-Given: 242
-Receive: 780


« Reply #34 on: April 28, 2023, 04:52:47 16:52 »

Old attachments - like this one - were damaged when Sonsivri changed servers.

Fortunately, I found it (the original ZIP by Catcatcat) in my 2013 archives:

Logged
Catcatcat
Senior Member
****
Offline Offline

Posts: 432

Thank You
-Given: 284
-Receive: 1646



WWW
« Reply #35 on: April 28, 2023, 07:58:53 19:58 »

This is the latest version of the library. The last time I worked with DS18b20 was in 18. It theoretically allows up to 256 sensors to be connected simultaneously. I remember with 32 sensors the controller port pulled out the current.

The project used PIC24FJ128GA204.
Logged
Pages: 1 [2]  All
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC