กลับไปหน้ารวมไฟล์
humidity-recorder-control-with-android-app-08d6d6-en.md

High-Precision Environmental Analytics with Arduino and Android

Precise humidity monitoring is critical for various environments, from server rooms and laboratories to art galleries and greenhouses. While commercial data loggers can be prohibitively expensive, this project offers an open-source, industrial-grade solution utilizing the Arduino Nano and a dedicated Android application for real-time visualization and historical data tracking.

Sophisticated Sensing and Timekeeping

The hardware stack is designed for maximum stability and accuracy:

  • SHT31 Sensor: Unlike the common DHT sensors, the SHT31 is a high-precision digital humidity and temperature sensor that operates over I2C, offering ±2% relative humidity accuracy.
  • DS3231 Real-Time Clock (RTC): To ensure data integrity, every humidity reading must be timestamped. The highly accurate DS3231 RTC maintains time even when the main power is disconnected, thanks to its integrated temperature-compensated crystal oscillator (TCXO).
  • Data Persistence: The system utilizes an external EEPROM (ZEeprom library) to store thousands of data points, ensuring no data is lost during power cycles or connectivity gaps.

The Ecosystem: Bluetooth and Android Integration

Using the HC-05 Bluetooth Module, the Humidity Recorder streams data to a custom Android dashboard.

  • Live Charting: The Android app transforms raw numbers into interactive trend lines, allowing users to spot patterns in humidity fluctuations over days or weeks.
  • Remote Control: Users can adjust recording intervals and calibrate sensor offsets directly from their smartphone.
  • Visual Feedback: On the device itself, a 4-digit 7-segment display provides an instant readout of the current humidity, with a blinking colon driven by the RTC's Square Wave (SQW) output to indicate the system is functioning correctly.

Industrial Implementation and Troubleshooting

The project emphasizes reliability through built-in diagnostic indicators via the LED_BUILTIN pin:

  1. Steady Blink: System operating normally.
  2. Short Single Blink: RTC failure detected.
  3. Short Double Blink: EEPROM communication error.
  4. Short Triple Blink: SHT31 sensor disconnected.

This level of detail makes the recorder suitable for long-term deployment in sensitive environments where data consistency is non-negotiable.

Front side.

Sensor side

BT module under the RTC

Rear side

After package, front side

After package, sensor side.

The controller(Android App)

Chart(Android App)

I need monitor humidity of a room, and the humidity recorder product is so expensive, that's why I made it, I have another Android App connect with the device, you can get humidity data from cell phone and show chart on it.

get download Android App from here:

https://play.google.com/store/apps/details?id=eyes.blue.humidityrecorder

Library:

DS3231: https://github.com/NorthernWidget/DS3231

SHT31: https://github.com/adafruit/Adafruit_SHT31

4 Digit LED https://github.com/Seeed-Studio/Grove_4Digital_Display

ZEeprom https://github.com/zoubworldArduino/ZEeprom

Streaming https://www.arduinolibraries.info/libraries/streaming

HOW HARDWARE PIN CONNECT With Arduino:

SHT-31 Arduino

SCL ------- A5

SDA ------- A6

4 Digit Display

CLK ------- A1

DIO ------- A0

DS3231

SCL ------- A5

SDA ------- A6

SQW ------- D2(INT0)

HC-05 (Software serial baud rate 38400 to Arduino)

TXD ------- D4

RXD ------- D5(connect resistance if needed).

State ------- D3(INT1)

Debug:

1. If your 4Digit LED no display or display wrong number, check the RTC or INT/SQW pin of RTC, the device blink the colon of 4 Digit LED per second, it no blink if RTC not work or INT/SQW work not correct.

2. The LED indicator(LED_BUILTIN Pin on Arduino nano) show status:

WORK FINE: ON 0.5 second per 3 second.

NO RTC: Blink 1 time shortly.

NO EEPROM: Blink 2 times shortly.

NO DHT31: Blink 3 time shortly.

ข้อมูล Frontmatter ดั้งเดิม

title: "Humidity Recorder control with Android App"
description: "A Humidity Recorder made with Arduino, control and display data with Android App, both Android and Arduino project are very stable."
author: "eyesblue"
category: ""
tags:
  - "environmental sensing"
  - "data collection"
  - "remote control"
views: 727
likes: 0
price: 2450
difficulty: "Intermediate"
components:
  - "1x SHT31"
  - "1x HC-05 Bluetooth Module"
  - "1x Arduino Nano R3"
  - "1x 7 Segment LED Display, InfoVue"
  - "1x DS3231MPMB1 Peripheral Module"
tools: []
apps:
  - "1x Controller of Arduino humidity recorder"
downloadableFiles: []
documentationLinks: []
passwordHash: "01e7d9d06e1bfa3771cf08ddd1e7851b10205a5f368a6260f406dcc2c2b78258"
encryptedPayload: "U2FsdGVkX19xksRZABHzf2EdDnNRcCLy4cnzQnFkI2Z+3uYhkn9LtCco5S1iPoTc+e7vw8NMq34jphwbXTlTHSXUeDpY2l+gw19/+vQQgmgaq45sq5O2dr5/6WXMIOhg"
seoDescription: "Build a Humidity Recorder with Arduino and Android App. Features stable control and data display for monitoring."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/humidity-recorder-control-with-android-app-08d6d6_cover.jpg"
lang: "en"