April 28, 2024

Home Security System Design Based on CAN Bus

1 Introduction <br> <br> now, people are working and living environment requires not only comfortable and healthy, convenient and reliable, and more emphasis on safety and security systems use to improve the ability to resist all kinds of unexpected family situation. The current security system can be realized by means of computer technology, IC card technology, and communication technology. The application of CAN bus to the security system has played a good role in promoting the development of home intelligence. CAN bus is a widely used field bus. It supports multiple master nodes and has a complete error handling mechanism. The communication speed is fast, the transmission distance is long, and many control devices can be attached. Applying DTMF technology to security systems does not require special wiring, does not occupy radio frequency resources, and does not have electromagnetic pollution. In this paper, a new intelligent home security system based on CAN bus and DTMF technology based on AT89S52 single-chip microcomputer is designed, which improves the real-time and reliability of the original residential security system. The system can carry out real-time monitoring of the safety environment of the entire home. The scope of monitoring includes a series of unsafe factors such as indoor security, fire alarm, and gas leakage. Once the above accident occurs, the alarm system will send out corresponding alarm information, use the voice to broadcast the alarm category, and provide remote users and relevant departments with alarm voice.

2 <br> <br> Overall constitution of the system block diagram shown in Figure 1. SCM control DTMF transceiver circuit, digital voice circuit, hook control circuit. The detector can quickly and accurately monitor the abnormal condition of the house, notify the controller in time after confirmation, and then the SCM controls the telephone interface circuit to realize analog off-hook, automatically dials a pre-set telephone number to perform voice alarm and informs the management center. . When the other party responds, the alert status is automatically restored.

figure 1

3 <br> <br> hardware design system uses the main control section AT89S52 microcontroller without expanding the external memory. The watchdog circuit uses a programmable serial EEPROM-X25045. The X25045 stores data information such as the flag field, phone number, alert code, and system settings. The digital voice circuit uses a digital voice chip ISD1420. The ISD1420 in the system is only used as a basic recording and playback circuit, so all address lines are set to 0, so the starting address for playback is 0. The voice signal is picked up by the electret microphone and amplified by amplifiers inside the chip input from both ends of the MIC and the MICREF. The audio signal after the amplifier is used is connected with the talk circuit from the SP+ to send the voice signal.

3.1 The ring detection and analog pick-up hook unit system is at both ends of the telephone line and is in a monitoring state at all times, which will not affect the normal operation of the telephone. Ring detection is performed when the system receives a ring signal. The ringing signal is connected to the P3.4 port of the AT89S52 via three inverters. If no one answers after five rings, the system enters the automatic off-hook state. MCU P1.2 pin output high, transistor V501 conduction relay K1 action, the load resistance access circuit to achieve analog off-hook. After this, a current of more than 10 mA will appear on the telephone line. After the switching center detects this current, it will no longer output the ringing signal and will instead switch to the telephone. If the ringing signal does not reach the preset value and disappears, the count value of the microcontroller is cleared and the controller does not operate.

3.2 DTMF transceiver unit DTMF transceiver circuit using DTMF signal encoding / decoding chip MT8880 [5] chip, the microcontroller through the DTMF transceiver circuit to dial the phone number for telephone alarm, DTMF transceiver circuit shown in Figure 2.


figure 2

The MT8880 provides an interface to the microprocessor to control its transmit, receive and operating modes. Its receiving part adopts the single-end input, is made up of R27, R28 and C16, its input voltage gain is 1, can adjust the gain of the input signal through changing R28. Its sending part consists of R29, C17, C18, and XTAL2. Its control part consists of R30 and C19. The IRQ/CP is connected to the P3.5 pin of the microcontroller. When the MT8880 receives a valid dual tone multi-frequency signal, the microcontroller interrupts processing. The IN side of the MT8880 is connected to the QR terminal of the talk circuit TEA1062, and the TONE side of the MT8880 is connected to the DTMF side of the TEA1062.

3.3 Talk Unit The talk circuit uses a telephone-only call integrated circuit TEA1062. When sending a call, the voice signal (from the ISD1420) is input through the MIC+ pin, and the DTMF signal (from the MT8880) is input through the DTMF pin, and after being amplified by the TEA1062, is sent from the LN pin to the telephone outside line. When receiving the call, the signal passes through the cancellation side tone network, is input from the IR pin, and is amplified and then output from the pin QR. The signal is divided into two ways: one is sent to the AN IN terminal of the ISD1420 for voice recording, and the other is sent to the IN-end of the MT8880. Extract the DTMF signal.

3.4 CAN bus data transmission unit CAN bus data transmission unit consists of two parts, one part is the CAN controller, to achieve the interaction and control of the bus data, and the other part is the CAN data transceiver, to achieve data network transmission.

MCU AT89S52 achieves access to the bus by controlling the CAN controller, and is also responsible for the measurement and control of the functional unit. The CAN bus interface circuit is shown in Figure 3.


image 3

The AT89S52 accesses the CAN controller SJA1000 by means of interrupts. In order to enhance the anti-interference ability of the CAN bus node, the SJA1000 is connected to the CAN bus driver PCA82C50 through a high-speed optocoupler 6N137. The CANH and CANL pins of the PCA82C50 are each connected to a 5-resistor resistor connected to the CAN bus, which can act as a current limiter to protect the PCA82C50 from overcurrent surges.

4 <br> <br> software design software system is modular in design, includes the main program module, CAN communication module, a ringer detection module, a voice alarm module, the DTMF transceiver module, where the main program and introduces the CAN communication module design.

4.1 Main Program Design The main program mainly completes the call of each function module, detects system input, and then performs judgment processing according to the system state. Before the program performs the main loop, necessary initializations are performed, such as the MT8880, ISD1420, and SJA1000 flags. The main program flow is shown in Figure 4.


Figure 4

4.2 CAN Communication Module Design CAN communication module includes controller initialization, data receiving and sending subroutines. The SJA1000 has two states, reset mode and operating mode. The two states have different register configurations. After the parameters are set, the CPU issues a command and the SJA1000 is in a working state for normal communication. If communication fails, the CPU will put the SJA1000 back into reset mode. The receiving module is responsible for the receipt of the node message and related processing. During the receiving process, the CPU reads the data and judges the type of the data frame according to the command word for different processing. The sending module is responsible for the sending of the message. Before sending the data, the SJA1000 determines whether the sending condition is satisfied. If it is satisfied, the message frame information, the identifier, and the data to be sent are written into the buffer and can be sent. The JA1000 transceiver flow chart is shown in Figure 5.


Figure 5

5 Conclusion <br> <br> The system AT89S52 microcontroller core, without any modification to the telephone network, to achieve the maximum security home point automatic detection and voice alarm. The design uses the CAN bus structure to form the security system, which has better flexibility and expandability. At the same time, it uses the CAN bus to introduce real-time data processing and improves the reliability of the system. Can have more application and promotion value for building video intercom, intelligent community management, access control management, etc.

1. Introduction of Waste Oil Distillation Plant

Vacuum Pressure Distillation,is the new technology which can refine the tire oil , plastic oil , waste engine oil, sludge, motor oil and so on into base oil(which can be made into diesel and gasoline after processed by our catalyst). The oil quality is better than the original normal pressure distillation technology, which show on purity ,transparence, lightness .this technology will do deodorization and destinke process to the raw material oil automatically by "dry type" vacuum pressure distillation method. With the vacuum distillation technology, the distillation temperature is considerably reduced, and the oil output will higher 5%-10% compared with original normal pressure distillation technology. It makes more profits to the enterprise virtually.

 

2. Raw material which can be used

    a. Waste oil .example: waste diesel, waste oil residue etc.

    b. tire/rubber oil

    c. plastic oil

    d. crude oil

e. waste engine oil

f. waste motor oil

g. waste lube oil

h. waste transformer oil

i. underground oil

3. Models of waste Oil Distillation Plant


 4. Installation: We will be in charge of arranging our engineer to go to your place to guide the installation and train your workers how to operate the waste oil distillation plant ,and buyer will be in charge of the food, accommodation and round air tickets.

 

 5. Exporting Experience:

 America:

Brazil, Canada, Colombia, USA,

Middle East:

Dubai, Iran, Jordan, Saudi Arabia, Turkey

Europe:

Albania , Bosnia and Herzegovina

Asia:

Afghanistan, India, Malaysia, Pakistan, Philippines, South Korea, Vietnam, Myanmar

Africa:

Ghana, Mozambique, Zambia

 

Waste Oil Distillation Plant

Waste Oil Distillation Plant,Vacuum Oil Distillation,Waste Oil Short Path Distillation Plant,Oil Distillation Plant To Diesel

Shangqiu Sihai Energy Technology Co., Ltd , https://www.sihaienergy.com