15. EEPROM Application

There is an Arduino-based device,

It measures the Distance, Temperature & Weight in different units (measuring units). 

We need to provide the option to users to select their preferred measuring unit as follows

1. Distance: 

   - Options: Feet, Meter

2. Temperature: 

   - Options: Celsius (°C), Fahrenheit (°F), Kelvin (K)

3. Weight: 

   - Options: Pounds, Kilograms

The device will use the following default Factory Settings at the beginning:

- Distance: Meter

- Temperature: Celsius (°C)

- Weight: Kilogram

Create the following function in Arduino:

1. Measure Unit Setup Function: 

   - Prompt the user to select their preferred measurement units for all the parameters.

2. Show Measure Unit Function: 

   - Display all current Measure Unit settings as chosen by the user.

3. Reset to Factory Settings Function: 

   - Reset all measure units to the default factory settings listed above.

Implementation: Consider the device user interface over the UART (serial monitor).

 it will show the Menu with the above options as menu.

So the user can enter any option and do the intended activities.

Important Notes:

Ensure that the user settings remain intact even after the device is powered off. When the device is turned back on, it should retrieve and display the user-defined settings.

Hint:

Use EEPROM to store all parameters and user preferences, allowing them to persist after power loss.

Submit Your Solution