DILSHAN R JAYAKODY (jayakody000lk@gmail.com) Colombo, Sri Lanka In this project we design low cost high performance programmable home security system using few LDR s as an input sensors. When above sensor(s) get triggered system may dial the user specified phone number (using build-in DTMF generator) and activate the high power audio alarm and lights. All the parameters of DTMF generator, audio alarm and light interface are programmed through the RS serial interface. Current firmware of this system presents interactive control system through the RS interface. This control system consist with the menu driven configuration options, self tests, system report generators, etc. This system also contain W (with Ω speaker) audio alarm with three selectable tone configurations, which include Police siren, Fire engine siren and Ambulance siren. Integrated Circuits This system uses a Microchip s PICFA as a main controller, LM9 as sensor interface, UM as a SYSTEM FEATURES Touch tone phone dialing interface W High powerful audio alarm sensor interface with separate sensitivity adjustments Programmed through the RS interface Build-In intelligent light ON/OFF switch tone generator and µpc00 as a speaker driver (audio amplifier). LM0, LM and LM voltage regulators are used to obtain, +V and +V respectively. Assembly The PCB design given with this article makes the assembly much simpler. As PCB contain 0V AC main lines care must be taken while assembling the circuit. As shown in the fig. all the photoelectric All the software and firmware programs are distribute under the terms of All the schematics, PCB designs and other documents are distribute under the terms of This work is licensed under the Creative Commons Attribution-ShareAlike.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/.0/ or send a letter to Creative Commons, Second Street, Suite 00, San Francisco, California, 90, USA.
DC Power Input (V) RS Serial Interface Connector Program/Run switch connector PHONE / LINE Connector Reset switch V LASER Light Supply Line Tone Selector Phone dialer enable switch Beeper Alarm Volume Control Environment Sensor Connector for Sensor Connector for Sensor Status indicator 0V Light connector Alarm Audio Output Fig. - Connectors, Jumpers and other controls of the Programmable Home Security Alarm System sensors, some of the switches and alarm speaker are connected with the circuit through the connector bars. External connectors and controls DC Power input : Attach DC power supply with V - V (A Max.) output. RS Connector : Connect RS serial cable to the port to configure the system. Do not use RS Null Modem cable with this port. PHONE/LINE connector : Attach standard RJ/RJ telephone cable connector to this port. One port is need to use with the phone line and remaining port is for the phone (and it is optional). V LASER supply : V supply line for LASER diode assembly. Connectors for Sensor / : Attach high sensitive LDRs for these ports. To get the maximum sensitivity it is recommended to use EG&G VACTEC LDRs. Status Indicator : Indicate run, program and sensor trigger modes. Reset Switch : Press this button to reset entire alarm system. This button enable only when the audible alarm get activated. It is not possible to use this function at the phone dialing/ringer states. Phone dialer enable switch : Turn on this switch to enable the phone dialing feature of this system. Environment Sensor : In-circuit LDR to detect light conditions of the environment. Alarm Volume Control : Use this to control the output power (volume) of the audible alarm. 0V Light connector : Attach 0V AC light (or related peripheral) to these terminals. Tone Selector : Configure the master alarm tone from this jumper as follows, : Fire Engine Siren : Ambulance Siren Open : Police Siren (Do not connect jumper terminal, this combination may permanently damage the entire system) Beeper : Produce beeps (e.g: at the input error, etc.)
Program / Run Switch connector : Attach switch to this header to select Program or Run mode. Alarm Audio Output : Attach Ω (W) or Ω (0W) speaker to this connector. Calibration and Testing Once everything is assembled take following steps to calibrate the system,. Remove IC, IC, IC and IC from the IC bases.. Apply V ( to V Max.) DC source to the power connector (J).. Check the voltage between Pin () and Pin of IC. It need to be.v -.V DC.. Check the voltage between and E$ jumper. It need to be.v -.V DC.. Check the voltage between Pin and Pin () of JP. It need to be.v -. V. If all the above Step, and are correct, disconnect the power supply and insert IC, IC, IC and IC in to the appropriate IC bases. Attach suitable speaker to the X and connect RS cable to the system.. Close the jumper J (Program Mode) and power on the system. Fig. - DTMF output generated by the system at the testing stages. (Test points : TRN input terminals) X connectors.. Press and execute Self Test.. Adjust R *, R * and R * preset controls, if the sensors are not trigged as expected.. Adjust R preset to control the Day and Night mode detection.. Open the Jumper J and press to return to the Run mode.. Shutdown the power supply and disconnect the RS cable.. Download and install PuTTY on to the target computer and setup the Serial connection with 900 baud rate (see Fig. ). RS Configuration settings for Programmable Alarm System Speed (baud) 900 Data bits Stop bits Parity OFF Flow control XON/XOFF 9. Press and enter into the Parameter Setup mode. Configure all the parameter options with the appropriate settings. 0. Attach phone line to the PHONE/LINE connector and fix photoelectric LDR sensors to the X and Fig. - PuTTY configuration setup for Programmable Home Security Alarm System * R - X sensor sensitivity, R - X sensor sensitivity, R - sensor gain controller (Common mode)
Parts List C, C, C9 0.µF (V) C, C 0pF C 0.µF (00V) C, C 0.µF (0V) C, C, C, C µf (0V) C, C µf (00V) C9 C0 C C0 C R, R, R, R, R9 0K R, R, R9, R0 K R 0µF (V) 000µF (V) 0µF (V) 00µF (V) 0µF (V) K R, R.K R 0K R, R0 K R, R, R 0Ω R, R, R, R, R,R, R9, R0 R, R, R, R, R, R, R, R 00Ω 0Ω R9, R0, R K R 0Ω (0. W) TRN SG RL RL S S 00Ω : 00Ω isolation transformer F/QMX Buzzer SHINMEI RSB--S Relay FANGKE JZC-F V Relay (0V A) BF-0XX - push on switch M SPDT micro switch IC PICFA IC LM9N IC MAX IC UM IC µpc00 / TDA00 IC 0TV IC TV IC LM D N00 Diode D N Diode C VE09-0 MOV T, T SC9 T SD00 Q BS0 Q IRF90 Q 0.00MHz Crystal R, R 0K (LIN) Potentiometer R 0K (LIN) Potentiometer R 0K (LIN) Potentiometer R 0K (LOG) Gang Potentiometer L. µh Inductor LDR VT90N LDR LD mm Tri-Color LED JP Pin Jumper Header J Tyco Electronics RJ-L-B J XMTA header J DCJ00 DC Jack connector X HM09RA D-SUB9 connector X, X, X, X Phoenix 0 connector SPK Ω (W) or Ω (0W) Speaker All the resistors are /W unless otherwise specified
TELEPHONE INPUT/OUTPUT SENSOR INPUTS LIGHT INPUTS SENSOR 0 SENSOR ENV. SENSOR ENV. SENSOR GAIN DC - INPUT (V - V) RJ-L-B J- RJ-L-B J- PAD R 0K LIN R 0K LIN WIREPAD,/, PAD WIREPAD,/, R R LDR DC DC0 0R K SYS. GAIN K D N D N R, R - SENSOR GAIN R 0K LIN R 0K LIN K K ALARM RESET SWITCH CB MOV 0V / A MAX. LOAD 0R 0R 0R LM9N LM9N LM9N CB0 M TPTRANS.K MODE SELECT SWITCH CB 0pF 0K R T SC9 00R 00R 00R 00R 00R 00R 00R 00R J D N00 O S R RL RL R9 C C RL C P R R0 0 H H 0MFD/0V TRN L L M ICB ICA ICD 0R 0R MFD/00V 0R MFD/00V IC - HEAT SINK REQ. IC 0TV VI VO 0.MFD/0V 0K R 0.00MHz 0pF R R R R R R R9 R0 C R S R C R J C R R R C Q R K K C 0R 0K RL RSB--S C R DAC_BUS DC K.K R DIAL MODE SWITCH 9 0 9 0 CONTROL BUS CB R S IC MCLR/THV RA0/AN0 RA/AN RA/AN RA/AN RA/T0CKI RA/AN RE0/RD/AN RE/WR/AN RE/CS/AN T SD00 +V OSC/CLKIN OSC/CLKOUT RC0/TOSO RC/TOSI RC/CCP RC/SCK RD0/PSP0 RD/PSP VSS RL JZC-F T SC9 IC - HEAT SINK REQ. IC TV VI VO VDD C C 0.MFD (V) 0.MFD/0V C K K 0K 0.MFD (V) PICFP CB K PGD/RB PGC/RB RB RB PGM/RB RB RB INT/RB0 PSP/RD PSP/RD PSP/RD PSP/RD RX/RC TX/RC SDO/RC SDI/RC RD/PSP RD/PSP R0 R9 +V K CB CB0 CB K 0MFD/V Q IRF90 CB CB CB IC - HEAT SINK REQ. +V IC - HEAT SINK REQ. 0.MFD (V) C9 0 9 0 9 R R C9 IN LM9N MFD/0V MFD/0V SERIAL BUS +V 0R R 0R K R9 K Q BS0 D NDO-0 MAX R UM 0K LOG POT ADJ IC LM 0R 9 OUT R C C R0 R ICC 0R 0 9 BEEPER F/QMX MASTER ALARM VOLUME IC UPC00 SG - IC 000MFD/V 0MFD/V + C+ C+ C- C- JP IC SEL R C0 C +V 00MFD/V MFD/0V TIN TOUT TIN TOUT ROUT RIN ROUT RIN SEL VDD C0 TONE SELECTOR - : FIRE ALARM - : AMBUL. ALARM OPEN : POLICE ALARM OUT OSC OSC V+ V- VSS C C ICP 0.MFD/00V STATUS LED MFD/0V D-SUB9-HM09RA X- X- X- X- X- 0K R 0K VCC R.uH L +V C SERIAL OUTPUT LD X- red green X- X- + R SPEAKER + ALARM AUDIO OUTPUT LASER POWER OUTPUT
S E$ N R R D NDO-0 F/QMX N N IC 00MFD/V R 0R N C0 N N K R C 0K R 0K R 0K R 0pF C E$ C9 X IC E$ E$ R9 K R K IC R X X K R R0 0K LIN R9 K R K E$ C C MFD/0V C MFD/0V C SG LDR E$ R.K J C TRN RL 0.00MHz E$ Q C 0pF 0.MFD (V) T R.K RL JZC-F PAD PAD K R Q BS0 JP IC 000MFD/V C0 C 0.MFD/00V E$0 IC E$ C9 R 0K R 0K R R9 0K IRF90 Q C L X R 0R R 0R J R 0R R0 00R R 0R R 00R R9 R 00R E$9 T SD00 R0 T K SC9 R 0R R 0R R 0R 00R R R 00R 00R R R 00R 00R R K R0 K R S E$ IC TV C IC 0TV 0.MFD (V) D N00 J A IC LM O I R 0R C LD N$ X.uH E$ N$ N$0 R 0R R 0R E$ E$ E$0 LM9N E$9 E$ E$ MAX MFD/0V MFD/0V E$ E$ PICFP D-SUB9-HM09RA 0K LIN 0K LIN 0K LIN RJ-L-B MOV RSB--S 0K LOG POT MFD/00V SC9 MFD/00V C C 0R UPC00 0MFD/V UM TPTRANS 0MFD/0V C C 0.MFD/0V 0.MFD/0V 0MFD/V 0.MFD (V)