Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino-Based Coin Counter with IR Sensors and Servo-Controlled Heat Sealer

View and Edit Project In Cirkit DesignerImage of Arduino-Based Coin Counter with IR Sensors and Servo-Controlled Heat Sealer

Circuit Documentation

Summary

This circuit is a coin counter and heat sealer system. It uses multiple IR sensors to detect different coin denominations, an Arduino UNO to process the inputs, and servos to control a door and a heat sealer. The system also includes an LCD display to show the coin count and a relay to control the heat sealer.

Component List

  1. IR Sensor

    • Description: Infrared sensor used to detect coins.
    • Pins: out, gnd, vcc
  2. Servo

    • Description: Servo motor used to control the door and heat sealer.
    • Pins: GND, VCC, PWM
  3. 5V Relay

    • Description: Relay used to control the heat sealer.
    • Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
  4. LED Filament 3V

    • Description: LED used for visual indication.
    • Pins: GND, Vcc
  5. 16x2 I2C LCD

    • Description: LCD display used to show the coin count.
    • Pins: GND, VCC, SDA, SCL
  6. 24/12V Buck Converter

    • Description: Buck converter used to step down voltage.
    • Pins: VIN+, VIN-, 5V, GND
  7. 12V Battery

    • Description: Power source for the circuit.
    • Pins: VCC, GND
  8. Electrolytic Capacitor

    • Description: Capacitor used for filtering.
    • Pins: -, +
    • Properties: Capacitance: 0.000001 Farads
  9. 2.1mm Barrel Jack with Terminal Block

    • Description: Power input connector.
    • Pins: POS, NEG
  10. 5A Fuse

    • Description: Fuse for overcurrent protection.
    • Pins: input, output
  11. Arduino UNO

    • Description: Microcontroller used to process inputs and control outputs.
    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
  12. 9V Battery

    • Description: Additional power source.
    • Pins: +, -

Wiring Details

IR Sensor

Servo

5V Relay

LED Filament 3V

16x2 I2C LCD

24/12V Buck Converter

12V Battery

Electrolytic Capacitor

2.1mm Barrel Jack with Terminal Block

5A Fuse

Arduino UNO

Code Documentation

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

// Define pins for IR sensors
#define IR_1_PIN 2   // 1 Peso coin
#define IR_2_PIN 3   // 5 Peso coin
#define IR_3_PIN 4   // 10 Peso coin
#define IR_4_PIN 5   // 4th sensor for relay and heat sealer