/Coin_Counter_with_LCD_Display

This is a simple Arduino program that counts coins and displays the count on an LCD display using the I2C protocol.

Primary LanguageC++MIT LicenseMIT

Coin Counter with LCD Display

Description

This is a simple Arduino program that counts coins and displays the count on an LCD display using the I2C protocol.
Project at Tha Luang Cement Thai Anusorn Technical College (2017)

Prerequisites

  • Arduino board
  • I2C LCD display (20x4)
  • Four push buttons
  • Jumper wires

Installation

1. Connect the I2C LCD display to the Arduino board using the following connections:

  • SDA pin of the LCD display to A4 pin of the Arduino board
  • SCL pin of the LCD display to A5 pin of the Arduino board
  • VCC pin of the LCD display to 5V pin of the Arduino board
  • GND pin of the LCD display to GND pin of the Arduino board

2. Connect the push buttons to the following digital pins of the Arduino board:

  • C1 button to pin 2
  • C2 button to pin 3
  • C5 button to pin 4
  • C10 button to pin 5

3.Upload the sketch to the Arduino board using the Arduino IDE.

Usage

After uploading the sketch to the Arduino board, the program will count the number of coins inserted into each slot and display the count on the LCD display. The LCD display will show the following information:

  • Coins1 = C[number of 1-cent coins inserted]
  • Coins2 = C[number of 2-cent coins inserted]
  • Coins5 = C[number of 5-cent coins inserted]
  • Coins10= C[number of 10-cent coins inserted]

To insert coins, simply press the corresponding push button for each coin slot. The program will automatically increment the count for that coin.

License

This code is licensed under the MIT License. See the LICENSE file for details.