A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/milesburton/Arduino-Temperature-Control-Library.git below:

milesburton/Arduino-Temperature-Control-Library: 🌡️ Arduino library for interfacing with Maxim temperature sensors like DS18B20, DS18S20, and MAX31850. 🔌 Supports multiple sensors, ⚡ asynchronous operation, and 🎯 configurable resolution for precise temperature monitoring.

🌡️ Arduino Temperature Control Library

A robust and feature-complete Arduino library for Maxim Temperature Integrated Circuits.

Using Arduino IDE Library Manager (Recommended)
  1. Open Arduino IDE
  2. Go to Tools > Manage Libraries...
  3. Search for "DallasTemperature"
  4. Click Install
  5. Also install the required "OneWire" library by Paul Stoffregen using the same method
  1. Download the latest release from GitHub releases
  2. In Arduino IDE, go to Sketch > Include Library > Add .ZIP Library...
  3. Select the downloaded ZIP file
  4. Repeat steps 1-3 for the required "OneWire" library
  1. Hardware Setup

  2. Code Example

    #include <OneWire.h>
    #include <DallasTemperature.h>
    
    // Data wire is connected to GPIO 4
    #define ONE_WIRE_BUS 4
    
    OneWire oneWire(ONE_WIRE_BUS);
    DallasTemperature sensors(&oneWire);
    
    void setup(void) {
      Serial.begin(9600);
      sensors.begin();
    }
    
    void loop(void) { 
       sensors.requestTemperatures(); 
       
       delay(750); 
       
       float tempC = sensors.getTempCByIndex(0);
       Serial.print("Temperature: ");
       Serial.print(tempC);
       Serial.println("°C");
       delay(1000);
    }

You can slim down the code by defining the following at the top of DallasTemperature.h:

#define REQUIRESNEW      // Use if you want to minimise code size
#define REQUIRESALARMS   // Use if you need alarm functionality
📚 Additional Documentation

Visit our Wiki for detailed documentation.

If you want to contribute to the library development:

The project includes a development container configuration for VS Code that provides a consistent development environment.

  1. Prerequisites

  2. Development Commands Within the dev container, use:

    Note: Currently compiling against arduino:avr:uno environment

MIT License | Copyright (c) 2025 Miles Burton

Full license text available in LICENSE file.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4