Automatic re-set PIC timer for crime prevention buzzer
The crime prevention bell device that I produced about 20 years ago works still in the active service. It worked many times to make the thief not operate well and not go into it.
Production of automatic re-set timer for crime prevention buzzer that uses PIC12F629
The bell keeps ringing generally though the bell rings as for the crime prevention buzzer when the thief was about to enter. With this, after the fixed time, it is stopped because surroundings are troubled you and it is inconvenient. In addition, to operate even by degrees how many after it stops, the crime prevention buzzer is set again.
However, because the timer had not been found to be suitable at the production this time, multi range timer ATC12112 of National was adjusted to five minutes of the turning on mode and it used it.
Recently Because it had come to be able to use the PIC microcomputer, the timer of this ATC12112 was replaced with PIC12F629. It introduces it because it easily made it to good.
Manufacturing method of automatic re-set timer for crime prevention buzzer
Schematic diagram of automatic re-set timer for crime prevention buzzer
Operation and notes of circuit
- The schematic diagram displays only an alternative part of multi range timer ATC12112 of National. Please see the page of the design and the production of the crime prevention bell device about the entire circuit.
- The seventh terminals (similar below the terminal number ATC12112) are connected with the power supply of +12V with the schematic diagram above. The eighth terminals are connected with the power supply side of the relay for the crime prevention buzzer. The first terminal is connected with the power supply side of +12V of the warning bell.
- The relay for the crime prevention buzzer is turned off if the thief enters and warning rings, the 1st 12V hangs in the terminal, the voltage of about 5V hangs in PIC12F629 in the constant voltage circuit of R1 and D1, and PIC starts.
- The pin is the fourth input terminal of PIC for the switch of the time of the timer. It is three seconds in L of five minutes in H. It is for the test for three seconds.
- When the time of the timer passes, the fifth output of the pin of PIC becomes H from L. Therefore, Q2 and Q1 are turned on. And, it starts multiplying +12V from the terminal to the 8th relay for the crime prevention buzzer again and the relay being turned on. The relay is turned on if all doors are closed at this time and the crime prevention buzzer is set again.
- At this time, the relay keeps ringing as for the bell until the door closes as turning off if the door is open.
- 1000μF of C3 grips the key whether this operation goes well. The power supply of PIC has operated during the moment in the power supply only from the capacitor of C3 because 12 firstV of the terminal is 0V when it starts turning on the relay for the crime prevention buzzer in a word.
- If hfe is 100 because the collector current of Q2 is about 2.5mA, the current of the base is turned on by about about 25μA though there may not be 10kΩ of R5 by you because a recent transistor is efficient. If reliability is valued, you will put it.
- Please install the fourth capacitors C1 of PIC12F629 in pin (GP3). It malfunctions easily because of the noise such as feeling after the terminal directly by the hand if the capacitor is not installed in the input terminal of PIC.
- The pin is not good at the fourth internal pull-ups of PIC in the input terminal (It is not possible to set it to the output). When it is a pull-up, an external pull-up resistor is needed without fail.
- The fourth pins become in the timer for five minutes in H and it becomes a timer by L for three seconds about PIC. This doesn't care about any voltage when operating only by checking it when starting.
- Please set to all the outputs and give other terminals of PIC not used to me as opening.
- Watchdog timer (WDT) is not used. It is not necessary because it is reset that it uses it when the program stops and moves from the beginning.
- The temporal precision becomes the accuracy of the internal clock of PIC. Because it was an error margin of three seconds, the plus will become the error margin of about 1% in five minutes in the thing that I produced. I think it is quite unquestionable in this extent in this timer.
Program of assembler of crime prevention bell automatic operation re-set timer
Program of assembler of crime prevention bell timer
It is an assembler of crime prevention bell automatic operation re-set timer that I made program. Please the editor must make the file name bell_timer.asm etc. reading the program part, preserve, and use it.