Site icon Circuit Ideas for You

Arduino Based Coin Value Identifier Circuit

This Arduino Based Coin Value Identifier Circuit is a simple coin sorting machine.

It can detect and sort 2 Rs, 5 Rs, and 10 Rs coins.

Each coin type is sensed by different IR sensors.

The Arduino reads which sensor is triggered and shows value on LCD.

This project is useful for small vending machines and coin counters.

Circuit Coding:

#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:

Parts List:

ComponentQuantity
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.

Arduino checks which sensor pin is HIGH.

It adds the coin value to total amount.

It then shows total amount on LCD.

Each sensor is placed at different slot size to detect specific coin size.

The LCD updates every time coin detected.

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:

This is simple Arduino Based Coin Value Identifier Circuit for sorting coins.

It counts and shows value of each coin.

It is useful for small shops and coin operated systems.

We can also add motor and coin tray to make full automatic sorting machine.

References:

Arduino-Uno-based automated coin-counting machine

Exit mobile version