Now that we have install and assemble the controller here is a little project. we are going to build a thermometer.

Parts list

1. Arduino

1. I2C LCD

1. DHT11 Temp Sensor

1. 1k Resistor

7. Jumper wires


Step 1:

Connecting the LCD is very simple

LCD                 Arduino

5VCD               5VCD

GND                 GND

SDA                  PIN 20 (SDA on MEGA)

SCL                   PIN 21 (SCL on Mega)

Now the DHT11

DHT 11              Arduino

PIN 1                 5VCD

PIN2                  PIN 2

PIN 3                 N/A ( not used)

PIN 4                 GND

note: you can use a pull up resitor on PIN 2, but not necessary. Also you will need to install the library for the DHT11.


<p>Had to modify it for my LCD: </p><p>//I2C Controller</p><p>#define I2C_ADDR 0x3F // Define I2C Address for controller</p><p>#define BACKLIGHT_PIN 3</p><p>#define En_pin 2</p><p>#define Rw_pin 1</p><p>#define Rs_pin 0</p><p>#define D4_pin 4</p><p>#define D5_pin 5</p><p>#define D6_pin 6</p><p>#define D7_pin 7</p><p>#define LED_OFF 1</p><p>#define LED_ON 0</p>
<p>I couldn't make the library works, any help please? </p>
<p>this should help https://arduino-info.wikispaces.com/LCD-Blue-I2C</p>
<p>very thanks works after change somethings but it's works and i understand a little more how wire sensors </p>
<p>Very nice work. Thank you for taking the time to put this Ible together.</p>
<p>use </p><p>lcd.print((char)223); //degree sign<br> lcd.print(&quot;F&quot;); instead of &quot;oF&quot; for degree F ;)</p>

About This Instructable




Bio: Master Diesel Tech, in California. I love electronics and everything science .
More by verdelj:LED Video Array (the Easy Way) How to write a library the easy way Bootloading ATmega328 with Arduino Mega2560 
Add instructable to: