Giter Site home page Giter Site logo

dht22-msp430fr5969's Introduction

DHT22-MSP430FR5969

Interfacing DHT22 with MSP430FR5969

This project interfaces Temperature and Humidity Sensor Pro(DHT22) with MSP430FR5969 MCU.

Working: Function getTemperatureAndHumidity() will trigger DHT22 and will read Temperature and Humidity. After reading them, they will be converted and stored in "temperatureAndHumidityBuffer" string.

The system enters LPM3 and WDT will wake the system up every 16 seconds. System will take value and will go to sleep again.

Reading Temperature and Humidity:

  1. Trigger sensor by sending 40µSeconds low pulse followed by 40µSeconds High pulse. Configure the pin as input and select raising ede interrupt
  2. Ignore the first two transitions since those transitions arent related to Temperature or Humidity
  3. Start Timer(TimerB) on raising edges and stop it on Falling Edge. Count the number of µSeconds elapsed
  4. If the pulse is high for >30µSec, then consider the bit as 1 or consider it as 0
  5. Put the MCU in sleep as long as possible.
  6. If you prefer the Fahrenheit scale, please make FAHRENHEIT flag in mainApp.h to true.

In this project, TimerB has been configured to tick once every 10µSeconds. So, if the pulsewidth is 5, it means that the pulse is high for around 50 µSeconds

dht22-msp430fr5969's People

Contributors

tejachintalapati avatar

Watchers

James Cloos avatar  avatar

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.