38. System for Measurement Unit Configuration

The task is to create a unit preference management system using a microcontroller, where the device allows users to select their preferred measurement units for various parameters such as Temperature, Distance, Weight, and Volume through a serial terminal (e.g., PuTTY or Arduino IDE).

Requirements

  • The system should display the currently saved preferences on startup (e.g., Temperature – Celsius, Distance - Kilometers).
  • It should prompt the user to set or change unit preferences via the serial terminal.
  • The selected preferences must be saved in EEPROM, ensuring they are retained even after power loss or reset.
  • The user should also have the option to restore factory default settings when desired.

Why Use EEPROM?

EEPROM (Electrically Erasable Programmable Read-Only Memory) is a form of non-volatile memory that retains stored data even when power is turned off.
It is ideal for this application as it allows the system to store and recall user preferences reliably across restarts, ensuring a consistent user experience.

This task can be implemented on the following microcontrollers

  • ESP32
  • Arduino UNO

Submit Your Solution

Note: Once submitted, your solution goes public, helping others learn from your approach!