Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 26, 2023, 04:01:59 04:01


Login with username, password and session length


Pages: 1 [2]  All
Print
Author Topic: DS18B20 one wire communication with PIC  (Read 31399 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: 141
-Receive: 84


« 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: 4583

Thank You
-Given: 815
-Receive: 3895


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: 359

Thank You
-Given: 223
-Receive: 1287



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: 4583

Thank You
-Given: 815
-Receive: 3895


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: 2416

Thank You
-Given: 854
-Receive: 675


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: 359

Thank You
-Given: 223
-Receive: 1287



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