Lcd-Meter

Measuring temperature and humidity featuring LC display and webserver upload using Arduino with Ethernet shield, LCD and realtime clock
ORIGINAL POST
By island2000dk
components
details

UCC_APRIL_22.PNG

ABOUT THIS PROJECT

Arduino project – measuring temperature and humidity featuring LC display and simple webserver upload

This project consists of two parts: an Arduino-based module to measure temperature and humidity and sending these data to a webserver, plus a simple server-side php webpage to display and archive the measurements.

Components used: The Lcd-Meter project uses an Arduino UNO or similar, together with an Ethernet shield (W5100 type), a DHT22 temperature/humidity sensor, a DS3231 realtime clock module, and a 16×2 LCD module. The latter two are connected by I2C, while the Ethernet module uses SPI and the DHT22 sensor is connected via 1-wire protocol.

Software: On the Arduino side the project implements mostly standard procedures to read from the sensor and realtime clock, output to the LCD and to create a simple web client in order to deliver the data to the webserver via HTTP GET requests. The Arduino code makes use of the libraries Wire.h, LiquidCrystal_I2C.h, DS3231.h, DHT.h, SPI.h, and Ethernet.h. On the server side the data are received by sensor.php and written into.csv files. The system is desgined for simple use and therefore does not implement a database. Data can be viewed by navigating to index.php on the webserver. A few settings are available in settings.php and formatting is mostly specified in the style.css file.

A demonstration website – which can also be used for initial test-driving when you have assembled your own device – is available here: https://mackrug.de/lcdmeter

Hardware setup is easy: Attach the Ethernet shield to the Arduino board, and wire all modules with +5V and GND. The I2C data wires from RTC and LCD modules are connected to pins A4 (SDA) and A5 (SCL). In addition, the sensor data pin is connected to Arduino pin 2, and a 10K resistor is needed as pull-up between this pin and +5V. Two buttons are optionally connected between Arduino pins 6 and 7 to GND.

The full project documentation and program code (both for Arduino and php-scripts for webserver side) is available on github.

UCC_APRIL_22.PNG

ABOUT THIS PROJECT

Arduino project – measuring temperature and humidity featuring LC display and simple webserver upload

This project consists of two parts: an Arduino-based module to measure temperature and humidity and sending these data to a webserver, plus a simple server-side php webpage to display and archive the measurements.

Components used: The Lcd-Meter project uses an Arduino UNO or similar, together with an Ethernet shield (W5100 type), a DHT22 temperature/humidity sensor, a DS3231 realtime clock module, and a 16×2 LCD module. The latter two are connected by I2C, while the Ethernet module uses SPI and the DHT22 sensor is connected via 1-wire protocol.

Software: On the Arduino side the project implements mostly standard procedures to read from the sensor and realtime clock, output to the LCD and to create a simple web client in order to deliver the data to the webserver via HTTP GET requests. The Arduino code makes use of the libraries Wire.h, LiquidCrystal_I2C.h, DS3231.h, DHT.h, SPI.h, and Ethernet.h. On the server side the data are received by sensor.php and written into.csv files. The system is desgined for simple use and therefore does not implement a database. Data can be viewed by navigating to index.php on the webserver. A few settings are available in settings.php and formatting is mostly specified in the style.css file.

A demonstration website – which can also be used for initial test-driving when you have assembled your own device – is available here: https://mackrug.de/lcdmeter

Hardware setup is easy: Attach the Ethernet shield to the Arduino board, and wire all modules with +5V and GND. The I2C data wires from RTC and LCD modules are connected to pins A4 (SDA) and A5 (SCL). In addition, the sensor data pin is connected to Arduino pin 2, and a 10K resistor is needed as pull-up between this pin and +5V. Two buttons are optionally connected between Arduino pins 6 and 7 to GND.

The full project documentation and program code (both for Arduino and php-scripts for webserver side) is available on github.

documents
Code
Lcd-Meter code for Arduino (and php on webserver)
Schematics
Lcd-Meter wiring diagram

COMMENTS

Please Login to comment
  Subscribe  
Notify of
POSTED BY
TAGS