Method, system, device and storage medium for continuous sun following control of drying
By installing multiple light sensors on the clothes drying rack rods, changes in light intensity are monitored in real time, and the raising and lowering of the drying rack rods is controlled. This solves the problem of inaccurate light tracking function in existing clothes drying racks, and enables clothes to be continuously tracked by light in the optimal drying position, thereby improving drying efficiency and energy saving.
Patent Information
- Application Number
- CN202310793646.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-29
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2043-06-29
Smart Images

Figure CN116820150B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of sunning control, in particular to a sunning continuous light tracking control method, system, device and storage medium. BACKGROUND
[0002] The intelligent clothes drying machine is more and more favored by people because it can realize automatic lifting and integrate lighting, drying and sterilization functions, and has become an indispensable part of intelligent home products.
[0003] The clothes drying machine is generally installed in a semi-closed or fully closed space such as a balcony, and the balcony position is affected by the house type and position, so it is generally not possible to be irradiated by the sun all day. With the development of the field of electric clothes drying machines, some clothes drying machines with light tracking function have appeared to improve the sunning efficiency. At present, among the clothes drying machine technologies with light tracking effect on the market, some light tracking functions completely rely on networking modules, and users need to input parameters such as the approximate orientation of the clothes drying machine installation space, the hanging height distance of the clothes drying machine and the local position obtained by the user terminal into the mobile terminal. After the single light tracking control model of the background server connected by the clothes drying machine is calculated and analyzed, the clothes drying machine is controlled to rise, and this light tracking technology does not consider the blocking of the clothes drying machine installation position such as the balcony in the actual user scene, cannot actually perceive the change of the environmental light, and the effect of light tracking is uneven; some increase light sensors on the wall-mounted remote controller matched with the clothes drying machine, and when the remote controller senses sunlight, the clothes drying machine is controlled to drop to a position of half, and this model is simple and rough, and does not consider that the installation positions of the wall-mounted remote controllers under different users are different, and the effect of light tracking is chat. SUMMARY
[0004] The first object of the present application is to overcome the shortcomings and deficiencies of the prior art, and to provide a sunning continuous light tracking control method, which can continuously track the light in the sunning area based on the real-time offset light, so that the clothes on the sunning rod can always be in the best sunning position, and the sunning efficiency of the clothes drying machine is effectively improved.
[0005] The second object of the present application is to provide a sunning light tracking control system.
[0006] The third object of the present application is to provide a computing device.
[0007] The fourth object of the present application is to provide a computer readable storage medium.
[0008] The first object of the present application is achieved by the following technical scheme: a sunning continuous light tracking control method applied to a clothes drying machine, comprising:
[0009] Obtaining the light intensity information of the sunning rod of the clothes drying machine, and determining the light intensity change of the sunning rod.
[0010] determining a light offset direction according to the variation of the light intensity on the drying rod;
[0011] controlling the drying rod to make lifting motion according to the light offset direction, and collecting the light intensity during the lifting motion of the drying rod, and determining the position of the drying rod when the light intensity on the drying rod meets the condition;
[0012] controlling the drying rod to be at the determined position.
[0013] Preferably, the specific process of determining the light offset direction is as follows:
[0014] real-time acquiring the light intensity information on the drying rod;
[0015] when detecting that the light intensity on the drying rod at the current time is less than the preset value, acquiring the light intensity at each time within a specified time of each position in each group of positions on the drying rod; wherein, each position in the same group of positions on the drying rod is a position arranged along the movement direction of the drying rod, and the specified time is the time from the last stop to the current time;
[0016] for each group of positions, determining the sum of the light intensity difference within the specified time according to the light intensity at each time within the specified time of each position in the group of positions;
[0017] calculating the total light intensity difference SUM according to the sum of the light intensity difference within the specified time of each group of positions;
[0018] comparing the total light intensity difference SUM with a light threshold value;
[0019] when SUM>light threshold value, determining that the light offsets upward;
[0020] when SUM<-light threshold value, determining that the light offsets downward.
[0021] Further, the process of calculating the total light intensity difference SUM according to the sum of the light intensity difference within the specified time of each group of positions is as follows:
[0022] when only including one group of positions, the total light intensity difference SUM is equal to the sum of the light intensity difference within the specified time of the group of positions;
[0023] when including multiple groups of positions, the sum of the light intensity difference within the specified time of each group of positions is averaged to obtain the total light intensity difference SUM.
[0024] Further, each position in each group of positions on the drying rod is respectively provided with a light sensor, i.e. each light sensor in the same group of positions is arranged along the movement direction of the drying rod; for each group of positions, the specific process of calculating the sum of the light intensity difference within the specified time of the group of positions is as follows:
[0025] Firstly, for each position in each group of positions, the sum of the light intensity difference between the position and the position below it within a specified time is calculated:
[0026]
[0027] wherein L a (k) is the light intensity detected by position a on the drying rod at time k, L b (k) is the light intensity detected by position b on the drying rod at time k, k is the kth time within the specified time, wherein position b and position a belong to the same group of positions, and position b is above position a;
[0028] Secondly, for each group of positions, the sum of the light intensity difference is obtained by averaging each light intensity difference calculated above.
[0029] Preferably, according to the light offset direction, the drying rod is controlled to move up and down in a predetermined direction, and the light intensity during the up and down movement of the drying rod in the predetermined direction is collected to determine the position when the light intensity of the drying rod meets the condition, and the specific process includes:
[0030] When the light offset direction is upward, the following operations are performed:
[0031] S101, control the drying rod to perform an upward movement;
[0032] S102, collect the light intensity of the drying rod at a preset sampling period during the upward movement of the drying rod;
[0033] S103, take the average of each group of N data collected to obtain a data value, and determine whether the following preset conditions are met: the data value is less than the saved previous data value, the previous data value is the maximum data value currently saved and is greater than a first preset value;
[0034] If yes, control the drying rod to stop, and the stop position is the position when the light intensity of the drying rod meets the condition;
[0035] If no, determine whether the drying rod has risen to the top, if yes, control the drying rod to stay at the top position and turn off the light chasing function, if no, control the drying rod to continue to rise, and return to step S102;
[0036] When the light offset direction is downward, the following operations are performed:
[0037] S201, control the drying rod to perform a downward movement;
[0038] S202, collect the light intensity of the drying rod at a preset sampling period during the downward movement of the drying rod;
[0039] S203, for each group of N data collected, the average of the group data is determined whether greater than a second predetermined value;
[0040] If yes, the control of the drying rod stops descending, and the stop position is the position when the drying rod light intensity meets the condition;
[0041] If no, it is determined whether the drying rod is currently at the bottom position; if no, the drying rod continues to descend, and returns to step S202; if yes, step S204 is executed;
[0042] S204, the control of the drying rod executes the ascending movement;
[0043] S205, the light intensity of the drying rod is collected in a preset sampling period during the ascending process of the drying rod;
[0044] S206, for each group of N data collected, the average of the group data is determined whether the following preset conditions are met: the data value is less than the saved last data value, the last data value is the maximum data value currently saved and greater than a first predetermined value;
[0045] If yes, the control of the drying rod stops ascending, and the stop position is the position when the drying rod light intensity meets the condition;
[0046] If no, it is determined whether the drying rod ascends to the top, if yes, the drying rod is controlled to stay at the top position and the light chasing function is closed, if no, the drying rod continues to ascend, and returns to step S205.
[0047] Preferably, the light intensity of the drying rod is monitored in real time after detecting that the light chasing function is opened; the method further comprises:
[0048] The real-time monitored light intensity of the drying rod is compared with a third predetermined value;
[0049] When the light intensity of the drying rod is less than the third predetermined value and the duration exceeds a first threshold value, the drying rod is controlled to ascend to the top and the light chasing function is closed;
[0050] In the closed state of the light chasing function, the light intensity of the drying rod is monitored in real time, and when it is detected that the light intensity of the drying rod is not less than the third predetermined value and the duration exceeds a second threshold value, an opening light chasing function instruction is issued.
[0051] Preferably, the method further comprises:
[0052] The weather information of the installation site of the clothes drying machine is monitored in real time, and when the weather changes to a first preset weather, the drying rod is controlled to be at the top position and the light chasing function is closed;
[0053] When the light chasing function is in the off state, the weather information of the installation site of the clothes airing machine is monitored in real time, and when the weather changes to the second preset weather, an instruction of turning on the light chasing function is sent.
[0054] Preferably, the light intensity of the airing rod is monitored in real time after the light chasing function is detected to be turned on.
[0055] The method further comprises:
[0056] The starting time point and the ending time point of the installation site in a day are determined according to the latitude and longitude information of the installation site of the clothes airing machine.
[0057] When the current time is between the starting time point and the ending time point of the day, the light chasing function is turned on.
[0058] The second object of the application is achieved by the following technical solution: a drying continuous light chasing control system, comprising a controller and a light chasing device, wherein the light chasing device comprises a plurality of light sensors connected with the controller.
[0059] Each light sensor is installed on the airing rod of the clothes airing machine, and is used for monitoring the light intensity information on the airing rod in real time and sending the light intensity information to the controller; wherein at least two light sensors are arranged along the movement direction of the airing rod.
[0060] The controller is used for executing the drying continuous light chasing control method of the first object of the application.
[0061] The third object of the application is achieved by the following technical solution: a computing device, comprising at least one processor and a memory connected with the at least one processor in communication, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the drying continuous light chasing control method of the first object of the application.
[0062] The fourth object of the application is achieved by the following technical solution: a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the drying continuous light chasing control method of the first object of the application.
[0063] The application has the following advantages and effects compared with the prior art:
[0064] (1) The drying continuous light tracking control method of the present application first determines the light intensity variation of the drying rod based on the light intensity information of the drying rod of the clothes drying machine, then determines the light offset direction according to the light intensity variation of the drying rod, and finally controls the drying rod to move up and down according to the light offset direction, collects the light intensity during the lifting of the drying rod, determines the position when the light intensity of the drying rod meets the conditions, and controls the drying rod to be at the determined position. As can be seen from the above, the method of the present application can continuously track the light variation in the drying area based on the real-time offset light, so that the clothes on the drying rod can always be in the best drying position, effectively improving the efficiency of the clothes drying machine.
[0065] (2) In the drying continuous light tracking control method of the present application, the light offset direction can be determined based on the difference between the total light intensity of each position along the movement direction of the drying rod within a specified time, wherein the specified time refers to the time from the last stop of the drying rod to the current determination time. Therefore, the method of the present application determines the light offset direction based on the light intensity information of the positions above and below the drying rod at each time within the specified time, considers the light intensity variation at each time, and can more accurately and quickly determine the light offset direction. In addition, the method of the present application can determine the light offset direction based on multiple positions along the movement direction of the drying rod, which can consider the light intensity variation of multiple different positions in the transverse direction of the drying rod, so the accuracy of determining the light offset direction is higher. Furthermore, in the case that the width of the drying rod allows, the light intensity of more than three positions in the same group of positions can be collected, specifically, the sum of the light intensity difference of each adjacent two positions can be calculated first, then the average of the sum of the light intensity difference of each position is taken as the sum of the light intensity difference of the group of positions, and finally the total light intensity difference is calculated based on the sum of the light intensity difference of each group of positions to determine the light offset direction. The above method of the present application considers the light intensity variation of multiple positions in the longitudinal direction, and can also more accurately determine the light offset direction on the drying rod.
[0066] (3) In the method, when it is detected that the light moves upward during the process of continuously tracking the light, the drying rod is controlled to move upward and find a position where the current light intensity is less than the saved last data value (the last data value is the currently saved maximum data value and is greater than a preset value) during the upward movement, and the position is taken as the drying position meeting the condition. The method uses the hysteresis of the light sensing information reception, so that the clothes on the drying rod are just at the drying position where the light intensity is the maximum, and the drying efficiency is effectively improved. In addition, the current light intensity found by the drying rod during the upward movement meets the condition that it is less than the saved last data value and the last data value is the maximum data value. Compared with directly finding the maximum data value, when a part of the running position of the drying rod is the maximum data value and is greater than the preset value, the above operation can make the drying rod stay at the position where the light intensity is the highest, and further improve the drying effect of the clothes.
[0067] (4) In the method, when it is detected that the light moves downward during the process of continuously tracking the light, the drying rod is controlled to move downward and find the best drying position during the downward movement. If the best drying position cannot be found during the downward movement, the drying rod is controlled to move upward from the bottom after moving downward to the bottom, and the best drying position is found during the upward movement. Based on this, the method can find a better drying position when the light moves downward and the light intensity is generally weakened.
[0068] (5) In the method, the light intensity of the drying rod during the upward or downward movement is collected at a preset sampling period, N data collected each time are taken as a group, the data value obtained by averaging the data in the same group is saved as the final light intensity value. As can be seen, the method determines the light intensity value of the drying rod at each position based on multiple light intensity data values, can more accurately reflect the real light intensity at each position, can effectively avoid the detection error caused by a single light intensity value, and ensures the effectiveness of the light tracking control.
[0069] (6) In the method, whether to close the light tracking function is determined by monitoring the light intensity of the drying rod in real time. When it is detected that the light intensity of the drying rod is less than a certain preset value and the duration exceeds a preset time, the drying rod can be controlled to close the light tracking function. After the light tracking function is closed, if the light intensity recovers to the preset value or more and the duration exceeds the preset time, the light tracking function can be controlled to be opened. Therefore, the method can realize the automatic control of opening and closing the light tracking function, and when the light intensity is weak and the light tracking is not needed, closing the light tracking function can save the power consumption.
[0070] (7) In the clothes airing continuous light-pursuing control method, the starting time point and the ending time point of the day at the installation site of the clothes airing machine can be determined according to the latitude and longitude information of the installation site, so that the light-pursuing function can be controlled to be turned on when the current time reaches the starting time point of the day, and the light-pursuing function can be controlled to be turned off when the current time reaches the ending time point of the day, thereby realizing automatic control of the turning on and turning off of the light-pursuing function based on time information, and bringing great convenience to the light-pursuing control of the clothes airing machine.
[0071] (8) In the clothes airing continuous light-pursuing control method, when the host of the clothes airing machine is networked, the turning on and turning off of the light-pursuing function can be controlled based on weather change information, for example, after the weather changes from sunny to cloudy during the light-pursuing process, the light-pursuing function can be controlled to be turned off to stop light-pursuing and control the airing rod to be located at the top position, and then the weather changes to sunny again to continue light-pursuing, so that the method can adapt to the change of the weather and realize automatic control of light-pursuing according to the weather condition. BRIEF DESCRIPTION OF DRAWINGS
[0072] Figure 1 is a flowchart of the method of the present application.
[0073] Figure 2 is a continuous light-pursuing flowchart of the method of the present application.
[0074] Figures 3a to 3d is a schematic diagram of the position layout of the light sensor in the present application.
[0075] Figure 4 is a light-pursuing function control flowchart in the method of the present application.
[0076] Figure 5 is a structural block diagram of the system of the present application.
[0077] Figure 6 is a schematic diagram of the light-pursuing device structure in the system of the present application. DETAILED DESCRIPTION
[0078] The embodiments of the present application will be described below in conjunction with the accompanying drawings. It should be understood that the embodiments described below in conjunction with the drawings are exemplary descriptions of the technical solutions of the embodiments of the present application, and do not limit the technical solutions of the embodiments of the present application.
[0079] Embodiment 1
[0080] Currently, the light tracking technology of the clothes drying machine is either completely dependent on the light tracking model set in the background, which specifically analyzes and calculates the light condition based on the parameters input by the user in advance and some parameters obtained through the network to control the lifting of the clothes drying machine, or detects the light condition through the light sensor set at the fixed position of the wall-mounted remote controller to control the lifting of the clothes drying machine, which cannot realize real-time and continuous light tracking when the light direction deviates.
[0081] Based on the problems in the prior art, the present embodiment provides a drying continuous light tracking control method, which is applied to a clothes drying machine. The clothes drying machine comprises a host and a drying rod. The drying rod is arranged below the host through a steel wire rope. The host is provided with a host controller, a motor, a drying module, an illumination module and the like. The controller is connected to the motor through a motor driver. The motor controls the lifting movement of the steel wire rope to realize the automatic lifting of the drying rod. The continuous light tracking control method of the present embodiment can be realized through the control system arranged on the clothes drying machine. The control system is connected with the light sensor arranged on the drying rod. The control system can be directly the host controller in the host of the clothes drying machine or a controller arranged additionally. As shown in FIG. 8, the drying continuous light tracking control method comprises the following steps. Figure 1
[0082] SA, acquiring the light intensity information of the drying rod of the clothes drying machine, determining the light intensity change condition of the drying rod, and determining the light deviation direction according to the light intensity change condition of the drying rod.
[0083] In the present embodiment, at least two light sensors are arranged on the drying rod of the clothes drying machine along the movement direction of the drying rod. The light intensity change condition, i.e. the light condition at the position where each light sensor is arranged, can be determined based on the light intensity detected by each light sensor at different time, so as to determine the light deviation direction.
[0084] SB, controlling the lifting movement of the drying rod according to the light deviation direction, and acquiring the light intensity in the lifting process of the drying rod to determine the position where the light intensity of the drying rod meets the condition.
[0085] SC, controlling the drying rod to be at the position determined above.
[0086] In the present embodiment, the specific process of determining the light deviation direction in the above step SA is as follows.
[0087] Sa, acquiring the light intensity information of the drying rod in real time; in the present embodiment, the light intensity detected by each light sensor on the drying rod is acquired. Based on this, the light intensity information of the drying rod is acquired.
[0088] Sb, when it is detected that the current light intensity of the drying rod is less than the preset value, the light intensity of each position in each group of positions on the drying rod at each time within a specified time is obtained, that is, the light intensity variation of the drying rod is obtained; wherein each position in the same group of positions on the drying rod is a position arranged along the movement direction of the drying rod, and each position can be specifically a position located on the same straight line, which is a straight line perpendicular to the ground, or the transverse distance between each position is within a limited range. The specified time is the time from the last stop of the drying rod to the current time;
[0089] In the embodiment, a light sensor is arranged at each position for obtaining the light intensity, and the light intensity of the position is detected by the light sensor. The current light intensity of the drying rod can be a value obtained by averaging the current light intensity detected by each light sensor on the drying rod, or can be a light intensity value of one or more light sensors on the drying rod at the current time. In the embodiment, the preset value can be set to 10000 lux.
[0090] In the embodiment, a light sensor is arranged at each position in each group of positions on the drying rod, that is, the light sensors at each position in the same group of positions are arranged along the movement direction of the drying rod. In the embodiment, when it is detected that the current light intensity of the drying rod is less than the preset value, the light intensity L i (k) of each position in each group of positions on the drying rod at each time within a specified time is obtained. i (k) is the light intensity detected by the i-th position in the same group of positions on the drying rod at the k-th time, which can be detected by the light sensor arranged at the i-th position at the k-th time, and k is the k-th time within the specified time, that is, the k-th time between the last stop time of the drying rod and the current time.
[0091] In the embodiment, the light intensity at each position can be detected by one or more light sensors at the position, and when the light intensity data is detected by multiple light sensors, the light intensity at the position can be obtained by averaging the light intensity data detected by multiple light sensors arranged side by side along the transverse direction of the drying rod at the position. At this time, the position can be considered as not a point position, but a region position.
[0092] Sc, for each group of positions, the sum of the light intensity difference values of the group of positions within the specified time is determined according to the light intensity of each position in the group at each time within the specified time; the specific process is as follows:
[0093] Sc-1, for each position in each group of positions, the sum of the light intensity difference values of the position and the position below it within the specified time is calculated:
[0094]
[0095] wherein, L a (k) is the light intensity detected by the light sensor at position b at time k, k is the kth time within the predetermined time, wherein position b and position a belong to the same group of positions, and position b is above position a; SUM b (k) is the light intensity detected by the light sensor at position b at time k, k is the kth time within the predetermined time, wherein position b and position a belong to the same group of positions, and position b is above position a; SUM b,a is the sum of the light intensity difference between position b and the position a below it within the predetermined time.
[0096] In this embodiment, the above calculation can be performed for each position in each group of positions to obtain the sum of the light intensity difference between each position and the position below it within the predetermined time; or the above calculation can be performed only for one or several positions to determine the sum of the light intensity difference between one or several positions and the position below it within the predetermined time; the specific implementation is not limited. In addition, position b and position a can be adjacent upper and lower positions, or can be non-adjacent positions, i.e., there are other positions between b and a.
[0097] Sc-2, for each group of positions, the sum of the light intensity difference obtained by the above calculation is averaged to obtain the sum of the light intensity difference of the group of positions within the predetermined time;
[0098] In this embodiment, if the sum of the light intensity difference between each position in each group of positions and the position below it within the predetermined time is calculated, and the position below it is an adjacent position, then in this embodiment, the sum of the light intensity difference of each group of positions calculated is:
[0099]
[0100]
[0101] wherein, SUM i+1,i is the sum of the light intensity difference between the i+1th position and the ith position in the same group of positions on the drying rod within the predetermined time (i.e., from the 1st time to the nth time); in the movement direction of the drying rod, the i+1th position is above the ith position and the two positions are adjacent, i.e., the light sensor arranged at the i+1th position is above the light sensor arranged at the ith position; I is the total number of positions in each group of positions on the drying rod, which corresponds to the total number of light sensors arranged in each group of positions along the movement direction of the drying rod, I≥2. SUM x is the sum of the light intensity difference calculated for the xth group of positions.
[0102] In the embodiment, the sum of the light intensity differences can also be calculated for positions in each group that have an up-down position relationship but are not necessarily adjacent, and the sum of the light intensity differences calculated for each group is averaged to obtain the sum of the light intensity differences for the corresponding group of positions. For example, in the group of positions of the drying rod, from bottom to top, four positions are provided, namely the first to fourth positions. In this group of positions, the sum of the light intensity differences between the third position and the first position within the specified time SUM 3,1 , the sum of the light intensity differences between the fourth position and the first position within the specified time SUM 4,1 , the sum of the light intensity differences between the fourth position and the third position within the specified time SUM 4,3 , and the like. The sum of the light intensity differences calculated above is added and averaged to obtain the sum of the light intensity differences for the group of positions within the specified time. In addition, the sum of the light intensity differences of only the two adjacent up-down positions can also be calculated, including the sum of the light intensity differences between the second position and the first position within the specified time SUM 2,1 , the sum of the light intensity differences between the third position and the second position within the specified time SUM 3,2 , the sum of the light intensity differences between the fourth position and the third position within the specified time SUM 4,3 , and the like. The sum of the light intensity differences calculated above is added and averaged to obtain the sum of the light intensity differences for the group of positions within the specified time.
[0103] As can be seen from the above, for each group of positions, when the total light intensity difference within the specified time is greater than zero, it indicates that the light intensity sum of the upper position is greater than that of the lower position, and the overall light intensity of the upper position at each time is greater than that of the lower position. When the total light intensity difference is less than zero, it indicates that the light intensity sum of the upper position is less than that of the lower position, and the overall light intensity of the lower position at each time is greater than that of the upper position.
[0104] Sd, the total light intensity difference SUM is obtained according to the sum of the light intensity differences of each group of positions within the specified time.
[0105] When there is only one group of positions on the drying rod that is provided with a light sensor, i.e., only the light intensity of one group of positions is used, the total light intensity difference SUM is equal to the sum of the light intensity differences of the group of positions within the specified time, i.e.:
[0106] SUM = SUM x , x = 1;
[0107] When there are multiple groups of positions on the drying rod that are provided with light sensors, i.e., the light intensity of multiple groups of positions is used, the sum of the light intensity differences of each group of positions within the specified time is averaged to obtain the total light intensity difference SUM as follows:
[0108]
[0109] Wherein, X is the total number of groups of light sensors, corresponding to the total number of groups of positions on the drying rod to obtain the light intensity.
[0110] Se, compare the total difference value SUM of light intensity with the light threshold value:
[0111] When SUM> light threshold value, determine that the light is upwardly deviated;
[0112] When SUM<- light threshold value, determine that the light is downwardly deviated.
[0113] As can be seen from the above, in the present embodiment, only one group of light sensors arranged along the movement direction of the drying rod can be provided on the drying rod, or multiple groups of light sensors arranged along the movement direction of the drying rod can be provided, when the latter, as shown in Figure 3b , each group of light sensors can be provided at different positions transversely to the drying rod, and each light sensor in each group of light sensors is arranged along the movement direction of the drying rod, and the positions of the light sensors in the group on the drying rod are defined as the same group positions, i.e. the positions arranged along the movement direction of the drying rod. Based on this, the determination process of the light deviation direction in the present embodiment is as follows: first, for each group of positions, the sum of the light intensity difference values in the specified time is calculated respectively through the steps Sa to Sc.
[0114] Then, the sum of the light intensity difference values of each group of positions in the specified time is averaged to obtain the total difference value SUM of light intensity:
[0115]
[0116] Wherein, X is the total number of groups of light sensors, SUM x is the sum of the light intensity difference values calculated based on the xth group of light sensors for the xth group of positions.
[0117] Finally, the total difference value SUM of light intensity calculated above is used to determine the light deviation direction.
[0118] In the present embodiment, as shown in Figure 3a , the light sensors are provided at the first position and the second position on the drying rod, which are the same group positions, and in the movement direction of the drying rod, the first position is below the second position, the light sensor A is at the first position, and the light sensor B is at the second position, i.e. the light sensor A and the light sensor B are arranged along the movement direction of the drying rod, in this case, the specific process of detecting the light deviation direction according to the light intensity change in the present embodiment is as follows:
[0119] Sa1, the light intensity information of the first position and the second position on the airing rod is acquired in real time by the light sensor A and the light sensor B arranged on the airing rod.
[0120] Sb1, when it is detected that the current airing rod light intensity is less than a preset value, the light intensity of the first position and the second position on the airing rod at each time within a specified time is acquired; the preset value can be set to 10000 lux, and the current airing rod light intensity can be the average of the light intensity detected by the light sensor A and the light sensor B at the current time.
[0121] In the embodiment, the light intensity of the first position can be detected by one or more light sensors on the airing rod, and when detected by multiple light sensors, the light intensity data can be detected by multiple light sensors arranged side by side along the transverse direction of the airing rod on the airing rod, and the light intensity at the first position is obtained after averaging. Similarly, the light intensity of the second position can be detected by one or more light sensors on the airing rod, and when detected by multiple light sensors, the light intensity data can be detected by multiple light sensors arranged side by side along the transverse direction of the airing rod on the airing rod, and the light intensity at the second position is obtained after averaging.
[0122] Sc1, the sum of the light intensity difference values of the first position and the second position on the airing rod within a specified time is calculated:
[0123]
[0124] Wherein, L1(k) is the light intensity of the first position on the airing rod at k time, which can be detected by the light sensor A at k time in formula (1), L2(k) is the light intensity of the second position on the airing rod at k time, which can be detected by the light sensor B at k time in formula (2); n is the total time from the last stop time of the airing rod to the current time within the specified time, when k = 1, L1(1) is the light intensity of the second position on the airing rod at the first time, i.e. the last stop time, when k = n, L1(n) is the light intensity of the second position on the airing rod at the n time, i.e. the current time or the last time of the current time. Figure 3a Figure 3a Sd1, according to the sum of the light intensity difference values of the first position and the second position on the airing rod within a specified time calculated above, the total light intensity difference SUM is calculated as:
[0125]
[0126] In the embodiment, since there is only one group of positions and only two positions in the group of positions, the total light intensity difference SUM is the sum of the light intensity difference values of the two positions in the group of positions within the specified time.
[0127]
[0128] Se1, compare the total light intensity difference SUM with the light threshold value; wherein the light threshold value in this embodiment can be set to 3000 lux-6000 lux.
[0129] When SUM> light threshold value, determine that the light is upwardly offset;
[0130] When SUM<- light threshold value, determine that the light is downwardly offset.
[0131] In this embodiment, in order to realize the continuous light chasing function, at least two light sensors must be used, wherein at least two light sensors are arranged along the movement direction of the drying rod, so as to determine the light offset direction through the change of the light sensor of the drying rod. Specifically, as shown in Figure 3a , the light sensor A at the first position and the light sensor B at the second position are arranged along the movement direction of the drying rod.
[0132] As can be seen from the above, in this embodiment, a plurality of groups of light sensors can be arranged at the transverse position of the drying rod, i.e., the light offset direction is determined based on the light intensity of the plurality of groups of positions; in each group of light sensors, at least two light sensors are arranged along the movement direction of the drying rod, i.e., as shown in Figure 3b ; based on each group of light sensors, the sum of the light intensity differences of each group of positions within a specified time is calculated through steps Sa-Sc, and then the average is taken to obtain the total light intensity difference SUM, and the above SUM and the light threshold value are compared to determine the light offset direction. As shown in 3b, there are two groups of light sensors arranged along the transverse position direction of the drying rod, the sum of the light intensity differences SUM 1 is calculated based on the first group of light sensors, the sum of the light intensity differences SUM 2 is calculated based on the second group of light sensors, and the average of SUM 1 and SUM 2 is taken to obtain the total light intensity difference SUM, and the total light intensity difference SUM and the light threshold value are compared to determine the light offset direction.
[0133] In this embodiment, one or more groups of sensors in each group of light sensors described above can also be provided with more than three light sensors, each light sensor is arranged along the movement direction of the drying rod (perpendicular to the ground), based on the light sensors at each adjacent upper and lower position in each group of light sensors, the total light intensity difference of each group of positions is calculated through steps Sa-Sd, and then the average is taken to obtain the total light intensity difference SUM, which is compared with the light threshold value to determine the light offset direction. As shown in Figure 3c , one group of light sensors includes three light sensors, A, B, and C, respectively, based on the light sensors B and A at the adjacent upper and lower positions, the sum of the light intensity differences SUM 2,1SUM is calculated based on the light sensors C and B arranged adjacently 3,2 SUM is calculated based on the light sensors C and B arranged adjacently 2,1 SUM is calculated based on the light sensors C and B arranged adjacently 3,2 The sum of the light intensity difference of each group is calculated, and the sum of the light intensity difference of each group is calculated x (x = 1, 2, … X) is calculated, and the sum of the light intensity difference SUM is obtained by averaging, and the sum of the light intensity difference SUM is compared with the light threshold to determine the light shift direction.
[0134] In the step SB, the drying rod is controlled to move up and down in a predetermined direction according to the light shift direction, and the light intensity during the movement of the drying rod is collected to determine the position of the drying rod when the light intensity meets the condition, and the specific process is as follows:
[0135] (1) When the light shift direction is upward, the following operations are performed:
[0136] S101, control the drying rod to move up.
[0137] S102, collect the light intensity of the drying rod at a preset sampling period during the upward movement of the drying rod; in this step, the light intensity of the drying rod is collected at a sampling period of 100 ms during the upward movement of the drying rod.
[0138] S103, collect N data as a group, save the data value calculated by averaging the data in the group, and determine whether the following preset conditions are met: the data value is less than the saved last data value, the last data value is the maximum data value currently saved and is greater than the first preset value;
[0139] If yes, stop the drying rod, and the stop position is the position of the drying rod when the light intensity meets the condition, and control the drying rod to be in the position;
[0140] If not, determine whether the drying rod has risen to the top, if yes, control the drying rod to stay at the top position and turn off the light chasing function, if not, control the drying rod to continue to rise, and return to step S102;
[0141] In this embodiment, if N is set to 10, 10 light intensity data (N1, N2, N3, …, N10) are collected as a group, the average value of N1, N2, N3, …, N10 is calculated in real time to obtain data value M, and the data value M is saved to the buffer area; in this step, for the data value M calculated in real time, it is determined whether M is less than the data value M saved last time in the buffer area 上 , and it is determined whether M上 whether the current saved maximum data value is greater than the first preset value, if both are, it can be determined that M meets the preset condition, thus controlling the drying rod to stop rising. The data value M 上 refers to the data calculated after the average of the last group of collected light intensity data, compared to the numerical value M, M 上 corresponding to the last data value saved in the buffer area; in this embodiment, the first preset value can be set to 10000 lux.
[0142] In this embodiment, when the light is upwardly offset, the drying rod is controlled to rise, and the optimal drying position is found in the rising movement process. The above operation, i.e., detecting that the drying rod position is the light intensity weakening and the last position light intensity is the maximum light intensity, controls the drying rod to stop moving, can effectively utilize the hysteresis of light sensing information reception, so that the clothes on the drying rod are just in the maximum light intensity drying position when the drying rod stops, effectively improving the drying efficiency. In addition, based on this embodiment, the current light intensity found in the drying rod rising process satisfies being less than the saved last data value and the last data value being the maximum data value. Compared with directly finding the maximum data value, when the drying rod has a running position that is the maximum data value and greater than the first preset value, the above operation can make the drying rod stay at the highest position that satisfies the light intensity, further improving the clothes drying effect.
[0143] (2) When the light offset direction is the light downwardly moving, the following operation is performed:
[0144] S201, controlling the drying rod to perform a descending movement;
[0145] S202, collecting the light intensity of the drying rod in a preset sampling period during the drying rod descending process; in this step, the light intensity of the drying rod is collected in a sampling period of 100 ms during the drying rod descending process.
[0146] S203, taking the average of the group of data after collecting N data as a group, and determining whether it is greater than the second preset value;
[0147] if yes, controlling the drying rod to stop descending, and the stop position is the position when the light intensity of the drying rod meets the condition, and controlling the drying rod to be at the position;
[0148] if no, determining whether the drying rod is currently at the bottom position; if no, controlling the drying rod to continue descending, and returning to step S202; if yes, performing step S204;
[0149] The second preset value can be set to 10000 lux. During the lowering process of the drying rod, the light intensity of the drying rod can be collected at a sampling period of 100 ms. If N is set to 10, each 10 collected light intensity data (N1, N2, N3, …, N10) is taken as a group, and the average value of the sum is taken as the data value M. After the data value M is calculated, the data value M is compared with the second preset value to determine whether the data value M is greater than the second preset value. If the data value M is greater than the second preset value, the drying machine is immediately controlled to stop lowering, so that the drying machine stays at the position.
[0150] S204, controlling the drying rod to perform an upward movement.
[0151] S205, collecting the light intensity of the drying rod at a preset sampling period during the upward movement of the drying rod, wherein the preset sampling period can be set to 100 ms.
[0152] S206, taking each N data as a group, saving the data value calculated by taking the average of the group, and determining whether the following preset conditions are met: the data value is less than the saved last data value, the last data value is the currently saved maximum data value and is greater than the first preset value.
[0153] If yes, the drying rod is controlled to stop rising, and the stop position is the position when the light intensity of the drying rod meets the condition, and the drying rod is controlled to be at the position.
[0154] If no, it is determined whether the drying rod has risen to the top. If yes, the drying rod is controlled to stay at the top position and the light chasing function is turned off. If no, the drying rod is controlled to continue rising, and returns to step S205.
[0155] The specific implementation details of this step S206 are as described in step 103, which will not be repeated here.
[0156] In this embodiment, when the light offset direction is downward, the drying rod is first controlled to descend, and a qualified optimal drying position, i.e., a position greater than the second preset value, is searched for in the descending process. If a qualified optimal drying position cannot be found in the descending process, the drying rod is controlled to ascend after descending to the bottom, so as to search for a qualified optimal drying position in the ascending process. If a qualified optimal drying position still cannot be found, the drying rod is controlled to stop at the top position and the light chasing function is turned off. Through the method for continuously chasing light in this embodiment, the drying rod can always be kept at the optimal drying position, and the drying efficiency is effectively improved. In this embodiment, after detecting that the light moves downward, the drying rod is first controlled to descend, but in the descending process, it is not known whether the light intensity of the position below the current position is stronger. Therefore, the descending process needs to be continued. It is assumed that in the descending process, it is detected that the light intensity value of a certain position changes from the original increasing or invariable to a decreasing light intensity value, which indicates that the shadow has been reached. However, if the drying rod stops at this moment, due to the motor inertia and the distance between the clothes and the light collection module on the drying rod, the clothes to be dried are actually below the position with the strongest light. Therefore, in this embodiment, the drying rod is controlled to ascend again, and stops after returning to the position with the strongest light. At this moment, due to the motor inertia, even if the light collection module is not at the position with the strongest light, the clothes to be dried are just at the position with the strongest light.
[0157] In this embodiment, as shown in Figure 4 , the light chasing function can be turned on in the following manner to enable the drying rod to enter the continuous light chasing operation:
[0158] First, the daytime starting time point T 始 and the daytime ending time point T 末 are determined according to the longitude and latitude information of the clothes drying machine installation site. The specific manner can be as follows: the time zone n (n = 5, 6, 7, 8, and 9) in which the longitude of the clothes drying machine installation site is located is determined according to the longitude and latitude information, the daytime starting time point T 始 is determined as 8 + 9 - n, and the daytime ending time point T 末 is determined as 18 + 9 - n.
[0159] Then, it is determined whether the current time T is between the daytime starting time point T 始 and the daytime ending time point T 末 . If yes, the light chasing function is turned on.
[0160] In this embodiment, in the continuous light chasing process, as shown in Figure 4As shown, the method further comprises the following operation steps: acquiring the light intensity of the drying rod in real time; when it is detected that the light intensity of the drying rod is less than a third preset value and the duration exceeds a first threshold value, controlling the drying rod to rise to the top and turning off the light chasing function; in this embodiment, the third preset value can be set to 8000 lux, and the first threshold value can be set to 5 minutes. That is, after the light chasing function is turned on for the first time, if it is detected that the light intensity is slightly weak and the duration exceeds the threshold value, it can be determined that the current light intensity does not meet the conditions and is not suitable for light chasing. At this time, the drying rod is preferably controlled to rise to the top position, and the light chasing function is turned off.
[0161] In this embodiment, when the light chasing function is turned off, as shown in Figure 4 , the light chasing function can also be turned on in the following way: monitoring the light intensity of the drying rod in real time; when it is detected that the light intensity of the drying rod is not less than a third preset value and the duration exceeds a second threshold value, issuing an instruction to turn on the light chasing function; the second threshold value can also be set to 5 minutes. In this embodiment, after the instruction to turn on the light chasing function is issued, if the current time is between the starting time point T 始 and the ending time point T 末 of the day, it can be determined that the light chasing function is turned on. Of course, if the starting time point T 始 and the ending time point T 末 of the day are not considered, the light chasing function can also be directly controlled to be turned on when the light intensity of the drying rod meets the condition that the light intensity is not less than the third preset value and the duration exceeds the second threshold value.
[0162] In this embodiment, during the process of continuous light chasing, the following steps are further included:
[0163] monitoring the weather information of the installation site of the clothes drying machine in real time; when the weather changes to a first preset weather, controlling the drying rod to be at the top position and turning off the light chasing function;
[0164] After the light chasing function is turned off, the weather information of the installation site of the clothes drying machine is monitored in real time; when the weather changes to a second preset weather, an instruction to turn on the light chasing function is issued. In this embodiment, after the instruction to turn on the light chasing function is issued, if the current time is between the starting time point T 始 and the ending time point T 末 of the day, it can be determined that the light chasing function is turned on. Of course, if the starting time point T 始 and the ending time point T 末 of the day are not considered, the light chasing function can also be directly controlled to be turned on when the weather changes to the second preset weather.
[0165] In this embodiment, the first preset weather can refer to overcast weather, and the second preset weather can refer to sunny weather. After the clothes drying machine is connected to the network, the weather information is obtained through the cloud platform; specifically, the first preset weather and the second preset weather can also be set according to the geographical location of the installation site of the clothes drying machine, so as to ensure the drying efficiency of the clothes.
[0166] In summary, the drying continuous light tracking control method of the embodiment determines the light variation based on the light intensity on the drying rod during the drying process of the clothes, further determines the light deviation direction, controls the upward movement of the drying rod to the position meeting the light condition, i.e. the optimal drying position, when the light deviates upward, controls the downward movement of the drying rod to find the position meeting the condition, and controls the upward movement of the drying rod and finds the position meeting the condition during the upward movement when the downward movement fails; based on this, the method can continuously track the light in the drying area based on the real-time deviated light, so that the clothes on the drying rod can always be in the optimal drying position, effectively improving the drying efficiency of the clothes drying machine.
[0167] Those skilled in the art can understand that all or part of the steps in the method of the embodiment can be completed by programs instructing related hardware, and the corresponding programs can be stored in a computer readable storage medium. It should be noted that although the method operations of the embodiment 1 are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all of the shown operations must be performed to achieve the desired result. On the contrary, the steps can be changed in the order of execution, some steps can be executed simultaneously, additionally or alternatively, some steps can be omitted, a plurality of steps can be combined into one step for execution, and / or one step can be divided into a plurality of steps for execution.
[0168] Embodiment 2
[0169] The embodiment discloses a drying continuous light tracking control system applied to a clothes drying machine. The clothes drying machine includes a host and a drying rod. The drying rod is arranged below the host through a steel wire rope. The host is provided with a host controller, a motor and the like. The host controller is connected to the motor through a motor driver. The motor controls the lifting movement of the steel wire rope, so as to realize the automatic lifting of the drying rod.
[0170] As shown in Figure 5 The drying continuous light tracking control system of the embodiment includes a controller and a light tracking device. The light tracking device includes a plurality of light sensors connected to the controller. Among them:
[0171] Each light sensor is installed on the drying rod of the clothes drying machine, for real-time monitoring of the light intensity information on the drying rod and sending to the controller. In the embodiment, at least two light sensors must be arranged on the drying rod to realize the determination of the light deviation direction. In the embodiment, the light sensor can adopt an ambient light sensor IC with a model of BH1750FVI. The sensor can measure the light intensity (lumen value lux) of the ambient light.
[0172] A controller is configured to execute the sunning duration sun-tracking control method described in Embodiment 1; wherein the controller is directly or indirectly connected to the movement driving mechanism of the drying rod, and is configured to control the movement of the drying rod based on the light offset direction.
[0173] In this embodiment, one or more groups of light sensors can be arranged on the drying rod; when it is necessary to obtain the light intensity information of a group of positions on the drying rod, light sensors can be arranged at each position of the group of positions. As shown in Embodiment 1, each position in the group of positions is along the movement direction of the drying rod, so the light sensors at each position are also arranged along the movement direction of the drying rod. When it is necessary to obtain the light intensity information of multiple groups of positions on the drying rod and determine the light offset direction in combination with the light intensity information of the multiple groups of positions, light sensors can be arranged correspondingly in each group of positions.
[0174] When there are multiple groups of light sensors, each group of light sensors can be arranged along the transverse direction of the drying rod, as shown in Figure 3b One or more groups of light sensors are arranged with at least two light sensors arranged along the movement direction of the drying rod, as shown in Figure 3c Each group of sensors includes three light sensors arranged along the movement direction of the drying rod. Finally, the total difference SUM of light intensity can be calculated in combination with the light intensity information detected by the multiple groups of light sensors to determine the light offset direction. The specific calculation method and determination principle can be as shown in Embodiment 1, which will not be described here. The light sensors arranged along the movement direction of the drying rod in the same group can be sensors arranged on the same vertical line of the ground, as shown in Figures 3a to 3c They can also be sensors arranged within a certain range in the transverse direction and along the movement direction of the drying rod, i.e., up and down, as shown in Figure 3d The specific arrangement can be determined according to the light conditions at the installation site of the clothes drying machine.
[0175] In this embodiment, as shown in Figure 6 The sun-tracking device further includes a mounting body 1; the light sensors in the sun-tracking device are arranged on the mounting body 1, which is arranged on the drying rod through the mounting body 1. The mounting body is embedded with a convex Fresnel hemispherical lens 2; each light sensor in the sun-tracking device is arranged correspondingly below each convex Fresnel hemispherical lens. The mounting body can be attached to the drying rod by magnetic attraction.
[0176] In this embodiment, to determine the light offset direction, at least two light sensors can be arranged on the same mounting body, as shown in Figure 6As shown, after the mounting body is installed onto the drying rack, at least two light sensors on the mounting body are positioned along the direction of movement of the drying rack. Alternatively, only one light sensor can be installed on the mounting body, in which case at least two mounting bodies positioned along the direction of movement of the drying rack are required. When there are multiple sets of light sensors, each set of light sensors can be respectively installed on each mounting body, and the mounting bodies can be arranged along the lateral position of the drying rack.
[0177] In this embodiment, the controller can be either the main controller of the clothes drying rack or a standalone controller. When it is the main controller, the light sensor on the drying rod is connected to the main controller via a wired connection. The main controller implements the light-tracking control method of Embodiment 1. The main controller can be an MCU. The direct or indirect connection of the controller to the movement mechanism of the drying rod means that: when the controller is the main controller, it is directly connected to the movement drive mechanism of the drying rod, directly sending corresponding control commands to the movement drive mechanism to control the movement of the drying rod. When the controller is a standalone controller, it is indirectly connected to the movement drive mechanism of the drying rod; that is, there is no direct connection between the controller and the movement drive mechanism of the drying rod, and control is achieved through the main controller of the drying rod.
[0178] In this embodiment, if the controller is independent of other controllers of the clothes drying rack main controller, it can communicate with the clothes drying rack main controller via a wireless communication module or a wired connection. Specifically, when the controller executes the method of Embodiment 1 above, it sends the corresponding clothes drying rod lifting control command to the clothes drying rack main controller, which then controls the working state of the clothes drying rack motor to achieve clothes drying rod lifting control during the light tracking process. Alternatively, the controller can be configured to only receive light intensity information sent by the light sensor and send the received light intensity information to the clothes drying rack main controller, which then implements the method of Embodiment 1. The wireless communication module connected to the controller can be a Bluetooth module, a Wi-Fi module, a Zigbee module, an RF module, etc., and the controller can also use an MCU.
[0179] like Figure 5 As shown, when the controller in this embodiment is an independently set controller, the controller can be set on the drying rack and connected to the light sensor that is also set on the drying rack. When the light tracking device in this embodiment includes an installation body, the controller can also be set on the installation body.
[0180] In the system of the embodiment, the light tracking controller can further include a solar panel arranged on the drying rod. When the controller is arranged independently, the controller is connected to the solar panel, and the controller and the light sensor are powered by the solar panel. For the independently arranged controller, when the controller is always powered, the controller is generally connected to the main controller of the clothes drying machine in a wired manner, and is powered by the input power of the clothes drying machine. Therefore, the controller and the main controller of the clothes drying machine can be set to be in bidirectional communication. When the power supply mode of the controller uses the solar panel, the light tracking data collected by the controller is unidirectionally sent out only when the solar panel on the controller is irradiated by sunlight and can normally drive the controller. At this time, the controller and the main controller of the clothes drying machine are in unidirectional communication, that is, the controller does not receive the data sent by the main controller of the clothes drying machine, and the data sent out can be received by the main controller of the clothes drying machine and executed by the light tracking control method of the embodiment 1. In this way, the cost of the controller can be reduced, and the controller does not need to be additionally powered in a wired manner.
[0181] In the embodiment, the controller can be connected to an external terminal and / or a cloud platform through a networking module, and real-time weather information, network time, latitude and longitude information and the like can be obtained through the network. The controller can automatically turn on and turn off the light tracking function based on the weather information, the network time, the latitude and longitude information and the like. The networking module can be a WIFI module and the like.
[0182] Embodiment 3
[0183] The embodiment discloses an electronic device, including at least one processor, and a memory connected to the at least one processor in communication, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the drying and continuous light tracking control method of the embodiment 1, as follows:
[0184] Obtaining light intensity information of the drying rod of the clothes drying machine, and determining light intensity change of the drying rod;
[0185] Determining a light offset direction according to the light intensity change of the drying rod;
[0186] Controlling the drying rod to make lifting motion according to the light offset direction, and collecting light intensity in the lifting process of the drying rod to determine a position where the light intensity of the drying rod meets a condition;
[0187] Controlling the drying rod to be at the determined position.
[0188] The specific process of determining the light offset direction by rising is as follows:
[0189] Obtaining light intensity information of the drying rod in real time;
[0190] When it is detected that the current light intensity of the drying rod is less than a preset value, the light intensity of each position on the drying rod at each time between the last stop time and the current time is acquired respectively;
[0191] The light intensity sum of each position on the drying rod at the above time is calculated respectively;
[0192] The light intensity total difference SUM is calculated according to the light intensity sum of each position on the drying rod at the above time;
[0193] The light intensity total difference SUM is compared with the light threshold value;
[0194] When SUM>light threshold value, it is determined that the light is upwardly deviated;
[0195] When SUM<-light threshold value, it is determined that the light is downwardly deviated.
[0196] The specific implementation process of each step is shown in Embodiment 1, which will not be repeated here.
[0197] In this embodiment, the electronic device can be a terminal device such as a mobile phone, a computer, a tablet computer, etc. The electronic device includes a processor, a memory, a bus and a communication interface, the processor, the communication interface and the memory are connected through the bus; the processor is configured to execute the executable modules stored in the memory, such as a computer program.
[0198] Embodiment 4
[0199] This embodiment discloses a computer readable storage medium, which stores a computer program, and the computer program is characterized in that when the computer program is executed by a processor, the drying duration tracking light control method in Embodiment 1 is realized.
[0200] In this embodiment, the storage medium can be a disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), a U disk, a mobile hard disk and the like.
[0201] The above is only an optional implementation of some implementation scenarios of the present application. It should be pointed out that, for those skilled in the art, other similar implementation means based on the technical concept of the present application can be adopted without departing from the technical concept of the present application, and such implementation means also belong to the protection scope of the present application.
Claims
1. A method for controlling continuous light tracking during clothes drying, applied to a clothes drying machine, characterized in that, include: Obtain the light intensity information of the clothes drying rack rod to determine the changes in light intensity of the drying rack rod; Determine the direction of light offset based on the changes in light intensity on the drying rack; Based on the direction of light offset, the drying rack is controlled to move up and down, and the light intensity during the raising and lowering process is collected to determine the position where the light intensity of the drying rack meets the conditions; where: When the illumination offset direction is downward movement of the light rays, the following operation is performed: S201, Control the drying rack to perform a downward movement; S202. During the descent of the drying rack, the light intensity of the drying rack is collected at a preset sampling period; S203. Each N data points are collected as a group, and the average of the group of data is taken to determine whether it is greater than the second preset value. If so, control the drying rack to stop descending, stopping at the position where the light intensity of the drying rack meets the conditions; If not, determine whether the drying rack is currently at the bottom position; if not, control the drying rack to continue descending and return to step S202; if yes, execute step S204. S204. Control the drying rack to perform an upward movement; S205. Collect the light intensity of the drying rack at a preset sampling period during the rising process of the drying rack; S206. Each time N data points are collected, they are grouped together. The average value of the data in the group is calculated and saved. It is then determined whether the following preset conditions are met: the data value is less than the previous data value, the previous data value is the current maximum data value and greater than the first preset value. If so, control the drying rack to stop rising, stopping at the position where the light intensity of the drying rack meets the conditions; If not, determine whether the drying rack has risen to the top. If yes, control the drying rack to stay at the top position and turn off the spotlight function. If not, control the drying rack to continue rising and return to step S205. Control the drying rack to be in the position specified above.
2. The method for controlling continuous light tracking during drying according to claim 1, characterized in that, The specific process for determining the direction of illumination offset is as follows: Real-time acquisition of light intensity information on the drying rack; When the light intensity of the drying rack is detected to be less than a preset value at the current moment, the light intensity of each position in each group on the drying rack is obtained at each moment within a specified time; wherein, each position in the same group on the drying rack is a position arranged along the direction of movement of the drying rack, and the specified time is the time from the last time the drying rack stops to the current moment. For each group of locations, the sum of the differences in light intensity between the locations within that group over the specified time period is determined based on the light intensity at each location at different times within the specified time period. Calculate the total light intensity difference SUM based on the sum of the light intensity differences for each group of locations within a specified time. Compare the total difference in light intensity (SUM) with the light threshold. When SUM > illumination threshold, the illumination is determined to be shifted upwards; When SUM <- the illumination threshold, the illumination is determined to be shifted downwards.
3. The method for controlling continuous light tracking during drying according to claim 2, characterized in that, The process of calculating the total light intensity difference SUM based on the sum of the light intensity differences for each group of locations within a specified time is as follows: When only one set of locations is included, the total difference in illuminance, SUM, is equal to the sum of the differences in illuminance of that set of locations over a specified time period. When multiple locations are included, the sum of the light intensity differences of each location within a specified time is averaged to obtain the total light intensity difference SUM.
4. The method for controlling continuous light tracking during drying according to claim 2 or 3, characterized in that, Light sensors are installed at various positions within each group on the drying rod, meaning that the light sensors in each group are positioned along the direction of the drying rod's movement. The specific process for calculating the sum of the light intensity differences at each group of positions over a specified time is as follows: First, for each location in each group, calculate the sum of the light intensity differences between that location and the location below it over a specified time period: ; in, Let be the light intensity detected at position a on the drying rod at time k. Let be the light intensity detected at position b on the drying rack at time k, where k is the kth time within a specified time period, and position b and position a belong to the same group of positions, with position b above position a; Secondly, for each group of locations, the sum of the light intensity differences calculated above is averaged to obtain the sum of the light intensity differences corresponding to that group of locations.
5. The method for controlling continuous light tracking during drying according to claim 1, characterized in that, Based on the direction of light offset, the drying rack is controlled to move up and down in a predetermined direction, and the light intensity during the upward and downward movement of the drying rack is collected to determine the position where the light intensity of the drying rack meets the conditions. The specific process includes: When the illumination offset direction is upward movement of the light rays, the following operation is performed: S101, Control the drying rack to perform an upward movement; S102. Collect the light intensity of the drying rack at a preset sampling period during the rising process of the drying rack; S103. Each time N data points are collected, they are grouped together. The average value of the data in the group is calculated and saved. It is then determined whether the following preset conditions are met: the data value is less than the previous data value, the previous data value is the current maximum data value and greater than the first preset value. If so, the drying rack will stop, and the stopping position will be the position where the light intensity of the drying rack meets the conditions; If not, determine whether the drying rack has risen to the top. If yes, control the drying rack to stay at the top position and turn off the spotlight function. If not, control the drying rack to continue rising and return to step S102.
6. The method for controlling continuous light tracking during drying according to claim 1, characterized in that, The method further includes: real-time monitoring of the light intensity on the drying rack after detecting that the light tracking function is activated; The real-time monitored light intensity of the drying rack is compared with the third preset value; When the light intensity on the drying rack is less than the third preset value and the duration exceeds the first threshold, the drying rack is controlled to rise to the top and the light-tracking function is turned off. When the light tracking function is off, the light intensity of the drying rack is monitored in real time. When the light intensity of the drying rack is detected to be no less than the third preset value and the duration exceeds the second threshold, a command to turn on the light tracking function is issued.
7. The method for controlling continuous light tracking during drying according to claim 1, characterized in that, The method further includes: The system monitors the weather information at the installation location of the clothes drying rack in real time. When the weather changes to the first preset weather, it controls the drying rack to be in the top position and turns off the spotlight function. When the follow-light function is off, it monitors the weather information at the clothes drying rack installation location in real time. When the weather changes to the second preset weather, it issues a command to turn on the follow-light function.
8. The method for controlling continuous light tracking during drying according to claim 1, characterized in that, The light intensity of the drying rack is monitored in real time after the light tracking function is detected to be turned on. The method further includes: Determine the start and end times of the daytime for the clothes drying rack installation location based on its latitude and longitude information. The spotlight feature will be activated when the current time falls between the start and end times of daytime.
9. A continuous light-tracking control system for drying clothes, characterized in that, It includes a controller and a light tracking device, wherein the light tracking device includes multiple light sensors connected to the controller; Each light sensor is installed on the clothes drying rack to monitor the light intensity on the drying rack in real time and send the information to the controller; at least two light sensors are arranged along the direction of movement of the drying rack. The controller is used to execute the continuous light tracking control method for drying as described in any one of claims 1 to 8.
10. A computing device, comprising: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the continuous light-tracking control method for drying as described in any one of claims 1 to 8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the continuous light tracking control method for drying as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Sunlight tracking system and method
CN106123371A
Sunlight tracking method of clothes drying rod of drying rack
CN108660709A
Clothes airing equipment control method and device, clothes airing equipment and storage medium
CN115341374A
Airing control method, airing device, computer equipment and computer storage medium
CN116339213A
Clothes airing machine and airing light following control system thereof
CN220290068U