Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Problem in receiving data from DS18b20

Status
Not open for further replies.

saswat

Junior Member level 2
Joined
Nov 16, 2012
Messages
20
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,418
I am working on one wire protocol based temperature sensor ds18b20 which is powered by external source. First i am resetting DS18b20 and then i am sending skip ROM command ie CCh followed by 44h i.e. temperature conversion. Datasheet says that if the temperature conversion is in progress then DS18B20 will send zero else one. But in my case i am only receiving zero.


Plz help:cry:
 

Hi,

Circuit.
Scope pictures with voltage levels and timing.

Klaus
 

yes.... and also i DS18b20 is responding with zero.
 

First check if you are getting a presence pulse after the first reset and before sending the commands. It sounds like a complete communication failure.

Are you using the DS18B20 with it's own power source or in parasite power mode?
What value pull-up resistor are you using?

Brian.
 
  • Like
Reactions: saswat

    saswat

    Points: 2
    Helpful Answer Positive Rating
i have attached the circuit diagram.

Yes i am getting the presence pulse after the first reset.
I am providing external power to DS18b20 with 4.7k pullup resistor.
 

Attachments

  • DS18B20_CKT.pdf
    27.3 KB · Views: 122
  • DS18B20.pdf
    583.5 KB · Views: 118

No reason to try get any data without getting 'presents' pulse. Anyway, you didn't provided anything. That means that you don't realy need to solve you problem and we a not able to force you to do that.
 

No reason to try get any data without getting 'presents' pulse. Anyway, you didn't provided anything. That means that you don't realy need to solve you problem and we a not able to force you to do that.

i am getting the "presents" pulse from DS18B20. I have attached the circuit diagram and datasheet of DS18b20 and also code for writing and reading for DS18b20 using assembly language. I am using AT89S52 microcontroller and p3.1 as DQ pin of DS18b20

Sorry Mr Easyrider....i have attached the document but it disappeared...again i have attached the document please find it

- - - Updated - - -

In the datasheet it is mentioned that after sending 44h to DS18b20, it will respond zero if temperature conversion is taking place and one if it is completed. My question is after sending 44h what should be the status of DQ pin means i should release it or make it low.??.

- - - Updated - - -

plz help.....i am not receiving data from ds18b20...

i am getting the present pulse then i am sending cch followed by 44h for skip rom and temperature conversion (as i am providing external supply to ds18b20), but the problem is, in the datasheet it is mentioned that ds18b20 will sent "0" if the temperature coversion is in progress while "1" if the temperature conversion has completed after sending 44h to ds18b20.

What is the problem..??
 

Attachments

  • one wire.txt
    2.1 KB · Views: 66
  • DS18B20.pdf
    583.5 KB · Views: 98
  • DS18B20_CKT.pdf
    27.3 KB · Views: 106

Finally got the output.......i have done mistake in "reading" part.....thanks all
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top