摘 要
本設計是以單片機AT89C51為主控制器,通過CAN總線組建的通信網絡進行數據傳送的火災自動監控報警系統。
現場總線接口卡由CAN總線控制器SJA1000,總線驅動器PCA82C250組成,系統上位機通信主要由CAN-RS232通信接口組成。RS232適配卡由轉換芯片MAX232搭建,MAX232是AXIM公司生產的CONTENT GOES HERE (simpl一種雙組驅動/接收器芯片,采用此芯片接口的串行通信系統只需單一的+5V電源即可。
信號采集控制節點部分主要有溫度傳感器DS18B20和離子式煙霧探測器實現系統的數據采集,節點控制器選擇ATM公司生產的單片機AT89C51。節點控制器可以通過單線驅動溫度傳感器和煙霧傳感器,形成復合式信號采集控制系統。
基于CAN總線的火災自動監控報警系統,設計的關鍵在于CAN總線與現場節點控制器適配卡的軟、硬件設計;上位機(PC機)和下位機(節點控制器)間CAN-RS232通信適配卡設計;信號采集控制節點設計。
通過實際運行表明,該系統具有容量大、通信距離遠、數據傳輸速度快、組網方便等優點。基于現場總線的火災自動監控報警系統有著廣泛的市場應用前景,是火災探測報警技術的發展方向。
關鍵詞:CAN總線;煙霧傳感器;溫度傳感器;AT89C51
Abstract
This design uses the monolithic integrated circuit AT89C51 as the primary controller, sets up the correspondence network through the CAN-BUS to carry on the data transfer the fire automatic monitoring alarm system.
The fieldbus connection card is composed of CAN-BUS controller SJA1000 and the bus driver PCA82C250. The up-PC communication of the system is mainly composed of CAN-RS232 communicate connection. The RS-232 adaptation card is built by the transformation chip MAX232, MAX232 is a double drivers/receivers chip made by AXIM enterprise, the serial communication system which uses this chip only needs a +5V power.
The system signal collecting node part mainly uses temperature sensor DS18B20 and ionic smog detector to realize the data collecting of the system, the node controller takes the monolithic integrated circuit AT89C51 made by ATM enterprise. The node controller may form the compound expression signal collecting system, using the single track drove temperature sensor and the smog sensor.
Taking the CAN —BUS as the foundation automatic control system, the key problem of the system are the software and hardware designs of the Fieldbus and field node controller adaptation card; the design of CAN-RS232 communication adaptation card between up-PC (PC) and down-PC (node controller);the design of the signal collecting control node.
Through the actual running, it indicates that this system has a large capacity; far communicate distance, quick data transmission, and convenient forming net. The system based on the fieldbus has a widespread market application prospect; it is the development direction of the fire automatic monitoring alarm technology.