CN104298154A - Public kitchen electric control and lamp control system based on single chip microcomputer - Google Patents
Public kitchen electric control and lamp control system based on single chip microcomputer Download PDFInfo
- Publication number
- CN104298154A CN104298154A CN201410516237.5A CN201410516237A CN104298154A CN 104298154 A CN104298154 A CN 104298154A CN 201410516237 A CN201410516237 A CN 201410516237A CN 104298154 A CN104298154 A CN 104298154A
- Authority
- CN
- China
- Prior art keywords
- power
- circuit
- relay
- power relay
- module
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0428—Safety, monitoring
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
- H05B47/11—Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
本发明公开一种基于单片机的公共厨房电控与灯控系统,包括单片机处理器、电源转换模块、亮度检测模块、日光灯控制模块、大功率继电器控制模块;日光灯控制模块包括串联在日光灯线路中的红外开关电路和中功率继电器,大功率继电器控制模块包括串联在大功率电器线路中的大功率继电器和大功率用电器,中功率继电器和大功率继电器分别与单片机处理器相连;亮度检测模块包括光敏电阻分压电路和A/D转换模块,A/D转换模块与单片机处理器相连,电源转换模块输入端与红外开关电路相连,输出端与单片机处理器和亮度检测模块相连。本发明采用两套方案控制被使用房间中的日光灯线路和大功率电器线路,使得被使用房间中的日光灯与大功率用电器互不干扰。
The invention discloses a public kitchen electric control and light control system based on a single-chip microcomputer, which includes a single-chip processor, a power conversion module, a brightness detection module, a fluorescent lamp control module, and a high-power relay control module; Infrared switch circuit and medium power relay, high power relay control module includes high power relay and high power electrical appliance connected in series in high power electrical circuit, medium power relay and high power relay are respectively connected with single chip processor; brightness detection module includes photosensitive The resistor divider circuit and the A/D conversion module, the A/D conversion module is connected with the single-chip processor, the input terminal of the power conversion module is connected with the infrared switch circuit, and the output terminal is connected with the single-chip processor and the brightness detection module. The present invention adopts two schemes to control the fluorescent lamp circuit and the high-power electrical appliance circuit in the used room, so that the fluorescent lamp and the high-power electrical appliance in the used room do not interfere with each other.
Description
the
技术领域:Technical field:
本发明涉及一种基于单片机的公共厨房电控与灯控系统,属于智能家居领域。 The invention relates to a public kitchen electric control and light control system based on a single-chip microcomputer, which belongs to the field of smart home.
背景技术:Background technique:
单片机控制系统开始进入智能家居应用阶段,目前公共厨房仍采用人工控制电力、用电系统,一般控制日光灯亮灭采用的是手动开关,而对厨房大功率用电线路控制采用开关电闸的方式。这些控制方式都采用人工控制的方式很不方便,而且经常遇到遗忘现象,小则浪费大量电能大则对生命财产造成损失,而且电闸经常使用出现老化、接触不良等问题,维护维修困难。 The single-chip microcomputer control system has entered the stage of smart home application. At present, public kitchens still use manual control of power and power consumption systems. Generally, manual switches are used to control the fluorescent lamps on and off, and switch switches are used to control high-power power consumption lines in the kitchen. It is very inconvenient to use manual control for these control methods, and often encounter forgetting phenomena, which may cause a large amount of waste of electric energy and cause loss of life and property. Moreover, the switch is often used to cause problems such as aging and poor contact, making maintenance difficult.
红外开关电路越来越多的被应用到日常生活中,然后现有的红外开关电路只用于楼道灯的控制且只有光线较暗时有人进入才能导通,功能比较单一。 Infrared switch circuits are more and more used in daily life, and the existing infrared switch circuits are only used for the control of corridor lights and can only be turned on when someone enters when the light is dark, and the function is relatively single.
继电器是常用的电源开关控制器件,目前常用的有电磁型继电器,感应型继电器,整流型继电器,电子型继电器和数字型继电器。但是由于不同用电器功率需求不同,需要将不同控制能力的继电器用于相应的设备。 Relays are commonly used power switch control devices. At present, electromagnetic relays, inductive relays, rectifier relays, electronic relays and digital relays are commonly used. However, due to the different power requirements of different electrical appliances, relays with different control capabilities need to be used for corresponding equipment.
因此,确有必要对现有技术进行改进以解决现有技术之不足。 Therefore, it is necessary to improve the prior art to solve the deficiencies of the prior art.
发明内容:Invention content:
本发明是为了解决上述现有技术存在的问题而提供一种基于单片机的公共厨房电控与灯控系统。 The present invention provides a public kitchen electric control and light control system based on a single-chip microcomputer in order to solve the above-mentioned problems in the prior art.
本发明所采用的技术方案有: The technical scheme adopted in the present invention has:
一种基于单片机的公共厨房电控与灯控系统,包括日光灯线路和大功率电器线路,还包括单片机处理器、电源转换模块、亮度检测模块、日光灯控制模块、大功率继电器控制模块;日光灯控制模块包括串联在日光灯线路中的红外开关电路和中功率继电器,大功率继电器控制模块包括串联在大功率电器线路中的大功率继电器和大功率用电器,中功率继电器和大功率继电器分别与单片机处理器相连;亮度检测模块包括光敏电阻分压电路和A/D转换模块,A/D转换模块与单片机处理器相连,电源转换模块输入端与红外开关电路相连,输出端与单片机处理器和亮度检测模块相连。 A public kitchen electric control and light control system based on single-chip microcomputer, including fluorescent lamp circuit and high-power electrical appliance circuit, also includes single-chip processor, power conversion module, brightness detection module, fluorescent lamp control module, high-power relay control module; fluorescent lamp control module It includes an infrared switch circuit and a medium-power relay connected in series in the fluorescent lamp circuit. The high-power relay control module includes a high-power relay and a high-power electrical appliance connected in series in the circuit of a high-power electrical appliance. Connected; the brightness detection module includes a photoresistor voltage divider circuit and an A/D conversion module, the A/D conversion module is connected with the single-chip processor, the input terminal of the power conversion module is connected with the infrared switch circuit, and the output terminal is connected with the single-chip processor and the brightness detection module connected.
本发明的进一步设计在于: A further design of the present invention is:
红外开关电路包括RD8702集成电路芯片和RS03红外传感器;光敏电阻分压电路由电阻R1和光敏电阻R2串联而成,电阻R1与电源转换模相连,光敏电阻R2与A/D转换模块相连。 The infrared switch circuit includes RD8702 integrated circuit chip and RS03 infrared sensor; the photoresistor voltage divider circuit is composed of resistor R1 and photoresistor R2 connected in series, resistor R1 is connected to the power conversion module, and photoresistor R2 is connected to the A/D conversion module.
该系统还包括菲涅尔透镜,所述红外开关电路中的RS03红外传感器置于菲涅尔透镜后部。 The system also includes a Fresnel lens, and the RS03 infrared sensor in the infrared switch circuit is placed behind the Fresnel lens.
该系统设置在厨房内进门位置。 The system is set at the entrance in the kitchen.
所述单片机处理器采用C8051F340单片机;中功率继电器的型号为JZC-7FF继电器;大功率继电器的型号为JQX-38F继电器;电源转换模块采用MTW5-S5C电源模块。 The single-chip processor adopts a C8051F340 single-chip microcomputer; the model of the medium-power relay is JZC-7FF relay; the model of the high-power relay is JQX-38F relay; the power conversion module adopts the MTW5-S5C power supply module.
本发明具有如下有益效果: The present invention has following beneficial effects:
(1)本发明实施简单,采用两套方案控制被使用房间中的控制日光灯线路和大功率电器线路,使得被使用房间中的日光灯与大功率电路互不干扰。 (1) The present invention is simple to implement. Two sets of schemes are adopted to control the control fluorescent lamp circuit and the high-power electrical circuit in the used room, so that the fluorescent lamp and the high-power circuit in the used room do not interfere with each other.
(2)本发明无需人工操作、节省电能、使用安全性、普及性广。 (2) The present invention does not require manual operation, saves electric energy, is safe to use, and has wide popularity.
the
附图说明:Description of drawings:
图 1 为本发明电路示意图。 Figure 1 is a schematic diagram of the circuit of the present invention.
图 2 为本发明红外开关电路原理图。 Figure 2 is a schematic diagram of the infrared switch circuit of the present invention.
the
具体实施方式:Detailed ways:
下面结合附图对本发明作进一步的说明。 The present invention will be further described below in conjunction with the accompanying drawings.
请参照图1,本发明一种基于单片机的公共厨房电控与灯控系统,具有电源转换模块、亮度检测模块、单片机处理器、大功率继电器控制模块、日光灯控制模块、键盘、显示模块、日光灯线路和大功率电器线路;日光灯线路和大功率电器线路与家用220V线路相连,日光灯控制模块包括红外开关电路、日光灯和中功率继电器,红外开关电路、中功率继电器和日光灯泡串联后连接在日光灯线路中,中功率继电器控制日光灯线路的通断电;大功率继电器控制模块包括串联在大功率电器线路中的大功率继电器和大功率用电器,大功率继电器控制大功率电器线路的通断电;中功率继电器和大功率继电器分别与单片机处理器相连。 Please refer to Fig. 1, a public kitchen electric control and light control system based on a single-chip microcomputer of the present invention has a power conversion module, a brightness detection module, a single-chip processor, a high-power relay control module, a fluorescent lamp control module, a keyboard, a display module, and a fluorescent lamp Lines and high-power electrical circuits; fluorescent lamp lines and high-power electrical circuits are connected to household 220V lines, fluorescent lamp control modules include infrared switch circuits, fluorescent lamps and medium-power relays, infrared switch circuits, medium-power relays and fluorescent bulbs are connected in series to fluorescent lamp circuits The medium and medium power relays control the power on and off of the fluorescent lamp circuit; the high power relay control module includes a high power relay and a high power electrical appliance connected in series in the high power electrical circuit, and the high power relay controls the power on and off of the high power electrical circuit; The power relay and the high-power relay are respectively connected with the single-chip processor.
亮度检测模块包括光敏电阻分压电路和A/D转换模块,A/D转换模块与单片机处理器相连,电源转换模块输入端与红外开关电路相连,输出端与单片机处理器和亮度检测模块相连;光敏电阻将感应到的亮度传递给A/D转换模块,经A/D转换模块进行模数转换后发送至单片机处理器。电源转换模块采用MTW5-S5C电源模块,将220V交流电转换成5V的直流电。本发明中的单片机处理器采用C8051F340单片机;中功率继电器采用的型号为JZC-7F F继电器;大功率继电器的型号为JQX-38F继电器;显示模块采用具有八位并口的液晶显示器LCD1602。 The brightness detection module includes a photoresistor voltage divider circuit and an A/D conversion module, the A/D conversion module is connected with the single-chip processor, the input end of the power conversion module is connected with the infrared switch circuit, and the output end is connected with the single-chip processor and the brightness detection module; The photoresistor transmits the sensed brightness to the A/D conversion module, and after the A/D conversion module performs analog-to-digital conversion, it sends it to the single-chip processor. The power conversion module adopts MTW5-S5C power module, which converts 220V AC into 5V DC. Single-chip microcomputer processor among the present invention adopts C8051F340 single-chip microcomputer; The model that medium power relay adopts is JZC-7FF relay; The model of high-power relay is JQX-38F relay; Display module adopts the liquid crystal display LCD1602 that has eight parallel ports.
本发明在单片机处理器上相应的控制端还连接有输入键盘,该键盘可手动控制日光灯控制模块与大功率继电器控制模块,从而控制日光灯线路和大功率电器线路的通断,同时将各受控部分的工作状态显示在显示模块上用以人机交互。 In the present invention, the corresponding control terminal on the single-chip processor is also connected with an input keyboard, and the keyboard can manually control the fluorescent lamp control module and the high-power relay control module, thereby controlling the on-off of the fluorescent lamp circuit and the high-power electrical circuit, and at the same time, each controlled Part of the working status is displayed on the display module for human-computer interaction.
请参照图2,红外开关电路包括RD8702集成电路芯片和RS03红外传感器,热释红外传感器RS03感受到的红外信号经自身转换为电压信号后通过RD8702集成电路芯片进行两次选频放大,放大后再由RD8702集成电路芯片内比较器进行比较并送入芯片内部控制电路中,由控制电路输出过零脉来触发双向可控硅Q1的导通。本发明在控制双向可控硅导通时采用交流过零触发方式,从而大大减少可控硅导通时的浪涌,可以延长日光灯的使用寿命。本集成电路芯片自带有系统时钟通过内部定时器进行导通延时。其延时时长可通过改变R6的值来改变;另本发明将亮度检测模块用于亮度的检测,所以RD8702集成电路芯片的9脚光控制输入端直接接高电平使得红外开关电路检测到有人进入时即进入导通状态即使在白天当有人进入厨房时,红外开关电路工作,接通电源转换模块,给单片机供电,单片机处理器亦能打开大功率电器线路。将日光灯线路与大功率电器线路分开接地保证系统的安全可靠。为满足本设计对红外开关电路的功能需求,将红外开关电路连接在电源转换模块的输入端。本发明还包括菲涅尔透镜,红外开关电路中的RS03红外传感器置于菲涅尔透镜后部,RS03红外传感器应与菲涅尔透镜配合使用可扩大检测角度,P2为日光灯泡接口。本发明设置在厨房内进门位置。 Please refer to Figure 2. The infrared switch circuit includes the RD8702 integrated circuit chip and the RS03 infrared sensor. The infrared signal sensed by the pyro-infrared sensor RS03 is converted into a voltage signal by itself and then amplified twice through the RD8702 integrated circuit chip. The comparator in the RD8702 integrated circuit chip performs comparison and sends it to the internal control circuit of the chip, and the control circuit outputs a zero-crossing pulse to trigger the conduction of the bidirectional thyristor Q1. The invention adopts an AC zero-crossing trigger mode when controlling the conduction of the bidirectional thyristor, thereby greatly reducing the surge when the thyristor is conducting, and prolonging the service life of the fluorescent lamp. The integrated circuit chip has its own system clock for conduction delay through the internal timer. Its delay duration can be changed by changing the value of R6; in addition, the present invention uses the brightness detection module for the detection of brightness, so the 9-pin light control input terminal of the RD8702 integrated circuit chip is directly connected to a high level so that the infrared switch circuit detects that someone has entered Even in the daytime when someone enters the kitchen, the infrared switch circuit works, and the power conversion module is connected to supply power to the single-chip microcomputer, and the single-chip processor can also open the high-power electrical circuit. Separate and ground the fluorescent lamp circuit and the high-power electrical circuit to ensure the safety and reliability of the system. In order to meet the functional requirements of this design for the infrared switch circuit, the infrared switch circuit is connected to the input terminal of the power conversion module. The invention also includes a Fresnel lens. The RS03 infrared sensor in the infrared switch circuit is placed at the rear of the Fresnel lens. The RS03 infrared sensor should be used in conjunction with the Fresnel lens to expand the detection angle, and P2 is the interface of the daylight bulb. The present invention is arranged at the entrance position in the kitchen.
请参照图1与图2,本发明在控制流程为,当红外开关电路检测到有人进入公共厨房时,红外开关电路接通,此时电源转换模块为单片机处理器提供电能。单片机处理器通过亮度检测模块检测公共厨房当前光线强度。 Please refer to Fig. 1 and Fig. 2, the control flow of the present invention is that when the infrared switch circuit detects that someone enters the public kitchen, the infrared switch circuit is turned on, and the power conversion module provides power for the single-chip processor at this time. The single-chip processor detects the current light intensity of the public kitchen through the brightness detection module.
当亮度检测模块检测到当前光线较暗时,单片机处理器打开中功率继电器和大功率继电器,此时日光灯线路和大功率电器线路导通,日光灯打开,连接在大功率电器线路上的大功率用电器可以被使用。 When the brightness detection module detects that the current light is dark, the single-chip processor turns on the medium-power relay and the high-power relay. Appliances can be used.
当亮度检测模块检测到当前光线充足时,此时单片机处理器则仅控制大功率继电器,大功率电器线路导通,连接在大功率电器线路上的大功率用电器可以被使用。 When the brightness detection module detects that the current light is sufficient, the single-chip processor only controls the high-power relay, the high-power electrical circuit is turned on, and the high-power electrical appliances connected to the high-power electrical circuit can be used.
如果人离开公共厨房则红外开关电路断开,同时单片机处理器断电,中功率继电器与大功率用电器断开,公共厨房的日光灯线路与大功率电器线路断电。 If people leave the public kitchen, the infrared switch circuit is disconnected, and the single-chip processor is powered off, the medium-power relay is disconnected from the high-power electrical appliance, and the fluorescent lamp circuit and the high-power electrical appliance circuit of the public kitchen are powered off.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下还可以作出若干改进,这些改进也应视为本发明的保护范围。 The above is only a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, some improvements can also be made without departing from the principle of the present invention, and these improvements should also be regarded as the invention. protected range.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410516237.5A CN104298154A (en) | 2014-09-30 | 2014-09-30 | Public kitchen electric control and lamp control system based on single chip microcomputer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410516237.5A CN104298154A (en) | 2014-09-30 | 2014-09-30 | Public kitchen electric control and lamp control system based on single chip microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104298154A true CN104298154A (en) | 2015-01-21 |
Family
ID=52317933
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410516237.5A Pending CN104298154A (en) | 2014-09-30 | 2014-09-30 | Public kitchen electric control and lamp control system based on single chip microcomputer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104298154A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104808544A (en) * | 2015-02-12 | 2015-07-29 | 金磊 | Indoor security intelligent control system |
CN106102277A (en) * | 2016-07-28 | 2016-11-09 | 北海和思科技有限公司 | A kind of corridor non-attended light Ore-controlling Role |
-
2014
- 2014-09-30 CN CN201410516237.5A patent/CN104298154A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104808544A (en) * | 2015-02-12 | 2015-07-29 | 金磊 | Indoor security intelligent control system |
CN106102277A (en) * | 2016-07-28 | 2016-11-09 | 北海和思科技有限公司 | A kind of corridor non-attended light Ore-controlling Role |
CN106102277B (en) * | 2016-07-28 | 2019-04-19 | 北海和思科技有限公司 | A kind of automatic lighting control system of corridor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN204069443U (en) | A kind of electronic switch | |
CN107148132B (en) | Single live wire on-state power taking circuit | |
CN203202882U (en) | LED floor lamp | |
CN204350387U (en) | Intelligent power saving lamp control device | |
CN202972844U (en) | Ceiling lamp capable of switching brightness levels automatically | |
CN104298154A (en) | Public kitchen electric control and lamp control system based on single chip microcomputer | |
CN202310232U (en) | Miniwatt LED light illumination system | |
CN204928314U (en) | Emergent corridor LED lighting system | |
CN102325403A (en) | Touch time-delay switch made from digital circuit CD4013 | |
CN202340340U (en) | Touch delay switch consisting of double-D-trigger | |
CN104456336A (en) | Intelligent illumination moisture prevention and energy-saving ceiling lamp | |
CN202406347U (en) | Infrared control LED (Light-emitting Diode) energy-saving lamp | |
CN103417109B (en) | Energy-efficient electric kettle | |
CN202918558U (en) | LED fluorescent lamp circuit with inductive switch | |
CN102438382A (en) | Touch time delay switch manufactured by dual-D trigger | |
CN202949603U (en) | Infrared learning-type remote control energy-saving lamp assembly | |
CN202178902U (en) | Touch time-delay switch made of digital circuit CD4013 | |
CN202160155U (en) | Human body infrared induction four-wire system low power intelligent energy saving switch | |
CN203851314U (en) | Far-infrared wireless light-adjusting wall-board switch | |
CN202918568U (en) | An energy-saving self-powered-off electric lamp control device | |
CN204180367U (en) | A kind of single lamp power saver with failure protection function | |
CN203177102U (en) | a lamp | |
CN202841626U (en) | Uninterruptible LED lighting | |
CN201750617U (en) | Energy-saving lamp wall delay switch box | |
CN204518168U (en) | Intelligent desk lamp adapter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150121 |