Disclosure of Invention
The invention aims to provide a power management system and a power management method, which are used for solving the technical problem that a guest room power supply in the prior art cannot be automatically switched on or off.
In a first aspect, the present invention provides a power management system, including: the device comprises a first sensor, a second sensor, a controller and an electromagnetic switch, wherein the first sensor, the second sensor and the electromagnetic switch are respectively connected with the controller; the first sensor is used for detecting whether the opening and closing actions of the door exist or not; the second sensor is used for detecting the position of indoor personnel; the electromagnetic switch is connected between the main power supply and the electric appliance.
With reference to the first aspect, the present invention provides a first possible implementation manner of the first aspect, wherein the first sensor is a photoelectric sensor or an ultrasonic sensor, and the first sensor is connected to the roof and is disposed towards the lower side; the door is hinged with the door frame, and the axis of the hinge shaft is arranged along the plumb direction; the first sensors are arranged in a plurality, and the first sensors are arranged around the axis of the hinge shaft at intervals.
With reference to the first aspect, the present invention provides a second possible implementation manner of the first aspect, wherein the first sensor includes: the signal terminal is in butt joint with the pivoting piece; the first wiring piece is connected with the positive electrode of the signal power supply, the second wiring piece is connected with the negative electrode of the signal power supply, the signal wiring post is connected with the controller, and the shell is connected with the door frame; when the door is opened, the door drives the pivoting piece to rotate around a pivoting axis, and the pivoting piece is abutted with the first wiring piece and is arranged at intervals with the second wiring piece; when the door is closed, the door drives the pivoting member to rotate around the pivot axis, and the pivoting member abuts against the second wiring member and is arranged at intervals with the first wiring member.
With reference to the second possible implementation manner of the first aspect, the present invention provides a third possible implementation manner of the first aspect, wherein the pivot member is sleeved on a central shaft, the central shaft is connected with the housing, and a damping assembly is disposed in the housing, and extends along an axis direction of the central shaft and abuts against the pivot member.
With reference to the second possible implementation manner of the first aspect, the present invention provides a fourth possible implementation manner of the first aspect, where the door frame includes a first side frame, a beam, and a second side frame, the beam is connected to tops of the first side frame and the second side frame, the first side frame, the beam, and the second side frame enclose a door opening, the first sensor is connected to the beam, a damping device is disposed between the housing and the beam, and the damping device is located on a side of the housing facing away from the door opening.
With reference to the first aspect, the present invention provides a fifth possible implementation manner of the first aspect, where the second sensor is an infrared sensor or an ultrasonic sensor, and the second sensor is provided with a plurality of second sensors, and the plurality of second sensors are spaced apart and all connected to the roof.
With reference to the first aspect, the present invention provides a sixth possible implementation manner of the first aspect, wherein the controller is connected to the master switch.
In a second aspect, the present invention provides a power management method including the steps of:
Detecting whether the door is opened or closed; detecting whether a person is active in the room;
When a person moves in the room, controlling the electromagnetic switch to be closed, and recording the state of the electromagnetic switch;
When no person moves in the room, the electromagnetic switch is in a closed state, and the door is opened or closed, the electromagnetic switch is controlled to be opened, and the state of the electromagnetic switch is recorded;
when no person moves in the room, the electromagnetic switch is in an open state, and the door is opened or closed, the electromagnetic switch is controlled to be closed, and the state of the electromagnetic switch is recorded.
With reference to the second aspect, the present invention provides a first possible implementation manner of the second aspect, wherein the step of detecting whether there is a person activity in the room includes:
Calculating the distance between the detected body and the second sensor to be recorded as a first detection distance;
after the preset time, calculating the distance between the detected body and the second sensor again to be recorded as a second detection distance;
comparing whether the first detection distance is equal to the second detection distance;
if the difference value between the first detection distance and the second detection distance is within a preset error range, judging that no person is moving in the room;
If the difference value between the first detection distance and the second detection distance is not within the preset error range, the fact that people move in the room is judged.
With reference to the second aspect, the present invention provides a second possible implementation manner of the second aspect, wherein the power management method includes: detecting the open and close states of the main control switch;
when the main control switch is closed, controlling the electromagnetic switch to be closed, recording the state of the electromagnetic switch, and stopping the step of detecting whether the opening and closing actions of the door exist or not and the step of detecting whether people move in the room or not;
when the main control switch is turned off, a step of detecting whether the door is opened or closed or not and a step of detecting whether a person is moving in the room are performed.
The embodiment of the invention has the following beneficial effects: the first sensor, the second sensor and the electromagnetic switch are respectively connected with the controller, the first sensor is used for detecting the open-close state of the door, the second sensor is used for detecting the position of indoor personnel, the electromagnetic switch is connected between the main power supply and the electric appliance, and the controller can control the electromagnetic switch by combining the open-close state of the door and the activity state of the indoor personnel, so that the purposes that the electric appliance is electrified when people exist in a room and no electric appliance is powered off when people do not exist in the room are achieved; the household electrical appliance is powered on when the household enters the room, and is powered off when the household leaves the room, so that the power on-off is not required to be manually controlled, the satisfaction degree of the household on the guest room can be improved, the electric energy can be saved, and the potential safety hazard that no person is powered on in the guest room can be eliminated.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
The following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
Example 1
As shown in fig. 1, a power management system provided in an embodiment of the present invention includes: the first sensor 1, the second sensor 2, the controller 3 and the electromagnetic switch 4 are respectively connected with the controller 3, the first sensor 1 is used for detecting whether the opening and closing actions of the door 7 exist or not, the second sensor 2 is used for detecting the positions of indoor personnel, and the electromagnetic switch 4 is connected between a main power supply and an electric appliance.
Specifically, the first sensor 1, the second sensor 2, the controller 3 and the electromagnetic switch 4 share the same power supply, and when the door 7 is opened or closed, the first sensor 1 generates a signal change, and normally, the opening and closing operation of the door 7 is continuously performed, and the controller 3 can determine whether a person opens or closes the door 7 according to whether the signal change of the first sensor 1 exists. The controller 3 collects the action signals of the door 7 and the position information of the personnel in the room, if the position of the personnel changes within a certain period of time, the movement of the resident in the room is indicated, the controller 3 controls the electromagnetic switch 4 to be closed, so that an electric appliance is used for powering on, and the total power supply in the guest room is started; when no person is in the room, the controller 3 controls the electromagnetic switch 4 to be switched off, so that the power is cut off by using an electric appliance; if the electromagnetic switch 4 is in an open state, when no person moves in the room and the door 7 has an opening and closing action, the controller 3 controls the electromagnetic switch 4 to be closed, and when a resident is about to enter the room, power is supplied to the room; when the electromagnetic switch 4 is in the closed state, and no person is in the room, and the door 7 is opened or closed, the user leaves the room, and the controller 3 delays for one minute and then controls the electromagnetic switch 4 to be opened. The controller 3 controls the open/close state of the electromagnetic switch 4 by controlling whether the electromagnetic coil of the electromagnetic switch 4 is energized, the controller 3 is a PLC controller, and when the open/close state of the electromagnetic switch 4 is changed, the controller 3 may mark the open/close state of the electromagnetic switch 4 by modifying the program variable value.
As shown in fig. 2, the first sensor 1 is a photoelectric sensor or an ultrasonic sensor, and the first sensor 1 is connected to a roof and is arranged downward; the door 7 is hinged with the door frame 6, and the axis of the hinge shaft is arranged along the plumb direction; the first sensors 1 are provided in plurality, and the plurality of first sensors 1 are disposed at intervals around the axis of the hinge shaft.
Specifically, the first sensor 1 is a photoelectric sensor with the model number of G18-2C5ZA or an ultrasonic sensor with the model number of BHH1612-400 RC. When the door 7 is opened, the plurality of first sensors 1 are sequentially shielded from the side close to the door frame 6 to the side away from the door frame 6, whereby the controller 3 can recognize the opening of the door 7; when the door 7 is closed, the plurality of first sensors 1 are sequentially shielded in sequence from the side facing away from the door frame 6 to the side near the door frame 6, whereby the controller 3 can recognize the closing of the door 7. When the door 7 is opened or closed, the first sensor 1 is shielded by the door 7, and the signal of the first sensor 1 is changed, so that the controller 3 can recognize whether the door 7 is opened or closed according to one of the first sensors 1.
As shown in fig. 3 and 4, the first sensor 1 includes: the signal terminal comprises a shell 11, a pivoting piece 12, a first wiring piece 13, a second wiring piece 14 and a signal terminal 15, wherein the pivoting piece 12 is rotatably connected in the shell 11, the first wiring piece 13 and the second wiring piece 14 are connected with the shell 11 and are respectively positioned on the circumference side of the pivoting axis of the pivoting piece 12, and the signal terminal 15 is abutted against the pivoting piece 12; the first wiring piece 13 is connected with the positive pole of the signal power supply, the second wiring piece 14 is connected with the negative pole of the signal power supply, the signal wiring post 15 is connected with the controller 3, and the shell 11 is connected with the door frame 6; when the door 7 is opened, the door 7 drives the pivoting member 12 to rotate around the pivot axis, and the pivoting member 12 abuts against the first wiring member 13 and is arranged at a distance from the second wiring member 14; when the door 7 is closed, the door 7 drives the pivoting member 12 to rotate about the pivot axis, the pivoting member 12 abutting against the second wire member 14 and being disposed at a distance from the first wire member 13.
Specifically, when the door 7 is opened and closed, the door 7 and the door frame 6 are relatively displaced, and the first sensor 1 installed between the door 7 and the door frame 6 is rotated about the pivot axis by the door 7. When the door 7 is opened, the pivot member 12 abuts against the first wiring member 13, so that the first wiring member 13, the pivot member 12 and the signal wiring terminal 15 are conducted, and the controller 3 detects a high level signal; when the door 7 is closed, the pivot piece 12 is abutted against the second wiring piece 14, the pivot piece 12 and the signal wiring post 15 are conducted, and at this time, the controller 3 detects a low-level signal; the controller 3 can judge the open/close state of the door 7 based on the signal of the first sensor 1. The pivot member 12 is driven by the door 7, so that when the door 7 is opened and closed, the pivot member 12 rotates in opposite directions, and the signal terminal 15 can be changed in level, thereby achieving the purpose of detecting the opened and closed state of the door 7. When no person moves in the room and the door 7 is opened, the resident is about to enter the room, and the controller 3 controls the electromagnetic switch 4 to be closed; when no person is active in the room and the door 7 is closed, the resident leaves the room, and the electromagnetic switch 4 is controlled to be turned off.
Further, the pivot member 12 includes: the insulating part 121, the conductive part 122 and the protruding part 123, the insulating part 121 is connected with the conductive part 122, the protruding part 123 is connected with the conductive part 122 and extends in a direction away from the insulating part 121, the conductive part 122 is abutted against the signal terminal 15, and the insulating part 121 is used for abutting against the door 7; when the door 7 is opened, the protruding portion 123 abuts against the first wiring member 13; when the door 7 is closed, the boss 123 abuts against the second wire member 14. Wherein, the conductive part 122 and the protruding part 123 are both conductors, and the insulating part 121 is preferably made of rubber material, and the insulating part 121 is in friction contact with the door 7, so that the pivoting member 12 rotates around the pivot axis.
As shown in fig. 5 and 6, the first wiring member 13 includes: the first brush part 131, the first extension part 132, the first wiring part 133 and the first limiting part 134, wherein the first extension part 132 is connected between the first brush part 131 and the first wiring part 133, the first limiting part 134 is connected to one end of the first brush part 131 close to the first extension part 132, the first extension part 132 is connected with the housing 11, and the first wiring part 133 is connected with the positive pole of the signal power supply; the second wire connector 14 includes: the second brush part 141, the second extension part 142, the second wiring part 143 and the second limiting part 144, the second extension part 142 is connected between the second brush part 141 and the second wiring part 143, the second limiting part 144 is connected at one end of the second brush part 141 near the second extension part 142, the second extension part 142 is connected with the housing 11, and the second wiring part 143 is connected with the negative pole of the signal power supply; the first wire connecting member 13 and the second wire connecting member 14 are disposed at a distance, and the first brush portion 131 and the second brush portion 141 are arc-shaped and coaxial with the pivot member 12.
Specifically, when the door 7 is opened, the protruding portion 123 abuts against the first brush portion 131 and slides along the first brush portion 131, and the first limiting portion 134 is used to limit the sliding travel of the protruding portion 123 along the first brush portion 131; when the door 7 is closed, the protruding portion 123 slides along the first brush portion 131 and is separated from the first brush portion 131, and when the protruding portion 123 slides to abut against the second brush portion 141, the second wiring member 14, the pivot member 12 and the signal terminal 15 are conducted, and the second limiting portion 144 is used for limiting the sliding stroke of the protruding portion 123 along the second brush portion 141.
Further, the pivot member 12 is sleeved on the central shaft 16, the central shaft 16 is connected with the housing 11, the housing 11 is provided with a damping assembly 17, and the damping assembly 17 extends along the axis direction of the central shaft 16 and abuts against the pivot member 12. Friction of the pivot member 12 through the damping assembly 17 limits rotation of the pivot member 12 about the central axis 16; when the door 7 is opened and separated from the pivot member 12, the pivot member 12 is locked by the damper assembly 17, thereby ensuring that the second wire member 14, the pivot member 12 and the signal terminal 15 are conducted in a state where the door 7 is opened.
As shown in fig. 4, the damping assembly 17 includes: the friction disc 171, the first spring 172 and the limiting piece 173 are all sleeved on the central shaft 16, the friction disc 171 is abutted between the first spring 172 and the pivoting piece 12, the limiting piece 173 is connected with the central shaft 16, and the limiting piece 173 is abutted against one end of the first spring 172, which is away from the friction disc 171. The limiting piece 173 is a nut or a snap ring, the limiting piece 173 presses the first spring 172, the friction disc 171 is abutted against the pivoting piece 12 under the action of the first spring 172, and the pivoting piece 12 is ensured to rotate only when being rubbed by the door 7 through friction resistance between the friction disc 171 and the pivoting piece 12.
As shown in fig. 7 and 8, the door frame 6 includes a first side frame 61, a beam 62 and a second side frame 63, the beam 62 is connected at the top of the first side frame 61 and the second side frame 63, the first side frame 61, the beam 62 and the second side frame 63 are surrounded to form a door opening, the first sensor 1 is connected with the beam 62, a damping device 18 is arranged between the housing 11 and the beam 62, and the damping device 18 is located at one side of the housing 11 facing away from the door opening. Wherein, the side of crossbeam 62 towards the door opening is equipped with the recess, and damping device 18 is connected in the recess of crossbeam 62, and first sensor 1 is connected with damping device 18, extrudees first sensor 1 through damping device 18 to make pivot piece 12 can contact with door 7. When the door 7 is in contact with or separated from the pivot 12, the damper 18 can prevent the damper 18 from being broken by impact, and can prevent the connection line between the first sensor 1 and the controller 3 from being pulled and broken.
As shown in fig. 3 and 4, the damping device 18 includes: the base 181, guide bar 182, second spring 183 and apron 184, apron 184 are connected with shell 11, and guide bar 182 is connected with base 181, and guide bar 182 is located to apron 184 and second spring 183 all cover, and second spring 183 butt is between base 181 and apron 184. When the door 7 presses the pivot member 12, the housing 11 presses the cover plate 184, the cover plate 184 slides along the guide bar 182 in a direction approaching the base 181, the second spring 183 is elastically compressed, and the cover plate 184 and the first sensor 1 are pressed by the second spring 183 so that the pivot member 12 can be brought into contact with the door 7.
The second sensors 2 are infrared sensors or ultrasonic sensors, a plurality of second sensors 2 are arranged, and the plurality of second sensors 2 are arranged at intervals and are connected to a roof.
Specifically, the second sensor 2 may be an infrared sensor of model RE200BP or an ultrasonic sensor of model BHH1612-400 RC. The controller 3 can calculate the distance between the human body and the second sensor 2 according to the signal analog values of the infrared sensor and the ultrasonic sensor, and when a timer or a delay program is built in the controller 3, the distance between the human body and the second sensor 2 is calculated respectively with preset time as intervals, so that whether the indoor personnel are moving or not can be judged according to the position change of the human body. The plurality of second sensors 2 are arranged at intervals, so that the positions of the human body can be marked in a matrix form according to the plurality of second sensors 2, and when the positions of the human body change, the indoor activities of people can be judged. In addition, the second sensor 2 should avoid the bed, so as to ignore the turning-over action of the guest on the bed when sleeping.
Further, the controller 3 is connected with a main control switch 5. The main control switch 5 is arranged on the remote controller, the remote controller is connected with the controller 3 through wireless communication, and a resident can enable the controller 3 to change the on-off state of the electromagnetic switch 4 through the main control switch 5, so that a person in a room can get up at night to remotely control the lamplight; in addition, when a person lies on the bed and performs night reading, the main control switch 5 can be operated to be closed, and the controller 3 collects signals of the main control switch 5 to control the electromagnetic switch 4 to be kept in a closed state.
Further, in order to avoid that guests entering at night cannot find the light switch, a human body induction lamp is arranged, when a resident enters a room, illumination can be provided, and therefore the resident can find the light switch in a dark environment. The electromagnetic switch 4 is connected between the human body induction lamp and the main power supply, when a resident enters a room, the electromagnetic switch 4 is closed, the human body induction lamp is electrified, and the resident is perceived to enter, so that illumination is provided for the resident, and the resident can find the switch of the light in a dark environment.
Example two
The power management method provided by the embodiment of the invention comprises the following steps:
detecting whether the door 7 is opened or closed; detecting whether a person is active in the room;
when someone moves in the room, the electromagnetic switch 4 is controlled to be closed, and the state of the electromagnetic switch 4 is recorded;
when no person moves in the room, the electromagnetic switch 4 is in a closed state, and the door 7 is opened or closed, the electromagnetic switch 4 is controlled to be opened, and the state of the electromagnetic switch 4 is recorded;
When no person moves in the room, the electromagnetic switch 4 is in an open state, and the door 7 is opened or closed, the electromagnetic switch 4 is controlled to be closed, and the state of the electromagnetic switch 4 is recorded.
It should be noted that, the manner of detecting whether the door 7 is opened or closed or not and whether the person is moving in the room is described in the first embodiment, so that the description is omitted here. And detecting whether a person moves in the room, so that the electromagnetic switch 4 is closed when the person moves in the room, and the electromagnetic switch 4 is opened when the person does not move in the room. And moreover, when the resident leaves the room, the electromagnetic switch 4 is disconnected, and when the resident is about to enter the room, the electromagnetic switch 4 is closed, so that the automatic management of the guest room main power supply is realized, an electricity taking card is not required, the satisfaction degree of the resident to the guest room can be improved, and the electricity saving is facilitated.
Further, the step of detecting whether a person is active in the room comprises: calculating the distance between the detected body and the second sensor 2 to be recorded as a first detection distance; after the preset time, calculating the distance between the detected body and the second sensor 2 again to be recorded as a second detection distance; comparing whether the first detection distance is equal to the second detection distance; if the difference value between the first detection distance and the second detection distance is within a preset error range, judging that no person is moving in the room; if the difference value between the first detection distance and the second detection distance is not within the preset error range, the fact that people move in the room is judged.
Further, the power management method includes: detecting the open and closed states of the main control switch 5;
when the main control switch 5 is closed, the electromagnetic switch 4 is controlled to be closed, the state of the electromagnetic switch 4 is recorded, and the step of detecting whether the opening and closing actions of the door 7 exist or not and the step of detecting whether people move in the room or not are stopped;
when the main control switch 5 is turned off, a step of detecting the presence or absence of the opening and closing operation of the door 7 and a step of detecting whether or not a person is moving in the room are performed.
When a resident reads still at night or a companion leaves a room, the resident can operate a main control switch 5 arranged at the head of the bed in order to avoid the disconnection of the main power supply when someone is in the room. The contact group of the main control switch 5 is connected between the signal power supply and the controller 3, the main control switch 5 can be opened and closed to enable pins opposite to the controller 3 to generate high-low level change, and when the main control switch 5 is closed, the controller 3 controls the electromagnetic switch 4 to be closed; when the main control switch 5 is turned off, the controller 3 controls the open/close state of the electromagnetic switch 4 according to whether or not there is a person activity in the room and the opening/closing operation of the door 7.
Further, when a person is moving in the room, the controller 3 records the state of the person in the room; until the door 7 is opened and closed and no person is present in the room, the controller 3 records the no-person state in the room. In the state that people exist in the room, the controller 3 controls the electromagnetic switch 4 to be closed; in the unmanned state in the room, the controller 3 controls the electromagnetic switch 4 to be turned off. So that the electromagnetic switch 4 can be kept in a closed state when the resident enters a room to sit still or sleep; in the unmanned state in the room, if the second sensor 2 detects that a person is in the room, the controller 3 records the state of the person in the room and controls the electromagnetic switch 4 to be closed. For example: when two persons stay in a guest room, one person leaves, the other person sleeps in the room, when the sleeping person wakes up to get out of bed, the second sensor 2 detects that the person is in the room, and the controller 3 controls the electromagnetic switch 4 to be closed.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.