/
Real-time Clock, LCD Module, Humidity Sensor (Real Hardware)

Real-time Clock, LCD Module, Humidity Sensor (Real Hardware)

Libraries

Install the libraries from this file - RTC_LCD_DHT.zip

DS3232 Real-time Clock

  • Maintains time even when Arduino is not powered

  • Used in computers to maintain time

  • Time can be set from the Arduino

  • Uses I2C protocol

  • 4 connections

  • SDA (Serial Data) – Connect to SDA pin of Arduino (2 pins away from pin 13)

  • SCL (Serial Clock) – Connect to SCL pin of Arduino (3 pins away from pin 13)

  • VCC – 5V of Arduino

  • GND – GND of Arduino

  • You can use the SetSerial program to set the time

  • Send 2019,10,19,16,10,00 from serial monitor to set the time to 4:10pm on 19/10/2019

I2C 16×2 Character LCD Module

  • 16x2 display with backlight

  • Contrast needs to be adjusted using a screw-driver

  • Uses I2C protocol

  • 4 connections

  • SDA – SDA pin of Arduino

  • SCL – SCL pin of Arduino

  • VCC – 5V of Arduino

  • GND – GND of Arduino

  • Some modules may use a different address – use the I2Scanner program can find out

  • Can be connected in parallel to the DS3232 RTC and be operated simultaneously (the two are distinguished by their addresses)



DHT 11 Humidity Sensor

  • Gives temperature and humidity readings

  • Uses a custom (non-standard) protocol

  • Data can be up to 2 seconds old

  • 3 connections

  • DATA – Serial Data. Connect to any digital pin of Arduino

  • The supplied program is meant to use pin 12

  • Change #define DHTPIN <pin_number> if using any other pin

  • VCC – 5V of Arduino

  • GND – GND of Arduino

Related content

Arduino Introduction
Arduino Introduction
More like this
Digital Output : Getting Started
Digital Output : Getting Started
More like this
Challenges
Challenges
More like this
Digital Input
Digital Input
More like this
TinkerCad Advanced Examples
TinkerCad Advanced Examples
More like this
mBot
mBot
More like this