Algorithm

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Coin Acceptor

LCD Display

Keypad

Locker

Algorithm

1. Start
2. Input coin
3. Is 1php then time counter = 5 mins
Is 5php then time counter = 25 mins
4. Display data in LCD (00:00:00)
5. Is locker selected?
If no then back to step 2 and time counter was increased to its corresponding time according to
types of coin
If yes then,
6. The locker unlocked and ready for charging
7. Enter 4 digits pin code
8. Locker locked and the LCD clear The timer begun to countdown
9. If the user input the correct 4 digit pins into the keypad then,
The locker unlocked
10. If the timer reached 00:00:00 sec then
11. The device inside the locker will stop charging
12. Back to step 9
13. end

You might also like