Project at Tha Luang Cement Thai Anusorn Technical College (2017)
- Arduino board
- I2C LCD display (20x4)
- Four push buttons
- Jumper wires
- 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
- C1 button to pin 2
- C2 button to pin 3
- C5 button to pin 4
- C10 button to pin 5
- 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.
This code is licensed under the MIT License. See the LICENSE file for details.