摘 要
本設(shè)計(jì)是以單片機(jī)AT89C51為主控制器,通過(guò)CAN總線(xiàn)組建的通信網(wǎng)絡(luò)進(jìn)行數(shù)據(jù)傳送的火災(zāi)自動(dòng)監(jiān)控報(bào)警系統(tǒng)。
現(xiàn)場(chǎng)總線(xiàn)接口卡由CAN總線(xiàn)控制器SJA1000,總線(xiàn)驅(qū)動(dòng)器PCA82C250組成,系統(tǒng)上位機(jī)通信主要由CAN-RS232通信接口組成。RS232適配卡由轉(zhuǎn)換芯片MAX232搭建,MAX232是AXIM公司生產(chǎn)的CONTENT GOES HERE (simpl一種雙組驅(qū)動(dòng)/接收器芯片,采用此芯片接口的串行通信系統(tǒng)只需單一的+5V電源即可。
信號(hào)采集控制節(jié)點(diǎn)部分主要有溫度傳感器DS18B20和離子式煙霧探測(cè)器實(shí)現(xiàn)系統(tǒng)的數(shù)據(jù)采集,節(jié)點(diǎn)控制器選擇ATM公司生產(chǎn)的單片機(jī)AT89C51。節(jié)點(diǎn)控制器可以通過(guò)單線(xiàn)驅(qū)動(dòng)溫度傳感器和煙霧傳感器,形成復(fù)合式信號(hào)采集控制系統(tǒng)。
基于CAN總線(xiàn)的火災(zāi)自動(dòng)監(jiān)控報(bào)警系統(tǒng),設(shè)計(jì)的關(guān)鍵在于CAN總線(xiàn)與現(xiàn)場(chǎng)節(jié)點(diǎn)控制器適配卡的軟、硬件設(shè)計(jì);上位機(jī)(PC機(jī))和下位機(jī)(節(jié)點(diǎn)控制器)間CAN-RS232通信適配卡設(shè)計(jì);信號(hào)采集控制節(jié)點(diǎn)設(shè)計(jì)。
通過(guò)實(shí)際運(yùn)行表明,該系統(tǒng)具有容量大、通信距離遠(yuǎn)、數(shù)據(jù)傳輸速度快、組網(wǎng)方便等優(yōu)點(diǎn)。基于現(xiàn)場(chǎng)總線(xiàn)的火災(zāi)自動(dòng)監(jiān)控報(bào)警系統(tǒng)有著廣泛的市場(chǎng)應(yīng)用前景,是火災(zāi)探測(cè)報(bào)警技術(shù)的發(fā)展方向。
關(guān)鍵詞:CAN總線(xiàn);煙霧傳感器;溫度傳感器;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.