Unit Convertor With Deshbot Shield Ith Lcd 16x2

by devkrishnavhora in Circuits > Arduino

33 Views, 0 Favorites, 0 Comments

Unit Convertor With Deshbot Shield Ith Lcd 16x2

WhatsApp Image 2026-08-29 at 11.24.12 AM.jpeg

In this project, we created an interactive Unit Converter using an Arduino Nano, a 16×2 LCD display, and two push buttons. The project allows the user to select different unit categories, choose a conversion type, enter a value, and view the converted result.

The two buttons are used to move forward and backward through the menu and to increase or decrease the input value. A 3-second automatic selection system is used to confirm each selection.

This project demonstrates how Arduino can be used to create an educational and interactive unit conversion system using a simple LCD menu.

Supplies

des 1.jpeg
uno.jpeg
WhatsApp Image 2026-08-25 at 12.00.19 PM.jpeg
  1. Arduino Nano
  2. 16×2 LCD Display
  3. Two Push Buttons
  4. Connecting Wires
  5. Breadboard

Connections

LCD Connections

  1. RS → A4
  2. EN → A3
  3. D4 → A2
  4. D5 → A1
  5. D6 → A0
  6. D7 → D13

Button (inbuild in Deshbot)

  1. Increase / Next Button → D10
  2. Decrease / Previous Button → D12
  3. Other side of both buttons → GND

The buttons use the Arduino INPUT_PULLUP mode, so external resistors are not required.

Working Principle

WhatsApp Image 2026-08-29 at 11.24.00 AM.jpeg
WhatsApp Image 2026-08-29 at 11.24.27 AM.jpeg
WhatsApp Image 2026-08-29 at 11.24.12 AM.jpeg
WhatsApp Image 2026-08-29 at 11.23.55 AM.jpeg

When the Arduino starts, the LCD displays the Unit Converter menu. The user first selects a conversion category using the two buttons.

The available categories are:

  1. Length
  2. Weight
  3. Temperature

The D10 button moves forward through the available options, while the D12 button moves backward.

When no button is pressed for 3 seconds, the selected category is automatically confirmed. The program then moves to the conversion type selection.

For example, in the Length category, the user can select conversions such as CM to Meter, Meter to CM, Kilometer to Meter, Kilometer to Mile, and Mile to Kilometer.

After selecting the conversion type, the user waits for 3 seconds and the selection is automatically confirmed.

Next, the user enters the value to be converted. The D10 button increases the value, while the D12 button decreases the value. When the buttons are not pressed for 3 seconds, the Arduino performs the selected conversion.

The final result is displayed on the 16×2 LCD for a few seconds. After displaying the result, the system automatically resets and returns to the main menu.

The complete working process is:

Select Category → Select Conversion → Enter Value → Show Result

Features

  1. 16×2 LCD display interface
  2. Control using only two buttons
  3. D10 button for next option or increasing value
  4. D12 button for previous option or decreasing value
  5. Automatic 3-second selection confirmation
  6. Length unit conversions
  7. Weight unit conversions
  8. Temperature conversions
  9. Automatic mathematical calculation
  10. LCD menu navigation
  11. Automatic result display
  12. Automatic reset for a new conversion

Supported Conversions

Length

  1. Centimeter to Meter
  2. Meter to Centimeter
  3. Kilometer to Meter
  4. Meter to Kilometer
  5. Kilometer to Mile
  6. Mile to Kilometer

Weight

  1. Gram to Kilogram
  2. Kilogram to Gram
  3. Kilogram to Pound
  4. Pound to Kilogram

Temperature

  1. Celsius to Fahrenheit
  2. Fahrenheit to Celsius


Coding

The Arduino program continuously reads the two buttons connected to pins D10 and D12.

The program is divided into different stages. The first stage is used to select the unit category. The second stage selects the conversion type, and the third stage is used to enter the value.

Every time a button is pressed, the 3-second timer is reset. If no button is pressed for 3 seconds, the current selection is automatically confirmed and the program moves to the next stage.

The Arduino uses different mathematical formulas depending on the selected conversion. The calculated result is then displayed on the LCD.

After showing the result for a few seconds, the Arduino resets the values and returns to the main Unit Converter menu.

Downloads

Conclusion

The Arduino Unit Converter is a simple and interactive educational project. It combines LCD interfacing, button input, menu programming, timer functions, and mathematical calculations into one embedded system.

Using only two buttons and a 3-second automatic selection system makes the project simple and easy to operate. The project can be further expanded by adding more unit categories and conversions.

This project is a useful way to learn Arduino programming while understanding user interfaces, mathematical calculations, menu systems, and basic embedded systems design.