Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

wookookie/DHT22

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DHT22

Try use DHT22 with Raspberry Pi 3! Tested by Raspbian Stretch (ver. Sep. 2017) and WiringPi v2.44.

How to clone

  1. Open the terminal in Raspbian.
  2. Check your Git installation.
$ sudo apt-get install git-core
  1. Enter a clone command with this repository address.
$ git clone https://github.com/ccoong7/DHT22.git

How to create an executable file

  1. When clone success, change directory to DHT22.
$ cd ~/DHT22
  1. Compile source code to generate an executable file.
$ gcc -o dht22.out dht22.c -lwiringPi
  1. Launch!
$ ./dht22.out

result

Wiring

  • Vcc 3.3V
  • Signal pin is GPIO 18 (With 5k resistor or 10k parallel)
  • 3rd pin is not used
  • GND wiring

Reference

Visit my blog and get more information. (in Korean)

Releases

No releases published

Packages

No packages published

Languages