Carpet for controlling indoor LED lamp illumination and control method thereof

文档序号:767346 发布日期:2021-04-09 浏览:3次 中文

阅读说明:本技术 一种用于控制室内led灯具照明的地毯及其控制方法 (Carpet for controlling indoor LED lamp illumination and control method thereof ) 是由 宋宏伟 李凯洲 于 2020-12-11 设计创作,主要内容包括:本发明公开了一种用于控制室内LED灯具照明的地毯及其控制方法,属于室内照明灯具控制领域所述的室内LED灯具包括第一蓝牙通信模块;其特征在于,所述的地毯包括顶部的绒毛层、中部的防水层、所述防水层内部的控制电路、以及底部的支撑层;所述的控制电路包括压力传感器矩阵、光敏传感器、微处理器、供电模块和第二蓝牙通信模块;所述的压力传感器矩阵、光敏传感器与微控制器连接;所述的微处理器用于发送灯光控制指令至LED灯具,通过第二蓝牙通信模块与LED灯具中的第一蓝牙通信模块实现通讯;所述的供电模块用于对微处理器和第二蓝牙通信模块供电。本发明设计的地毯让灯具控制更加便捷、自然且符合家庭环境。(The invention discloses a carpet for controlling indoor LED lamp illumination and a control method thereof, and belongs to the field of indoor illumination lamp control.A first Bluetooth communication module is arranged in an indoor LED lamp; the carpet is characterized by comprising a fluff layer at the top, a waterproof layer at the middle part, a control circuit in the waterproof layer and a supporting layer at the bottom; the control circuit comprises a pressure sensor matrix, a photosensitive sensor, a microprocessor, a power supply module and a second Bluetooth communication module; the pressure sensor matrix and the photosensitive sensor are connected with the microcontroller; the microprocessor is used for sending a light control command to the LED lamp and realizing communication with a first Bluetooth communication module in the LED lamp through a second Bluetooth communication module; and the power supply module is used for supplying power to the microprocessor and the second Bluetooth communication module. The carpet designed by the invention enables the lamp to be controlled more conveniently and naturally and accords with the household environment.)

1. A carpet for controlling illumination of an indoor LED lamp comprises a first Bluetooth communication module; the carpet is characterized by comprising a fluff layer at the top, a waterproof layer at the middle part, a control circuit in the waterproof layer and a supporting layer at the bottom;

the control circuit comprises a pressure sensor matrix, a photosensitive sensor, a microprocessor, a power supply module and a second Bluetooth communication module; the pressure sensor matrix and the photosensitive sensor are connected with the microcontroller; the microprocessor is used for sending a light control command to the LED lamp and realizing communication with a first Bluetooth communication module in the LED lamp through a second Bluetooth communication module; the power supply module is used for supplying power to the microprocessor and the second Bluetooth communication module;

the light control instruction sent by the microprocessor consists of 6 byte hexadecimal character strings which are respectively as follows:

start code: 2 bytes for identifying an instruction start field;

lamp coding: 2 bytes for identifying the type and ID of the lamp to be controlled;

control code: 1 byte for identifying the type of the control command, including the operation of turning on and off the light;

and (4) checking codes: and 1 byte is used for CRC cyclic redundancy check to judge whether the instruction data is correct.

2. The carpet for controlling the illumination of indoor LED lamps as claimed in claim 1, wherein the microprocessor adopts an STM32 single chip microcomputer with a built-in memory, and the memory stores light control instructions; the range of the input level of the I/O pin of the STM32 singlechip is 2.0-3.6V and is used for connecting the photosensitive sensor and the pressure sensor.

3. A carpet for controlling LED lighting in a room as claimed in claim 1, wherein said pile layer on top of the carpet is comprised of a backing and surface tufts.

4. The carpet of claim 1, wherein the waterproof layer of the middle part of the carpet is acrylic.

5. The carpet for controlling the lighting of LED lamps in a room as claimed in claim 1, wherein said pressure sensor matrix is composed of a plurality of pressure sensors, and said pressure sensors are uniformly arranged in the carpet.

6. A carpet for controlling the illumination of LED lights in a room as claimed in claim 1, wherein the pressure sensor receives a pressure in the range of 2kg to 100 kg.

7. The carpet for controlling the illumination of indoor LED lamps according to claim 1, wherein the supporting layer is made of rubber.

8. The carpet for controlling the lighting of an indoor LED lamp as claimed in claim 1, wherein the light sensor is exposed on one side of the carpet and is not covered by a fluff layer.

9. A method of controlling LED lights indoors using a carpet as claimed in any one of claims 1 to 8, comprising the steps of:

step 1: the photosensitive sensor detects the illumination value in real time, if the current illumination is sufficient, the control circuit enters a sleep state, and the microprocessor, the pressure sensor and the second Bluetooth communication module do not work; if the current illumination value is lower than the threshold value, the control circuit enters a standby state and enters the step 2;

step 2: the pressure sensor detects the pressure value applied to the carpet in real time and transmits the pressure value to the microprocessor, when the pressure value reaches a preset range, the microprocessor recognizes the pressure change, the microprocessor sends a light control instruction, the light control instruction is transmitted to the LED lamp through the second Bluetooth communication module, the LED lamp is controlled to be turned on, the LED lamp is automatically turned off after preset duration, and the step 1 is returned.

10. The method as claimed in claim 9, wherein when the microprocessor receives the voltage signal twice continuously in the state that the lamp is turned on, the microprocessor sends a control command for turning off the lamp, and the priority is higher than that of the mode of turning off the lamp automatically after the preset time period in the step 2.

Technical Field

The invention relates to the field of indoor lighting lamp control, in particular to a carpet for controlling indoor LED lamp illumination and a control method thereof.

Background

With the maturity of wireless communication technologies such as bluetooth, WiFi, ZigBee, the control of illumination lamps and lanterns also develops towards wireless and intelligent direction gradually. The traditional lamp switching mode is mechanical, manual contact control is needed, on one hand, remote control cannot be achieved, and on the other hand, wiring is complex; the sound control lamp adopts a control mode of turning on the lamp according to the sound intensity, can be controlled at a longer distance, but lacks applicability in families and some environments with quiet requirements, and cannot be turned off; at present, some intelligent home systems adopt an internet of things lamp controlled by devices such as a mobile phone and an intelligent sound box, and the problem of remote control is well solved by networking the lamp. However, the switching of the lamp still needs the mobile phone app to control, and the operation is complex. The lamp control mode needs complicated manual operation, and the natural and non-perception control effect cannot be achieved in an indoor scene.

Disclosure of Invention

In order to overcome the defects and enable the lamp to be controlled more conveniently, naturally and accord with the family environment, the invention provides a carpet for controlling the illumination of an indoor LED lamp and a control method thereof.

The technical scheme adopted by the invention for overcoming the technical problems is as follows:

one of the purposes of the invention is to provide a carpet for controlling indoor LED lamp illumination, wherein the indoor LED lamp comprises a first Bluetooth communication module; the carpet comprises a fluff layer at the top, a waterproof layer in the middle, a control circuit in the waterproof layer and a supporting layer at the bottom;

the control circuit comprises a pressure sensor matrix, a photosensitive sensor, a microprocessor, a power supply module and a second Bluetooth communication module; the pressure sensor matrix and the photosensitive sensor are connected with the microcontroller; the microprocessor is used for sending a light control command to the LED lamp and realizing communication with a first Bluetooth communication module in the LED lamp through a second Bluetooth communication module; the power supply module is used for supplying power to the microprocessor and the second Bluetooth communication module;

the light control instruction sent by the microprocessor consists of 6 byte hexadecimal character strings which are respectively as follows:

start code: 2 bytes for identifying an instruction start field;

lamp coding: 2 bytes for identifying the type and ID of the lamp to be controlled;

control code: 1 byte for identifying the type of the control command, including the operation of turning on and off the light;

and (4) checking codes: and 1 byte is used for CRC cyclic redundancy check to judge whether the instruction data is correct.

Another object of the present invention is to provide a method for controlling an indoor LED lamp by using the carpet, which includes the following steps:

step 1: the photosensitive sensor detects the illumination value in real time, if the current illumination is sufficient, the control circuit enters a sleep state, and the microprocessor, the pressure sensor and the second Bluetooth communication module do not work; if the current illumination value is lower than the threshold value, the control circuit enters a standby state and enters the step 2;

step 2: the pressure sensor detects the pressure value applied to the carpet in real time and transmits the pressure value to the microprocessor, when the pressure value reaches a preset range, the microprocessor recognizes the pressure change, the microprocessor sends a light control instruction, the light control instruction is transmitted to the LED lamp through the second Bluetooth communication module, the LED lamp is controlled to be turned on, the LED lamp is automatically turned off after preset duration, and the step 1 is returned.

Preferably, when the microprocessor receives the voltage signal twice continuously in the state that the lamp is turned on, the microprocessor sends a control instruction for turning off the lamp, and the priority is higher than the mode of automatically turning off the lamp after the preset time period in the step 2.

The invention has the beneficial effects that: the carpet for controlling the indoor LED lamp illumination is provided, when a human body steps on the carpet, a pressure sensor matrix in a waterproof layer senses a pressure value and converts the pressure into an electric signal to be transmitted to a microprocessor, and the microprocessor sends a related control instruction according to the change condition of the pressure value through a Bluetooth communication module. Lamps and lanterns are turning on the light and turning off light and other light changes after receiving the bluetooth instruction, make lamps and lanterns control more convenient, nature and accord with the family environment.

Drawings

Fig. 1 is a schematic structural view of a lighting control carpet in the present embodiment;

FIG. 2 is a schematic diagram of a control circuit in the present embodiment;

fig. 3 is a flowchart of a control method in the present embodiment;

in the figure, 1 fluff layer, 2 waterproof layer, 3 pressure sensor matrix, 4 control circuit and 5 supporting layer.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples.

As shown in fig. 1, a carpet for controlling illumination of an indoor LED lamp, the indoor LED lamp includes a first bluetooth communication module; the carpet comprises a fluff layer 1 at the top, a waterproof layer 2 at the middle part, a control circuit 4 in the waterproof layer and a supporting layer 5 at the bottom;

as shown in FIG. 2, the internal integrated circuit can sense the pressure applied by the human body when the human body walks, and the Bluetooth is used for sending an instruction to control the on-off of the lamp. The control circuit comprises a pressure sensor matrix 3, a photosensitive sensor, a microprocessor, a power supply module and a second Bluetooth communication module; the pressure sensor matrix and the photosensitive sensor are connected with the microcontroller; the microprocessor is used for sending a light control command to the LED lamp and realizing communication with a first Bluetooth communication module in the LED lamp through a second Bluetooth communication module; the power supply module is used for supplying power to the microprocessor and the second Bluetooth communication module;

the light control instruction sent by the microprocessor consists of 6 byte hexadecimal character strings which are respectively as follows:

start code: 2 bytes for identifying an instruction start field;

lamp coding: 2 bytes for identifying the type and ID of the lamp to be controlled;

control code: 1 byte for identifying the type of the control command, including the operation of turning on and off the light;

and (4) checking codes: and 1 byte is used for CRC cyclic redundancy check to judge whether the instruction data is correct.

In one embodiment of the present invention, the pressure sensor matrix is formed by a plurality of pressure sensors, and the pressure sensors are uniformly arranged in the carpet, closely attached to the lower part of the pile of the carpet, and arranged in a matrix of 20cm by 20 cm. In the laying range of the pressure sensor, when a human body generates pressure, the resistance of the sensor changes, and the resistance is converted into an electric signal and input into the microprocessor module. The typical value of the pressure range received by the sensor is 2kg-100kg, and the corresponding voltage is changed into 0-3.3V; the photosensitive sensor is exposed on one side of the carpet and is not covered by the fluff layer.

The second Bluetooth communication module is used for receiving and sending control instructions and can be communicated with indoor lamps, mobile phones and other devices.

The microprocessor module 8 is used for controlling the whole circuit, and the module adopts a programmable singlechip to define circuit logic. The microprocessor receives the pressure value circuit signal from the pressure sensor, and outputs different control instructions to the Bluetooth communication module according to different pressure changes. Pressure changes include, but are not limited to, short contact times, long dwell times, repeated contact intervals, and the like.

The microprocessor adopts an STM32 singlechip, and the singlechip is powered by 3.3V voltage; the system has 3 low power consumption modes of sleep, shutdown and standby, and enters a shutdown state when the photosensitive resistor detects strong illumination; otherwise, entering a standby state, and responding to the change of the pressure value; a flash memory program memory with 256K bytes is arranged in the lighting control system and used for storing defined lighting control instructions; the range of input level of the I/O pin is 2.0-3.6V, and the I/O pin is connected with the photoresistor and the pressure sensor to receive related signals; 3 universal transceivers are arranged in the singlechip, and the control circuit adopts an asynchronous transceiver USART1 to be connected with the Bluetooth communication module.

The photoresistor module 9 is used for sensing external light, and different resistance value changes appear under different light. Thereby controlling the state of the circuit. Under the condition of sufficient light illumination, the control circuit is in a closed state and does not respond to the pressure signal of the pressure sensor;

the power supply module 10 is used for supplying power to the whole circuit, converting common voltage into different voltages and supplying power to the singlechip and the Bluetooth equipment;

the controlled intelligent lamp is a common lamp with a Bluetooth control function and generally comprises a Bluetooth communication module 9, a microprocessor 10, an LED light module 11 and a power supply module 12.

In one embodiment of the invention, the pile layer on top of the carpet constitutes the outer carpet body, consisting of the backing and the surface tufts. The waterproof layer material in the middle of the carpet is acrylic acid. The supporting layer needs to have certain strength, and the material adopted by the implementation is rubber.

As shown in fig. 3, the method for controlling an indoor LED lamp by using the carpet includes the following steps:

step 1: the photosensitive sensor detects the illumination value in real time, if the current illumination is sufficient, the control circuit enters a sleep state, and the microprocessor, the pressure sensor and the second Bluetooth communication module do not work; if the current illumination value is lower than the threshold value, the control circuit enters a standby state and enters the step 2;

step 2: the pressure sensor detects the pressure value applied to the carpet in real time and transmits the pressure value to the microprocessor, when the pressure value reaches a preset range, the microprocessor recognizes the pressure change, the microprocessor sends a light control instruction, the light control instruction is transmitted to the LED lamp through the second Bluetooth communication module, the LED lamp is controlled to be turned on, the LED lamp is automatically turned off after preset duration, and the step 1 is returned.

In one embodiment of the present invention, when the microprocessor continuously receives the voltage signal twice in the state that the lamp is turned on, the microprocessor sends a control command for turning off the lamp, and the priority is higher than the mode of turning off the lamp automatically after the preset time period in step 2.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种室内设计用地毯铺设装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!