Site icon Circuit Ideas for You

Arduino Based Coin Value Identifier Circuit

This Arduino Based Coin Value Identifier Circuit is a simple for coin sorting machine, it can detect and sort 2 Rs, 5 Rs, and 10 Rs coins.

Different IR sensors detect each coin type and the Arduino reads the triggered sensor and displays the value on the LCD.

Also, this project is useful for small vending machines and coin counters.

Arduino Code:

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,16,2);

int sensor2 = 2;
int sensor5 = 3;
int sensor10 = 4;

int total = 0;

void setup() {
lcd.init();
lcd.backlight();
pinMode(sensor2, INPUT);
pinMode(sensor5, INPUT);
pinMode(sensor10, INPUT);
lcd.setCursor(0,0);
lcd.print("Coin Sorter");
}

void loop() {
if (digitalRead(sensor2) == HIGH) {
total += 2;
showTotal();
delay(1000);
}
if (digitalRead(sensor5) == HIGH) {
total += 5;
showTotal();
delay(1000);
}
if (digitalRead(sensor10) == HIGH) {
total += 10;
showTotal();
delay(1000);
}
}

void showTotal() {
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Total: ");
lcd.print(total);
lcd.print(" Rs");
}

Code Explanation:

Circuit Working:

Arduino Based Coin Value Identifier Circuit Diagram

Parts List:

ComponentsQuantity
Arduino UNO1
IR Sensor3
16×2 Alphanumeric LCD1
I2C Module for 16×2 (1602) LCD1

When a coin passes through a slot, it passes near a sensor, the sensor gives HIGH signal to Arduino.

Then Arduino checks which sensor pin is HIGH and it adds the coin value to total amount and then it then shows total amount on LCD.

The circuit places each sensor in a different slot size to detect specific coin sizes, and the LCD updates every time it detects a coin.

Simple ways to build structure to detect and sort three coin type:

How to Build:

To build a Arduino Based Coin Value Identifier Circuit follow the below steps for connections:

IR Sensor Connections:

I2C Module LCD Connections:

Conclusion:

Overall, this is simple Arduino Based Coin Value Identifier Circuit for sorting coins, it counts and shows value of each coin.

Moreover, it is useful for small shops and coin operated systems and we can also add motor and coin tray to make full automatic sorting machine.

Exit mobile version