Skip to content

sanyaswee/CashCounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cash Counting Machine

About

This is the firmware repository for the DIY Money Counting Machine. Initially it was a uni project, but I decided to improve it by separating the project architecture into generic core and board specific code, which allowed easy-porting on other boards, such as RP Pico 2W, by just writing the initialization file and wrapping the tasks.

Working principle

The user would place a stack of banknotes into the dedicated compartment. Then they would input the value of one banknote. After pressing the start button, the motor would pull the bottom banknote into a narrow slit, then, employing the gravity, the banknote would trigger the beam interrupt sensor, thus, increase the counter. If after a certain amount of time nothing triggers the sensor, the motor would stop. The front panel would feature the display, which would show the total sum along with the current value of one banknote; and a bunch of buttons, such as start, clear (set the counter and sum to 0), number inputs and preset banknote values (10/20/50/100 etc).

Hardware design

The sensor has 3 terminals: Vcc, GND and OUT. OUT is high by default, and the sensor pulls it low only if there is something on the way of the beam (e.g. banknote). The motor pulls the banknotes, the board counts them, the display shows the sum to the user, that's it

Hardware schematic

Flying banknote hits the plastic pendulum (aka mechanical flag), which unblocks the beam for a short moment, creating a rising edge that gets processed by the microcontroller.

After final assembly, the machine looks like this: Final assembly

Software design

The project source is structured in a following way:

core/...       --> The main logic, board-independent
stm32/...      --> Initialization for Nucleo U545RE_Q board (the original version of the project)
rp_pico_2w/... --> Initialization for RP Pico 2W board

Schematics

The schematics are available at board-specific directories.

Required hardware components

Device Qty
STM32 Nucleo-U545RE-Q OR Raspberry Pi Pico 2W 1
Mini Infrared Interruption Sensor Module 1
1602 LCD with Blue Backlight 3.3 V 1
DC Motor 1
L293D Motor Driver 1
18 mm Rubber Wheel 5
2x150 mm Shaft 1
2x50 mm Shaft 1
2 mm to 2 mm Coupling Hub 2
Miniature Ball Bearing (2 mm Internal Diameter) 1
4x4 Keypad 1
Button with Round Cover 3
10K Potentiometer 1
Mini Breadboard 3

Along with basic some electronic components (wires, resistors, capacitors etc.) and tools (soldering iron, glue gun etc.). The estimated cost if the project is around ~50 EUR for the STM version, and around ~35 EUR for the RP version.

Links

  1. Currency-counting machine
  2. The Rust Book
  3. Embassy
  4. Original project

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE_MIT

Stars

0 stars

Watchers

0 watching

Forks

Contributors