Yes. Upon power on the alarm is in off state (not armed) and it report the times it was trigered last time, in this case 0 on Power on.
Messages are in Spanish, sorry. I guess they are very similar in Portuguese.
The circuit only checks for a sequence. If you make a mistake, no problem, you introduce your key and command immediately again.
You should input five (5) numbers in sequence. The four(4) digits key is followed by one(1) command digit. You should introduce five valid digits in sequence to get anything done.
The power up key is: 1 2 3 4. They are four digits.
There are several commands. Each one is one digit long.
1 : the alarm is armed.
You have a time to leave the room. It means there is a time you can pass through the door switch without activating the alarm. One this is triggered you will see the count down in the display.
2: the alarm is off or disarmed
If the alarm is already triggered, this is the way to set it off.
If you just entered the room and the alarm is armed, you will have a short time to unarmed it before it is triggered using the proper key (of course). During this process you will see a count down again in the display.
3: this command is for introducing a new four digit key.
If you change it and forget it later, you can just power it off to return to the 1 2 3 4 default key.
This can be considered a flaw. I did not need it stronger. You could save it in eeprom for a stronger system requiring PIC reprograming to get to initial state.
During this process you will have ‘*’ as feedback on the screen
4: this command is for changing the time you have for leaving and entering the room, before the alarm gets triggered.
the default value is 15 seconds.
One last thing
I mentioned before that I needed to change the keys distribution from proteus to match my key circuit.
This is the mapping:
Proteus Real Circuit
So, for typing in my real circuit 1 2 3 4 1. For arming the alarm. In Proteus, this should be typed 6 5 4 9 6.
And so on.
You can change it back to get yourself trained.
SW1 is the door switch. The one with the time window. SW2 is the instant alarm switch. I used it for a motion sensor.
You can give it another try now.