Arduino - Temp and Humidity DHT11 + LCD 1602A - KY-015 Sensor

2,297

6

4

Posted

Introduction: Arduino - Temp and Humidity DHT11 + LCD 1602A - KY-015 Sensor

Hello world! Today i made another example for one of the bunch of sensor that i have.

This time i made a simple weather station with the DHT11 (ky-015) and the LCD 1602A.

Note!

If you are using a I2C on the LCD screen i already set the lines in the CODE for you.

Just follow the steps in the Code to make it work with a I2C, make sure you set the Right I2C address in the code.

Here are the most common I2C addresses.

i2C Addresses:

PCF8574 = 0x20,

PCF8574A = 0x38,

PCF8574AT = 0x3F

Check the following step for the Schematic Code and Parts list!

Step 1: Schematic Code & Parts List.

Parts List.

  1. Arduino Uno, I used a RobotDyn Uno which has 7 analog pins instead of 5.
  2. Potentiometer 10k
  3. KY-015 dht11
  4. LCD 1602A (You do not need a I2C on it, by default the code is without I2C)
  5. set of Jumper wires MM/FF/MF.

Good luck!

Share

Recommendations

  • Epilog Challenge 9

    Epilog Challenge 9
  • First Time Author Contest 2018

    First Time Author Contest 2018
  • Paper Contest 2018

    Paper Contest 2018
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

3 Comments

Not sure if anyone still monitors this, but I keep getting errors....any idea how to fix it?

Arduino: 1.8.2 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Users\trapt\Documents\Arduino\libraries\Adafruit_CircuitPlayground\utility\Adafruit_CPlay_Mic.cpp: In member function 'int Adafruit_CPlay_Mic::peak(uint16_t)':

C:\Users\trapt\Documents\Arduino\libraries\Adafruit_CircuitPlayground\utility\Adafruit_CPlay_Mic.cpp:27:37: error: 'analogPinToChannel' was not declared in this scope

channel = analogPinToChannel(4); // Pin A4 to ADC channel

^

C:\Users\trapt\Documents\Arduino\libraries\Adafruit_CircuitPlayground\utility\Adafruit_CPlay_Mic.cpp: In member function 'void Adafruit_CPlay_Mic::capture(int16_t*, uint8_t)':

C:\Users\trapt\Documents\Arduino\libraries\Adafruit_CircuitPlayground\utility\Adafruit_CPlay_Mic.cpp:84:37: error: 'analogPinToChannel' was not declared in this scope

channel = analogPinToChannel(4); // Pin A4 to ADC channel

^

Multiple libraries were found for "Adafruit_Sensor.h"

Used: C:\Users\trapt\Documents\Arduino\libraries\Adafruit_CircuitPlayground

Not used: C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground

Not used: C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground

Not used: C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground

Not used: C:\Program Files (x86)\Arduino\libraries\Adafruit_CircuitPlayground

exit status 1

Error compiling for board Arduino/Genuino Uno.

This report would have more information with

"Show verbose output during compilation"

option enabled in File -> Preferences.

Did you figure it out?

There was a little mistake in the Schematic. I fixed it.