element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Pull-up resistor on bread board
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 10 replies
  • Answers 2 answers
  • Subscribers 402 subscribers
  • Views 886 views
  • Users 0 members are here
Related

Pull-up resistor on bread board

Former Member
Former Member over 13 years ago

Hi,

I'm new to the designing circuits.  I would like to connect two Waterproof DS18B20 Digital temperature sensors and measure the difference. http://www.adafruit.com/products/381  I understand the concept of the bread board, but I'm having trouble visualizing setting up the pullup resistor pictured here: imagehttp://www.hacktronics.com/images/arduino_ds18b20_connection.jpg

 

 

 

 

I would usually expriment with something like this on my own, but there was a waring that said if wired wrong could fry the board.....and I just got it image

 

 

Thanks in advance!

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    0 Former Member over 13 years ago

    Thanks all for the very helpful information.  I now have the board reading in too sets of data.  To test the to see if it accurate I put a sensor in a glass of ice.  I get a constant 23.45 degrees Fahrenheit.  I assumed it would be at 32 degrees.  I have to order the more equipment for the rest of the project, but right now my concern is how to calibrate the sensors.

     

     

    Thanks again all!!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dmaruska
    0 dmaruska over 13 years ago in reply to Former Member

    According to the device datasheet it is calibrated in C.  

     

    "The DS18B20 output temperature data is calibrated in degrees Celsius; for Fahrenheit applications, a lookup table or conversion routine must be used."

     

    If you hare having an error with them, I would look at your code first.

     

    Regards,

     

    Dave M.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 13 years ago in reply to dmaruska

    Hi Dave,

      The Celsius reading is -0.75 in icewater...from what I've read that is the way to calibrate for thermometer.  From what I read the DS18B20 is more accurate than most store purchase thermometers....and for this application it does not have to be bullsye accurate just close as possible.  So far so good in the project!

     

    Thanks again

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 13 years ago in reply to Former Member

    Hi Damian,

     

    According to the datasheet (http://datasheets.maxim-ic.com/en/ds/DS18B20.pdf), the accuracy should be +/- 0.5 °C.

    Melting ice has a temperature of 0 °C, so your reading should be between -0.5 and 0.5... Did both of your sensors measure -0.75?

     

    Maybe your ice water was too icey...

     

    Anyhow there is no way to recalibrate the sensor (as far as i know) but you could just add 0.75°C to your reading in your software to correct for the drift of the sensor.

     

     

    Quinten

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 13 years ago in reply to Former Member

    Hi Quinten,

    I became suspicious about the accuracy of the sensor because I'm getting different readings from them and they are right next to each other:

     

     

     

    Getting temperatures...

    Sensor 1:  C: 27.00 F: 80.60

    Sensor 2:  C: 28.50 F: 83.30

     

    Getting temperatures...

    Sensor 1:  C: 27.00 F: 80.60

    Sensor 2:  C: 28.50 F: 83.30

     

    Getting temperatures...

    Sensor 1:  C: 27.00 F: 80.60

    Sensor 2:  C: 28.25 F: 82.85

     

    I could just bring up or down one programatically, but which?  and why are the reading differently? 

     

    It is a problem , but it is fun.

     

    Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Former Member
    0 Former Member over 13 years ago in reply to Former Member

    Hi Quinten,

    I became suspicious about the accuracy of the sensor because I'm getting different readings from them and they are right next to each other:

     

     

     

    Getting temperatures...

    Sensor 1:  C: 27.00 F: 80.60

    Sensor 2:  C: 28.50 F: 83.30

     

    Getting temperatures...

    Sensor 1:  C: 27.00 F: 80.60

    Sensor 2:  C: 28.50 F: 83.30

     

    Getting temperatures...

    Sensor 1:  C: 27.00 F: 80.60

    Sensor 2:  C: 28.25 F: 82.85

     

    I could just bring up or down one programatically, but which?  and why are the reading differently? 

     

    It is a problem , but it is fun.

     

    Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 13 years ago in reply to Former Member

    I think the best way is to put the sensor in ice water (which you know is 0°C) to "calibrate" it in software.

     

    This ofcourse means that your code will be specific for the sensors you "calibrated", not the best solution but it will give accurate temperatures as long as you keep using the same sensors...

     

    As for why they give different reading, every sensor is going to be a little different. Actually no two pieces of any electronics device are going to be exaclty the same...

    Maxim probably exaggerated a little by stating the 0.5 degree accuracy. If that were true the reading shouldn't be more dan 1°C apart.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube