CN105892336A - Infrared ray relay control system - Google Patents

Infrared ray relay control system Download PDF

Info

Publication number
CN105892336A
CN105892336A CN201410764381.0A CN201410764381A CN105892336A CN 105892336 A CN105892336 A CN 105892336A CN 201410764381 A CN201410764381 A CN 201410764381A CN 105892336 A CN105892336 A CN 105892336A
Authority
CN
China
Prior art keywords
control
data
chip microcomputer
terminal
defence area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410764381.0A
Other languages
Chinese (zh)
Inventor
金佛荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201410764381.0A priority Critical patent/CN105892336A/en
Publication of CN105892336A publication Critical patent/CN105892336A/en
Pending legal-status Critical Current

Links

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The present invention discloses an infrared ray relay control system. The infrared ray relay control system comprises a PC host and a single chip microcomputer client. The PC host and the single chip microcomputer client realize the data synchronization in real time through RS232 protocol communication. The single chip microcomputer client includes the following parts: serial communication, PS2 keyboard control, infrared remote control, photoelectric sensing, pyroelectricity, temperature sensing, 12864 liquid crystal module display, buzzer alarm and 8-way switch control; the PS2 keyboard control terminal is provided with a man-machine communication module, and a user is able to control the 8-way switch at the PC terminal through a keyboard and a mouse; the PC terminal is able to receive and process the control data and defence area data from the single chip microcomputer client, and the data synchronization of the single chip microcomputer client and the PC host terminal is realized through algorithms; the PC host terminal is also able to perform the synchronization of the system clock and the display temperature data; and the PC terminal is able to discriminate the defence area and record the newest alarm time when processing the defence area data, wherein the key steps of the real-time synchronization are the data exchange and the interruption processing.

Description

Infrared ray relay control system
Technical field
The present invention relates to a kind of use STC chip microcontroller to the control of infrared ray transmitter and receiver and relay System.
Background technology
Smart Home electrical apparatus control system requires to be capable of by infrared ray or the work of radio control household electric appliances Make state.In order to improve the stability of product in design, we use STC single-chip microcomputer to complete to control part, Launch infrared control relay by remote controller, thus indirectly go to control the state of each electrical equipment.Anti-theft journal Alert part, we use pyroelectric sensor, the infrared letter of human body detected during the work of preset warning circuit Corresponding actuation of an alarm is performed after number.
Summary of the invention
Native system is made up of PC main frame and single-chip microcomputer client two large divisions, and two parts are led to by RS232 agreement News, it is achieved the function of real-time synchronization data.Single-chip microcomputer client has with the main one-tenth of lower part: serial communication, PS2 The control of Keyboard Control, infrared remote control, photoelectric sensing, pyroelectricity, temperature sensing, 12864 Liquid Crystal Modules shows, Buzzer warning, 8 way switch control;PC host side owned man-machine communication module, user also can be at PC End realizes the control of 8 way switch by keyboard and mouse;PC host side is responsible for receiving and processing from list simultaneously The control data of sheet machine client and defence area data, realize single-chip microcomputer client and PC master by certain algorithm The data syn-chronization of machine end;PC host side is also responsible for synchronizing system clock and the function of displays temperature data;PC end The function distinguishing defence area He recording the up-to-date Defence areas alarm time is had when processing defence area data;Wherein realize in real time Synchronize it is crucial that data exchange and interrupt processing.
Accompanying drawing explanation
Fig. 1 is the hardware block diagram of system
In figure: 1-infrared interface;2-temperature sensor interface;3-single-chip microcomputer;4-serial ports;5-PS2
Detailed description of the invention
Temperature sensor we use DS1820 one-wire digital thermometer, DS1820 digital thermometer with The temperature value of the form reflection device of 9 bit digital quantity.
DS1820 is sent by one-wire interface or the information of reception, therefore central microprocessor and DS1820 it Between only need a connecting line (plus ground wire).Power supply for read-write and temperature transition can be from data wire itself Obtain, it is not necessary to external power source.
Because each DS1820 has a unique sheet serial number, many DS1820 can connect simultaneously On a single bus,
Thus temperature sensor can be placed on many different places.This characteristic is in HVAC environmental Kuznets Curves, spy Survey building, instrument or the temperature of machine and the aspect such as process monitoring and control is highly useful.
DS1820 relies on a single line port communication.Under single line purt condition, it is necessary to first set up ROM operation Agreement, just can carry out memorizer and control operation.Therefore, first controller must provide following 5 ROM One of operational order: 1) reading ROM, 2) coupling ROM, 3) Search ROM, 4) skip ROM, 5) report to the police Search.The laser ROM portion of each device is operated by these orders, hangs with multiple on single bus During device, individual devices can be distinguished, how many devices or assorted can have been indicated to bus control unit simultaneously The device of model.After the complete ROM sequence of operation of successful execution, memorizer can be carried out and control operation, Controller can provide 6 memorizeies and any bar controlled in operational order.
Article one, control operational order instruction DS1820 and complete a temperature survey.Measurement result is placed on DS1820 Buffer in, can be data read-out in buffer with the storage operation order of a reading buffer content. Temperature alarming trigger TH and TL is respectively made up of an EEPROM byte.Use without to DS1820 Warning search command, these depositors can use as general purpose user memory.Can be with one TH and TL is write by storage operation order, and the reading to these depositors needs to pass through buffer. All data are all to be written and read in the preceding mode of least significant bit.The power supply that the design uses is predominantly +5V.Ringing a bell in system in this intelligence, ours is AC buzzer, due to the driving of general I/O mouth Limited in one's ability, at this, we have employed audion 9013 to drive buzzer, and matrix keyboard is also called determinant Keyboard, it is as line, the keyboard that 4 I/O lines form as alignment with 4 I/O lines.At line and On each cross point of alignment, a button is set.So in keyboard, the number of button is 4 × 4.This Plant determinant keyboard structure and can be effectively improved the utilization rate of I/O mouth in Single Chip Microcomputer (SCM) system.
First from high four output low levels of P1 mouth, low four output high level, from low four readings of P1 mouth Keyboard state.Again from low four output low levels of P1 mouth, high four output high level, from the height of P1 mouth Four are read keyboard state.Twi-read result is combined and can be obtained by the feature coding of current button. Make in aforementioned manners that we obtain the feature coding of 16 keys.

Claims (1)

1. an infrared ray relay control system, is made up of PC main frame and single-chip microcomputer client two large divisions, Two parts pass through RS232 protocol, it is achieved the function of real-time synchronization data.Single-chip microcomputer client has following The main one-tenth of part: serial communication, PS2 Keyboard Control, infrared remote control control, photoelectric sensing, pyroelectricity, temperature Sensing, 12864 Liquid Crystal Modules show, buzzer warning, 8 way switch control;The owned people of PC host side Machine AC module, user also can realize the control of 8 way switch at PC end by keyboard and mouse;PC simultaneously Host side is responsible for receiving and processing the control data from single-chip microcomputer client and defence area data, by certain Algorithm realizes the data syn-chronization of single-chip microcomputer client and PC host side;PC host side is also responsible for synchronizing system clock Function with displays temperature data;PC end distinguishes defence area and records up-to-date defence area report when processing defence area data The function of alert time;Wherein realize real-time synchronization it is crucial that data exchange and interrupt processing.
CN201410764381.0A 2014-11-27 2014-11-27 Infrared ray relay control system Pending CN105892336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410764381.0A CN105892336A (en) 2014-11-27 2014-11-27 Infrared ray relay control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410764381.0A CN105892336A (en) 2014-11-27 2014-11-27 Infrared ray relay control system

Publications (1)

Publication Number Publication Date
CN105892336A true CN105892336A (en) 2016-08-24

Family

ID=56699867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410764381.0A Pending CN105892336A (en) 2014-11-27 2014-11-27 Infrared ray relay control system

Country Status (1)

Country Link
CN (1) CN105892336A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406184A (en) * 2016-11-15 2017-02-15 江西航同电气科技有限公司 Built-in wireless communication and automatic detection and alarm relay module
CN106952434A (en) * 2017-03-02 2017-07-14 长沙开雅电子科技有限公司 A kind of SCM Based infrared voice warning system
CN108305425A (en) * 2017-01-11 2018-07-20 长沙乐昌林电子科技有限公司 A kind of infrared voice Design of Alarm System

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406184A (en) * 2016-11-15 2017-02-15 江西航同电气科技有限公司 Built-in wireless communication and automatic detection and alarm relay module
CN108305425A (en) * 2017-01-11 2018-07-20 长沙乐昌林电子科技有限公司 A kind of infrared voice Design of Alarm System
CN106952434A (en) * 2017-03-02 2017-07-14 长沙开雅电子科技有限公司 A kind of SCM Based infrared voice warning system

Similar Documents

Publication Publication Date Title
CN206523246U (en) A kind of intelligent shelf-life label
CN204453506U (en) Intelligent and safe tool cabinet
CN105571643A (en) Integrated general monitoring system for power transmission line
CN105892336A (en) Infrared ray relay control system
CN103235552A (en) RFID (radio frequency identification device) automatic identification on-line dynamic rapid weighing control system and control method thereof
CN107146063A (en) Intelligent commodity shelf system, WMS and goods exhibition management system
CN103454004A (en) Digital multi-point temperature measuring system and achieving method
CN102901571B (en) Registration mechanism-based multi-point temperature measurement control system
CN207967608U (en) Distribution terminal based on NFC function
JP2010505191A (en) Method and system for wireless communication using RFID air protocol
CN106326059B (en) A kind of embedded device automatization test system
CN203759775U (en) Double-encrypted access control system based on two-dimensional code recognition
CN108020336A (en) A kind of multi way temperature monitors system
CN208187574U (en) A kind of wireless temperature measurement system
CN102799846A (en) Intelligent real-time information acquisition and security protection management system
CN107436557A (en) Intelligence control system
CN205352456U (en) General monitoring devices of transmission line integration
CN206400523U (en) Analog-digital conversion control circuit and presentation device
CN105487579A (en) Continuous temperature control and drying monitoring system
CN212782165U (en) Intelligent beverage cabinet and intelligent beverage cabinet system
CN205302322U (en) Kindergarten meets and sends off management system
CN210639460U (en) Workshop management system and workshop manager
CN210271400U (en) Multi-channel sensor fusion device
CN204575122U (en) Based on the forest environment monitoring system of wireless network
CN204229155U (en) A kind of patrol monitoring system with GPS function

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160824

WD01 Invention patent application deemed withdrawn after publication