Giter Site home page Giter Site logo

avr-dht11's Introduction

AVR-DHT11

AVR code to interface with the DHT11 temperature and relative humidity sensors.

This code is written for Attiny85 @8Mhz, but it shouldn't take more than a few seconds to make it work with any other Atmel AVR chip. Just change the clock speed in the header file and possibly the prescalers to match the speeds described.

As of now, the code fetches the data from the sensor and stores the 4 bytes in an array. According to the DHT11 protocol, the zeroth byte [0] is the integral part of the humidity, the first byte [1] is the decimal part of the humidity, the second byte [2] is the integral part of the temperature and the last byte [3] is the decimal part of the temperature. Note however that the datasheets for the DHT11 sensor also state that the resolution of the sensor is 1, so I'm not sure whether the decimal bytes are actually ever used.

Blog post: http://thecodeinn.blogspot.co.at/2014/07/reading-data-from-dht11-sensor-with-avr.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.