Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

For Arduino Workshops only. Not applicable for EG1311

Table of Contents

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 blue backlight
  • Contrast need to be adjust 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