All explorations
Exploration

Embedded · STM32 · Sensors

Connected wine cellar

STM32 prototype measuring temperature and humidity for a wine cellar, with LCD display.

Status
Academic project, done in pairs
Stack
C · STM32L476G-DISCO · STM32CubeIDE · STM32CubeMX · DHT22 · GPIO · Timer · LCD · joystick · 3D modeling

01

Context

Project carried out as part of an introductory lab on the STM32L476G-DISCO board. The chosen application monitors the conditions of a wine cellar: measuring temperature and humidity, then displaying the values on the board’s LCD screen.

  • Measure temperature
  • Measure humidity
  • Display the values on the LCD screen
  • Switch between several display modes using the joystick

02

Hardware and integration

The prototype is built around an STM32L476G-DISCO board paired with a DHT22 sensor, the board’s built-in LCD screen, and its joystick as user input. The DHT22 is connected to a dedicated GPIO pin; a timer produces the delays needed to read it.

STM32L476G-DISCO prototype connected to the DHT22 sensor, with temperature and humidity shown on the LCD screen.
STM32 prototype with DHT22 sensor and on-board display of the readings.

03

Operation

The system periodically reads the DHT22’s measurements. The joystick’s center button lets the user manually change the display mode.

  • Temperature in Celsius
  • Temperature in Fahrenheit
  • Relative humidity

04

Embedded development

The project was set up in STM32CubeIDE / STM32CubeMX: clock and GPIO configuration, a timer for micro-delays, DHT22 sensor reading, joystick handling, and LCD display, all brought together in the main loop.

05

Enclosure

An exploratory 3D model proposes a possible way to integrate the board, screen, and sensor into a dedicated enclosure. It is not an industrialized product.

3D model render of an enclosure meant to house the STM32 board, LCD screen, and DHT22 sensor.
Proposed enclosure to house the board, display, and sensor.

06

Limits

The project remains a short academic prototype.

  • No long-term storage of measurements
  • No Bluetooth connectivity
  • No remote alert system
  • No mobile app
  • No additional sensors

Back

All explorations