DS18B20 external supply ?

Go To Last Post
13 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Guys,

 

I have a question about DS18B20 external supply, when I connect DS18B20, why is the circuit short ??
I connect DQ to PC0 on atmega128....what's wrong with it ?

 

Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This question makes little sense. Stop and think for a moment what you're asking. I we were standing next to you we could probably understand, but we're not. You need to give us more informatiom - like how you've connected the ds1820 and how you're measuring it.
If there is a short circuit, sounds like something is wrong.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

A schematic or a good photo of the setup would be helpful.

 

JC

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

DocJC wrote:

A schematic or a good photo of the setup would be helpful.

 

JC

Ok I ll post schematic later on... when I tested pin 1 and 3 18b20 without it..not short.. I don t get it??

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Have you studied the DS18B20 datasheet to see how it should be connected ?

 

Does your setup match what the datasheet says?

 

Note that there are 2 ways of powering the DS18B20: either with a separate power connection, or using so-called "parasite power" - it's all detailed in the datasheet.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes I have read them....

Here's the schematic:

 

Any ideas ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Have you tried another port pin?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I will, but I've made a track for this DS18B20 on my PCB....

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Please describe again exactly what the circuit is doing, and what you expected it to do.

 

JC

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ATmega128 will read temperature information from DS18B20 via PC0.....when I try with module, it's working but when I put on PCB track, it becomes short, I don't get it ??
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think you ought to recheck the orientation of the DS on the PCB, recheck the PCB routing, and look closely for any solder bridges, etc.

 

If you remove the DS from the PCB does the micro run correctly?

 

If the DS is not installed, is there a short between the traces, when measured with a DMM, and the board not powered up?

 

JC

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes it s working without ds18b20 i can see 4k7 resistance when it s fitted
I don t put any resistors..??

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do you have an Arduino or a breadboard with which you could try that particular DS, and make sure it is still good, separate from your main PCB?

 

JC