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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Maximum and Minimum thermometer
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 7 replies
  • Subscribers 679 subscribers
  • Views 1530 views
  • Users 0 members are here
  • raspberry_pi
Related

Maximum and Minimum thermometer

Former Member
Former Member over 11 years ago


Hi to Everyone this is my very first question in the forum. I hope that I am in the right area to put my question.

I wonder if it's possible to construct a maximum and minimum thermometer using the Raspberry Pi, if so what is required as regards hard ware etc and skill level of course?

My thanks in advance.

  • Sign in to reply
  • Cancel
  • iagorubio
    0 iagorubio over 11 years ago

    If you mean a thermostat, yes it's possible.

     

    I use usually the DS1620 Maxim digital thermometer as it have thermostat but it's a bit complex.

     

    The 1-Wire DS18B20 is much easier and there is a lot of work done to make it work with raspberry.

     

    Look here for more information

    Raspberry Pi 1- Wire Digital Thermometer Sensor | Raspberry Pi Spy

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

    Many thanks for your prompt reply.

    I had in mind something that would display the maximum and minimum, with the sensor outside and the Raspberry Pi on the window sill.

    Thanks once again

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • johnbeetem
    0 johnbeetem over 11 years ago

    Here's another project using the DS18B20 1-Wire temperature sensor with RasPi: https://learn.adafruit.com/large-pi-based-thermometer-and-clock/

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Problemchild
    0 Problemchild over 11 years ago in reply to johnbeetem

    Yep follow John's idea with the Dallas 1 wire sensor this is already well supported so you will find drivers already about making your life much easier.

    You can then read the values from the sensor using say a Python program or what ever language you are experienced in

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago

    and if you want to have a small LCD display to keep the power lower then this would be relatively easy to add

     

    http://canada.newark.com/adafruit-industries/1115/blue-white-16x2-lcd-keypad-kit/dp/52W9087

    5047963.jpg

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

    I'm using the 18B20 with the Pi (with Raspbian) at the moment: very simple to interface and to use.  This bit of PHP works to get min/max readings (the 28-000.... file corresponds to the 1-bit identifier of the temperature sensor):

     

    <?php

     

    //Init sensors if necessary

    $dir=scandir("/sys/bus");

    if(!array_search("w1",$dir)){ // devices not there yet

        exec("modprobe w1-gpio");

        exec("modprobe w1-therm");

    }

     

    $device="/sys/bus/w1/devices/28-000005a1fbf8/w1_slave";

    $highest=-1000;

    $lowest=1000;

     

    while(true){

     

        $lines=explode("\n",file_get_contents($device));

        if( preg_match_all("/YES/",$lines[0],$matches) ){   // CRC is good

            if( preg_match_all("/t=(\d+)/",$lines[1],$matches) ){

                $pf = round( $matches[1][0] / 100 )/10;

                $highest = $pf>$highest? $pf:$highest;

                $lowest = $pf<$lowest? $pf:$lowest;

     

                printf("Highest = $highest, Lowest = $lowest\n");

            }

        }

        sleep(1);  //wait until next reading

     

    }

     

    ?>

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

    Many, many thanks for all your replies quite a lot to take in I'll read up on all of the links. Thanks once again

    • 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 © 2026 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