imrehorvath / HomeDHT

A clean and lean DHT22 web application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HomeDHT: A clean and lean DHT22 web application

HW

You need a DHT22 sensor, a 10k pull up resistor, wires, solder, connector pins and heat shrink tube for this project.

Sketch

  1. Copy the content under the Sketch/ folder into your Arduino sketch folder.

  2. Launch the Arduino IDE.

  3. If it's not installed already, install the DHT sensor library by Adafruit using the Library Manager.

  4. Upload the sketch to your Yún.

HW hookup

  1. Make sure the pull up is in place.

  2. Connect the data line of the DHT22 to Pin 2 on the Yún.

  3. Connect the Vcc and GND leads of the DHT22 to the 5V and GND female header connectors on the Yún respectively.

Web application

  1. If the SD card is not setup yet, you may want to read this description first. Extending the disk space on your Yún

  2. Copy the content under Web/ to /mnt/sda1/arduino/www/HomeDHT/ on your Yún.

Usage

You can navigate to http://arduino.local/sd/HomeDHT/ to see the readings on your local network with your smartphone, tablet or desktop computer.

HomeDHT sensor readings screenshot

Arduino Yún hooked up with the DHT22

(c) Imre Horvath 2017

About

A clean and lean DHT22 web application


Languages

Language:HTML 55.3%Language:Arduino 44.7%