CN111121666A - Angle determination method and electronic equipment - Google Patents

Angle determination method and electronic equipment Download PDF

Info

Publication number
CN111121666A
CN111121666A CN201911356536.6A CN201911356536A CN111121666A CN 111121666 A CN111121666 A CN 111121666A CN 201911356536 A CN201911356536 A CN 201911356536A CN 111121666 A CN111121666 A CN 111121666A
Authority
CN
China
Prior art keywords
angle
target object
illumination intensity
sensor
sensing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911356536.6A
Other languages
Chinese (zh)
Other versions
CN111121666B (en
Inventor
王力军
虞新立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201911356536.6A priority Critical patent/CN111121666B/en
Publication of CN111121666A publication Critical patent/CN111121666A/en
Application granted granted Critical
Publication of CN111121666B publication Critical patent/CN111121666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/26Measuring arrangements characterised by the use of optical techniques for measuring angles or tapers; for testing the alignment of axes

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The application discloses an angle determining method and electronic equipment, which are used for simplifying user operation, and the method comprises the following steps: under the condition that a trigger event for determining the angle of a target object is received, acquiring first illumination intensity received by first sensing equipment and second illumination intensity received by second sensing equipment which are arranged in the target object; judging whether the angle of the target object reaches a preset angle or not according to the first illumination intensity and the second illumination intensity; and acquiring the angle state of the target object according to the judgment result, and determining that the triggering event is ended. By adopting the scheme disclosed by the application, the angle of the target object can be automatically determined based on the illumination intensity received by the first sensor and the second sensor, manual determination by a user is not needed, and user operation is simplified.

Description

Angle determination method and electronic equipment
Technical Field
The present disclosure relates to the field of computers, and in particular, to an angle determining method and an electronic device.
Background
Along with the continuous development of intelligent house to and the demand in saving space, more and more smart machine has increased the hanging function, be about to smart machine hangs on the wall, both saved space, promotes the space usage, plays the effect of decorating again, for example, wall-hanging intelligent album, wall-hanging high definition video stand etc..
In a traditional scheme, when wall-mounted equipment is hung, visual inspection is carried out through manpower, so that the wall-mounted equipment can keep vertical hanging or horizontal hanging, and in such a mode, a user needing to hang the equipment continuously adjusts an angle in a hanging process, and the operation is complex, so that how to provide an angle determining method for simplifying the operation of the user is an urgent technical problem to be solved.
Disclosure of Invention
An object of an embodiment of the present application is to provide an angle determining method and an electronic device, so as to simplify operations of a user.
In order to solve the technical problem, the embodiment of the application adopts the following technical scheme: an angle determination method, comprising:
under the condition that a trigger event for determining the angle of a target object is received, acquiring first illumination intensity received by first sensing equipment and second illumination intensity received by second sensing equipment which are arranged in the target object;
judging whether the angle of the target object reaches a preset angle or not according to the first illumination intensity and the second illumination intensity;
and acquiring the angle state of the target object according to the judgment result, and determining that the triggering event is ended.
The beneficial effect of this application lies in: whether the angle of the target object reaches a preset angle or not can be judged according to the first illumination intensity and the second illumination intensity received by the first sensor and the second sensor; and then the angle state of the target object is obtained according to the judgment result, so that the angle of the target object can be automatically determined based on the illumination intensity received by the first sensor and the second sensor, manual determination by a user is not needed, and the user operation is simplified.
In one embodiment, the determining whether the angle of the target object reaches a preset angle according to the first illumination intensity and the second illumination intensity includes:
and judging whether the difference value of the first illumination intensity and the second illumination intensity reaches a preset value, wherein the preset value is determined by the relative position relationship of the first sensing equipment and the second sensing equipment.
In one embodiment, the method further comprises:
the method comprises the steps of determining that a trigger event for determining the angle of a target object is received when an angle adjustment instruction of the target object is received or when the target object is detected to rotate.
In one embodiment, in the case that it is determined that the triggering event is over, the method further comprises:
and sending out a prompt of the angle state of the target object at present.
In one embodiment, the method further comprises:
controlling the target object to rotate under the condition that the angle of the target object does not reach a preset angle;
the obtaining the angle state of the target object according to the judgment result comprises:
determining that the angle of the target object reaches a preset angle;
the determining that the trigger event is over includes:
and controlling the target object to stop rotating.
The beneficial effect of this embodiment lies in: and under the condition that the angle of the target object does not reach the preset angle, controlling the target object to rotate, and under the condition that the angle of the target object reaches the preset angle, controlling the target object to stop rotating, so that the target object can be automatically adjusted to the preset angle without manual participation, and the target object can be automatically adjusted.
In one embodiment, the method further comprises:
and under the condition that the target object is detected to stop rotating, controlling the sensor which receives the minimum illumination intensity in the first sensing equipment and the second sensing equipment to stop working.
The beneficial effect of this embodiment lies in: and under the condition that the target object is detected to stop rotating, controlling the sensor with the minimum received illumination intensity in the first sensing equipment and the second sensing equipment to stop working, thereby reducing the consumption of electric energy resources.
In one embodiment, the first sensing device and the second sensing device are arranged on the surface of the target object, and an included angle between the first sensing device and the second sensing device is a preset angle; the first sensing equipment and the second sensing equipment have the same structure;
the first sensing device includes: a sensor, a light screen and a transparent shell;
the sensor is fixed in the first sensing device;
the light shielding plate is positioned in an area between the sensor and the transparent shell cover and is movably connected with the sensing equipment; wherein the content of the first and second substances,
in the rotation process of the first sensing equipment, the rotation friction force of the connection part of the shading plate and the first sensing equipment is smaller than the gravity borne by the shading plate, so that the shading plate is always vertically suspended under the action of the gravity, and the sensor is completely shielded by the shading plate under the condition that the first sensing equipment is vertical to the horizontal plane;
the transparent shell is used for packaging the sensor and the shading plate.
The beneficial effect of this embodiment lies in: in the rotation process of the first sensing equipment, the light shielding plate always keeps vertical suspension under the action of gravity, so that in the rotation process of the first sensing equipment, the sensor changes the received illumination intensity due to the change of the part shielded by the light shielding plate, and the angle of the first sensing equipment can be judged based on the illumination intensity.
The present application further provides an electronic device, comprising:
first sensing equipment, set up in the electronic equipment includes: a sensor, a light screen and a transparent shell;
the sensor is fixed in the first sensing device;
the light shielding plate is positioned in an area between the sensor and the transparent shell cover and is movably connected with the sensing equipment, so that the light shielding plate is always vertically suspended under the action of gravity; wherein, when the first sensing device is vertical to the horizontal plane, the sensor is completely shielded by the shading plate, and when the first sensing device is parallel to the horizontal plane, the sensor is completely exposed out of the shading plate;
the transparent shell is used for packaging the sensor and the shading plate;
the second sensing equipment is arranged in the electronic equipment, the structure of the second sensing equipment is the same as that of the first sensing equipment, and the included angle between the second sensing equipment and the first sensing equipment is a preset angle.
The beneficial effect of this embodiment lies in: in the rotating process of the sensing equipment, the received illumination intensity of the sensor in the sensing equipment is changed due to the change of the part shielded by the light shielding plate, so that the angle of the sensing equipment can be judged based on the illumination intensity, the angle of the electronic equipment is calculated along with the illumination intensity difference between the two sensing equipment, the automatic determination of the angle of the electronic equipment is realized, and the manual operation is reduced.
In one embodiment, the electronic device further comprises:
the vibration sensor is arranged in the electronic equipment and used for sending a trigger event for determining the angle of the electronic equipment to the processor when the electronic equipment is detected to rotate or shake with amplitude larger than a preset amplitude occurs;
the processor is arranged in the electronic equipment, connected with the vibration sensor and used for acquiring first illumination intensity received by first sensing equipment and second illumination intensity received by second sensing equipment which are arranged on the electronic equipment when a trigger event which is sent by the vibration sensor and used for determining the angle of the electronic equipment is received; judging whether the angle of the electronic equipment reaches a preset angle or not according to the first illumination intensity and the second illumination intensity; and under the condition that the angle of the electronic equipment reaches a preset angle, determining that the trigger event is ended, and controlling a loudspeaker and/or a display of the electronic equipment to give out a prompt that the electronic equipment reaches a preset state.
The beneficial effect of this embodiment lies in: the processor can automatically judge whether the angle of the electronic equipment reaches a preset angle according to the first illumination intensity and the second illumination intensity; and when the angle of the electronic equipment reaches the preset angle, determining that the triggering event is ended, and controlling a loudspeaker and/or a display of the electronic equipment to send a prompt that the electronic equipment reaches the preset state, so that the automatic determination of the angle of the electronic equipment is realized, and the prompt that the electronic equipment reaches the preset state can be automatically sent to a user when the angle of the electronic equipment reaches the preset state.
The present application further provides a sensing device, disposed in an electronic device, including: a sensor, a light screen and a transparent shell;
the sensor is fixed in the sensing equipment;
the light shielding plate is positioned in an area between the sensor and the transparent shell cover and is movably connected with the sensing equipment, so that the light shielding plate is always vertically suspended under the action of gravity.
The beneficial effect of this embodiment lies in: in the rotating process of the sensing equipment, the light shielding plate always keeps vertical suspension under the action of gravity, so that in the rotating process of the sensing equipment, the intensity of received illumination is changed along with the change of the part of the sensor, which is shielded by the light shielding plate, and the angle of the sensing equipment can be judged based on the intensity of the illumination.
Drawings
Fig. 1 is a flowchart of an angle determining method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a target object or an electronic device for determining an angle of the target object in an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a target object or an electronic device for determining an angle of the target object according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a target object rotation process according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a target object or an electronic device for determining an angle of the target object according to another embodiment of the present disclosure;
fig. 6 is a flowchart of an angle determining method according to another embodiment of the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
The embodiment of the application provides an angle determining method which can be applied to wall-mounted intelligent equipment. As shown in FIG. 1, the method includes the following steps S11-S13:
in step S11, in a case where a trigger event for determining an angle of the target object is received, acquiring a first illumination intensity received by a first sensing device and a second illumination intensity received by a second sensing device provided in the target object;
in step S12, determining whether the angle of the target object reaches a preset angle according to the first illumination intensity and the second illumination intensity;
in step S13, the angle state of the target object is known according to the result of the determination, and the end of the trigger event is determined.
In this embodiment, under the condition that a trigger event for determining an angle of a target object is received, a first illumination intensity received by a first sensing device and a second illumination intensity received by a second sensing device, which are arranged in the target object, are obtained; for example, when the target object is a wall-mounted smart device, an angle adjustment button is provided on the wall-mounted smart device, so that the user can send a trigger event for determining the angle of the wall-mounted smart device to the wall-mounted smart device by triggering the angle adjustment button, in addition, when the user hangs the wall-mounted smart device on a wall, the wall-mounted smart device can swing, a vibration sensor in the wall-mounted smart device can detect the self-swing, and when the user detects the self-swing, the trigger event for determining the angle of the wall-mounted smart device can also be sent to the wall-mounted smart device. At the moment, acquiring first illumination intensity received by first sensing equipment and second illumination intensity received by second sensing equipment in wall-mounted intelligent equipment; judging whether the angle of the target object reaches a preset angle or not according to the first illumination intensity and the second illumination intensity; and acquiring the angle state of the target object according to the judgment result, and determining that the triggering event is ended.
For example, when a user hangs a wall-mounted intelligent device on a wall, the wall-mounted intelligent device swings, and when the swing of the wall-mounted intelligent device is detected, a first illumination intensity received by a first sensing device and a second illumination intensity received by a second sensing device arranged in the wall-mounted intelligent device are obtained; the first sensing equipment and the second sensing equipment have a certain included angle, the first sensing equipment and the second sensing equipment have the same structure and comprise sensors, light shielding plates and transparent shells, the light shielding plates are positioned in the area between the sensors and the transparent shells and are movably connected with the sensing equipment, and the light shielding plates are always vertically suspended under the action of gravity; therefore, in the rotating process of the wall-mounted intelligent equipment, the sensing equipment also rotates along with the wall-mounted intelligent equipment, at the moment, the clock keeps vertically suspended under the action of gravity, and the position of the sensor in the sensing equipment is changed, so that in the rotating process of the sensing equipment, the part of the sensor exposed out of the light screen is gradually increased or gradually reduced along with the rotation, and under the condition that the sensing equipment is vertical to the horizontal plane, the sensor is completely shielded by the light screen; under the condition that the sensing equipment is parallel to the horizontal plane, the sensor is completely exposed out of the shading plate; therefore, under the condition that the external illumination intensity is not changed, the illumination intensities received by the internal sensors of the sensing equipment at different angles are different, and therefore, when the first sensing equipment and the second sensing equipment are arranged in the wall-mounted intelligent equipment, the angles at which the wall-mounted intelligent equipment is located are different, the difference values of the illumination intensities received by the sensors in the first sensing equipment and the second sensing equipment are also different, and the corresponding illumination intensity difference values at the same angle are the same, so that under the condition that the external illumination intensity is not changed, the angle at which the wall-mounted intelligent equipment is located can be determined based on the difference values of the illumination intensities received by the sensors in the first sensing equipment and the second sensing equipment.
It can be understood that if the first sensing device is perpendicular to the long side of the wall-mounted smart device and the second sensing device is perpendicular to the short side of the wall-mounted smart device, then the wall-mounted smart device can be determined to be perpendicular or parallel to the horizontal plane under the condition that the difference between the illumination intensities received by the sensors in the first sensing device and the second sensing device is the largest.
The beneficial effect of this application lies in: whether the angle of the target object reaches a preset angle or not can be judged according to the first illumination intensity and the second illumination intensity received by the first sensor and the second sensor; and then the angle state of the target object is obtained according to the judgment result, so that the angle of the target object can be automatically determined based on the illumination intensity received by the first sensor and the second sensor, manual determination by a user is not needed, and the user operation is simplified.
In one embodiment, the step S12 can be implemented as the following steps:
and judging whether the difference value between the first illumination intensity and the second illumination intensity reaches a preset value, wherein the preset value is determined by the relative position relationship between the first sensing equipment and the second sensing equipment.
In this embodiment, determining whether the angle of the target object reaches the preset angle according to the first illumination intensity and the second illumination intensity may be implemented as follows: and judging whether the difference value between the first illumination intensity and the second illumination intensity reaches a preset value, wherein the preset value is determined by the relative position relationship between the first sensing equipment and the second sensing equipment.
It is to be understood that the relative positional relationship referred to herein may also be understood as the angle between the first sensing device and the second sensing device. Fig. 2 is an implementation manner in which the first sensing device 211 and the second sensing device 212 are disposed in the target object 21, and it can be easily seen from fig. 2 that if the target object 21 is rectangular, the first sensing device 211 and the second sensing device 212 are perpendicular to the long side and the short side of the target object, respectively, then in the case that the included angle between the first sensing device 211 and the second sensing device 212 reaches 90 degrees, if the target object is in a horizontal state, the sensor 2112 in the first sensing device 211 is completely exposed outside the light shielding plate 2111, and the sensor in the second sensing device 212 is shielded by the light shielding plate 2121, so that the difference between the first illumination intensity and the second illumination intensity reaches a maximum value, which is taken as a preset value, that is, when the difference between the first illumination intensity and the second illumination intensity reaches the maximum value, it is determined that the target object is in the horizontal state. When the relative positions of the first sensing device and the second sensing device are not the above-mentioned cases, such as the case shown in fig. 3, if the target object 31 is in the horizontal state, the portions of the first sensing device 311 and the second sensing device 312 exposed outside the light shielding plate are the same, and therefore, the difference between the first illumination intensity and the second illumination intensity is 0 when the target object is in the horizontal state, so, if the relative positions of the first sensing device 311 and the second sensing device 312 are as shown in fig. 3, 0 may be taken as a preset value, and when the difference between the first illumination intensity and the second illumination intensity is 0, it is determined that the target object is in the horizontal state, and the target object may be at other angles. Since the relative positional relationship of the first sensing device and the second sensing device is different in fig. 2 and 3, the preset value is different even if the state of the target object to be judged is the same, and therefore, the preset value is determined by the relative positional relationship of the first sensing device and the second sensing device.
It should be noted that, besides the determination method of the preset value described in this embodiment, a person skilled in the art may also set other determination methods of the preset value according to needs, for example, the preset value may also be determined by the following method: recording values of the first illumination intensity and the second illumination intensity in real time in the rotating process of the target object; calculating the difference value of the first illumination intensity and the second illumination intensity at each time point; comparing the difference values of the time points to obtain the maximum value of the difference values of the first illumination intensity and the second illumination intensity; and determining the maximum value of the difference value between the first illumination intensity and the second illumination intensity as a preset value.
In one embodiment, the method may be implemented as the following steps:
and determining that a trigger event for determining the angle of the target object is received when an angle adjustment instruction of the target object is received or when the target object is detected to rotate.
In this embodiment, as shown in fig. 2, the target object is a wall-mounted smart device 21, and the wall-mounted smart device 21 is provided with an angle adjustment button 213, so that the user can send a trigger event for determining the angle of the wall-mounted smart device to the wall-mounted smart device by triggering the angle adjustment button 213, and in addition, when the user hangs the wall-mounted smart device on the wall through a hanging hole 214, the wall-mounted smart device swings, and a vibration sensor in the wall-mounted smart device can detect the swing of itself, and when the swing of itself is detected, the trigger event for determining the angle of the wall-mounted smart device can also be sent to the wall-mounted smart device.
In one embodiment, in the case that it is determined that the triggering event is over, the method may be further implemented as the steps of:
and sending out a prompt of the angle state of the target object at present.
For example, if the target object is a rectangle and the first and second sensing devices are perpendicular to the long and short sides of the target object, respectively, the user sets the angle of the target object to be a vertical state or a parallel state, and if the target object is a rectangle, the difference between the first and second illumination intensities reaches a maximum value if the target object is in a horizontal or vertical state in a case where the included angle between the first and second sensing devices reaches 90 degrees, and thus the maximum value may be set as a preset value. If the difference value between the first illumination intensity and the second illumination intensity reaches the maximum value, the angle state of the target object reaches the horizontal state or the vertical state, and at the moment, a prompt that the angle state of the target object is the vertical state or the horizontal state is sent out, so that the user is informed that the target object is in the angle desired by the user. Of course, if the user wants to set the angle of the target object to be 45 degrees from the horizontal plane, when the difference between the first illumination intensity and the second illumination intensity reaches the minimum value, it indicates that the angle of the target object has reached the state desired by the user, that is, the angle between the target object and the horizontal plane is 45 degrees, and at this time, a prompt that the angle between the target object and the horizontal plane is 45 degrees is sent out, so as to inform the user that the target object is at the angle desired by the user.
In one embodiment, the method may also be implemented as the steps of:
controlling the target object to rotate under the condition that the angle of the target object does not reach the preset angle;
the learning of the angular state of the target object according to the result of the determination in the above-described step S13 may be implemented as the following steps:
determining that the angle of the target object reaches a preset angle;
the determination of the end of the triggering event in the above step S13 may be implemented as the following steps:
the control target object stops rotating.
In this embodiment, as shown in fig. 4, it may be determined whether the angle of the target object reaches a preset angle based on a difference between the first illumination intensity and the second illumination intensity, for example, to adjust the target object to be perpendicular to a horizontal plane, if the target object does not reach the preset angle, if an included angle between the target object and the horizontal plane is 45 degrees, the difference between the first illumination intensity and the second illumination intensity is 0, at this time, the target object needs to be controlled to continue to rotate, during the rotation process, it is determined whether the target object has the preset angle according to the difference between the first illumination intensity and the second illumination intensity, for example, when the difference between the first illumination intensity and the second illumination intensity reaches a maximum value, it is determined that the angle of the target object reaches the preset angle, and when it is determined that the angle of the target object reaches the preset angle, the target object is controlled to stop rotating.
The beneficial effect of this embodiment lies in: the target object is controlled to rotate under the condition that the angle of the target object does not reach the preset angle, and the target object stops rotating under the condition that the angle of the target object reaches the preset angle, so that the target object can be automatically adjusted to the preset angle, manual participation is not needed, and the target object is automatically adjusted.
In one embodiment, the method may also be implemented as the steps of:
and under the condition that the target object is detected to stop rotating, controlling the sensor which receives the minimum illumination intensity in the first sensing device and the second sensing device to stop working.
In this embodiment, when it is detected that the target object stops rotating, it is described that the difference between the first illumination intensity and the second illumination intensity reaches the maximum, and if the angle between the first sensing device and the second sensing device is 90 degrees, it is described that the sensor receiving the minimum illumination intensity is completely blocked by the light blocking plate, at this time, the sensor hardly receives illumination, and therefore, the sensor receiving the minimum illumination intensity among the first sensing device and the second sensing device is controlled to stop working.
The beneficial effect of this embodiment lies in: and under the condition that the target object is detected to stop rotating, the sensor with the minimum received illumination intensity in the first sensing equipment and the second sensing equipment is controlled to stop working, so that the consumption of electric energy resources is reduced.
Additionally, in one embodiment, in case the target object is a smart wall hanging device, the method may further be implemented as the following steps a1-a 2:
in step a1, monitoring, in real time, the target illumination intensity received by the sensor with the largest illumination intensity in the first sensing device and the second sensing device;
in step a2, in case that the target illumination intensity is less than the preset illumination intensity, the target object is controlled to stop working.
In this embodiment, the target illumination intensity received by the sensor with the largest illumination intensity in the first sensing device and the second sensing device is monitored in real time; and under the condition that the target illumination intensity is less than the preset illumination intensity, controlling the target object to stop working, thereby further reducing the consumption of electric energy.
For example, wall-hanging smart machine in the exhibition hall, this kind of wall-hanging smart machine can be used for the exhibition to all kinds of works such as painting, calligraphy, and under the normal conditions, these wall-hanging smart machine need be carried out the exhibition daytime, and when having arrived at night and closing the hall, can close all lamps in the exhibition hall, at this moment, just need not work, consequently, can be based on this characteristics that illumination intensity is weak night, through the strong and weak of the illumination intensity that the sensor received, come to judge whether having arrived evening, if arrived evening, just control wall-hanging smart machine stop work. Of course, it is understood that the above example is only for the user to explain the embodiment more clearly, and those skilled in the art may apply the embodiment to other scenarios as needed, so as to turn off the wall-mounted smart device at night, so that the wall-mounted smart device stops working in an idle state, and power consumption is reduced.
In one embodiment, as shown in fig. 2 and 5, the first sensing device 211 and the second sensing device 212 are disposed on the surface of the target object 21, and an included angle between the first sensing device 211 and the second sensing device 212 is a preset angle; wherein, the first sensing device 211 and the second sensing device 212 have the same structure;
the first sensing device 211 includes: a sensor 2112, a visor 2111, a transparent enclosure 2113;
sensor 2112 is secured in first sensing device 211;
the shading plate 2111 is positioned in the area between the sensor 2112 and the transparent housing 2113 and is movably connected with the sensing device 211; wherein the content of the first and second substances,
in the rotation process of the first sensing device 211, the rotation friction force of the connection part of the shading plate 2111 and the first sensing device 211 is smaller than the gravity borne by the shading plate 2111, so that the shading plate 2111 is always vertically suspended under the action of gravity, and the sensor 2112 is completely shielded by the shading plate 2111 under the condition that the first sensing device 211 is vertical to the horizontal plane;
a transparent enclosure 2113 is used to enclose the sensor 2112 and the shutter 2111.
The beneficial effect of this embodiment lies in: in the rotation process of the first sensing equipment, the light shielding plate always keeps vertical suspension under the action of gravity, so that in the rotation process of the first sensing equipment, the sensor changes the received illumination intensity due to the change of the part shielded by the light shielding plate, and the angle of the first sensing equipment can be judged based on the illumination intensity.
The embodiment of the application provides an angle determining method which can be applied to wall-mounted intelligent equipment. As shown in fig. 6, the method includes the following steps S61-S68:
in step S61, in the case where an angle adjustment instruction of the target object is received or when rotation of the target object is detected, it is determined that a trigger event for determining the angle of the target object is received;
in step S62, in a case where a trigger event for determining an angle of the target object is received, acquiring a first illumination intensity received by a first sensing device and a second illumination intensity received by a second sensing device provided in the target object;
in step S63, it is determined whether the difference between the first illumination intensity and the second illumination intensity reaches a preset value;
in step S64, in a case where the difference between the first illumination intensity and the second illumination intensity does not reach a preset value, it is determined that the angle of the target object does not reach a preset angle;
in step S65, in the case where the angle of the target object does not reach the preset angle, controlling the target object to rotate;
in step S66, in a case where the difference value between the first illumination intensity and the second illumination intensity reaches a preset value, determining that the angle of the target object reaches a preset angle;
in step S67, in the case where the angle of the target object reaches the preset angle, controlling the target object to stop rotating;
in step S68, in the case where it is detected that the target object stops rotating, the sensor of the first and second sensing devices that receives the minimum intensity of illumination is controlled to stop operating.
An embodiment of the present application provides an electronic device, as shown in fig. 2, where the electronic device 21 includes:
the first sensing device 211, provided in the electronic device, includes: a sensor 2112, a visor 2111, a transparent enclosure 2113;
sensor 2112 is secured in first sensing device 211;
the shading plate 2111 is positioned in the area between the sensor 2112 and the transparent housing 2113 and is movably connected with sensing equipment, so that the shading plate 2111 is always kept vertically suspended under the action of gravity; when the first sensing device 211 is perpendicular to the horizontal plane, the sensor 2112 is completely shielded by the shading plate 2111, and when the first sensing device 211 is parallel to the horizontal plane, the sensor 2112 is completely exposed out of the shading plate 2111;
a transparent enclosure 2113 for enclosing the sensor 2112 and the shutter 2111;
the second sensing device 212 is disposed in the electronic device, the second sensing device has the same structure as the first sensing device 211, and an included angle between the second sensing device 212 and the first sensing device 211 is a preset angle.
It can be seen that an electronic device provided in the present application may be an electronic device disposed in the target object mentioned in the foregoing embodiments, and is used to implement the determination of the angle of the target object. The electronic device may also be the target object itself.
The beneficial effect of this embodiment lies in: in the rotating process of the sensing equipment, the received illumination intensity of the sensor in the sensing equipment is changed due to the change of the part shielded by the light shielding plate, so that the angle of the sensing equipment can be judged based on the illumination intensity, the angle of the electronic equipment is calculated along with the illumination intensity difference between the two sensing equipment, the automatic determination of the angle of the electronic equipment is realized, and the manual operation is reduced.
In one embodiment, the electronic device further comprises:
the vibration sensor is arranged in the electronic equipment and used for sending a trigger event for determining the angle of the electronic equipment to the processor when the electronic equipment is detected to rotate or shake with amplitude larger than a preset amplitude occurs;
the processor is arranged in the electronic equipment, connected with the vibration sensor and used for acquiring first illumination intensity received by first sensing equipment and second illumination intensity received by second sensing equipment which are arranged on the electronic equipment when a trigger event which is sent by the vibration sensor and used for determining the angle of the electronic equipment is received; judging whether the angle of the electronic equipment reaches a preset angle or not according to the first illumination intensity and the second illumination intensity; and under the condition that the angle of the electronic equipment reaches the preset angle, determining that the triggering event is ended, and controlling a loudspeaker and/or a display of the electronic equipment to give out a prompt that the electronic equipment reaches a preset state.
The beneficial effect of this embodiment lies in: the processor can automatically judge whether the angle of the electronic equipment reaches a preset angle according to the first illumination intensity and the second illumination intensity; when the angle of the electronic equipment reaches the preset angle, the trigger event is determined to be finished, and the loudspeaker and/or the display of the electronic equipment are controlled to give out a prompt that the electronic equipment reaches the preset state, so that the automatic determination of the angle of the electronic equipment is realized, and the prompt that the electronic equipment reaches the preset state can be automatically given out to a user when the angle of the electronic equipment reaches the preset state.
An embodiment of the present application provides a sensing device, which is disposed in an electronic device, and as shown in fig. 4, the sensing device includes: a sensor, a light screen and a transparent shell;
the sensor is fixed in the sensing equipment;
the shading plate is positioned in the area between the sensor and the transparent shell cover and is movably connected with the sensing equipment, so that the shading plate is always vertically suspended under the action of gravity.
The beneficial effect of this embodiment lies in: in the rotating process of the sensing equipment, the light shielding plate always keeps vertical suspension under the action of gravity, so that in the rotating process of the sensing equipment, the intensity of received illumination is changed along with the change of the part of the sensor, which is shielded by the light shielding plate, and the angle of the sensing equipment can be judged based on the intensity of the illumination.
The above embodiments are only exemplary embodiments of the present application, and are not intended to limit the present application, and the protection scope of the present application is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present application and such modifications and equivalents should also be considered to be within the scope of the present application.

Claims (10)

1. An angle determining method, comprising:
under the condition that a trigger event for determining the angle of a target object is received, acquiring first illumination intensity received by first sensing equipment and second illumination intensity received by second sensing equipment which are arranged in the target object;
judging whether the angle of the target object reaches a preset angle or not according to the first illumination intensity and the second illumination intensity;
and acquiring the angle state of the target object according to the judgment result, and determining that the triggering event is ended.
2. The method of claim 1, wherein determining whether the angle of the target object reaches a preset angle according to the first illumination intensity and the second illumination intensity comprises:
and judging whether the difference value of the first illumination intensity and the second illumination intensity reaches a preset value, wherein the preset value is determined by the relative position relationship of the first sensing equipment and the second sensing equipment.
3. The method of claim 1, wherein the method further comprises:
the method comprises the steps of determining that a trigger event for determining the angle of a target object is received when an angle adjustment instruction of the target object is received or when the target object is detected to rotate.
4. The method of claim 1, wherein in the event that the triggering event is determined to end, the method further comprises:
and sending out a prompt of the angle state of the target object at present.
5. The method of claim 1, wherein the method further comprises:
controlling the target object to rotate under the condition that the angle of the target object does not reach a preset angle;
the obtaining the angle state of the target object according to the judgment result comprises:
determining that the angle of the target object reaches a preset angle;
the determining that the trigger event is over includes:
and controlling the target object to stop rotating.
6. The method of claim 1, wherein the method further comprises:
and under the condition that the target object is detected to stop rotating, controlling the sensor which receives the minimum illumination intensity in the first sensing equipment and the second sensing equipment to stop working.
7. The method according to any one of claims 1-6, wherein the first sensing device and the second sensing device are disposed on the target object surface, and an included angle between the first sensing device and the second sensing device is a preset angle; the first sensing equipment and the second sensing equipment have the same structure;
the first sensing device includes: a sensor, a light screen and a transparent shell;
the sensor is fixed in the first sensing device;
the light shielding plate is positioned in an area between the sensor and the transparent shell cover and is movably connected with the sensing equipment; wherein the content of the first and second substances,
in the rotation process of the first sensing equipment, the rotation friction force of the connection part of the shading plate and the first sensing equipment is smaller than the gravity borne by the shading plate, so that the shading plate is always vertically suspended under the action of the gravity, and the sensor is completely shielded by the shading plate under the condition that the first sensing equipment is vertical to the horizontal plane;
the transparent shell is used for packaging the sensor and the shading plate.
8. An electronic device, comprising:
first sensing equipment, set up in the electronic equipment includes: a sensor, a light screen and a transparent shell;
the sensor is fixed in the first sensing device;
the light shielding plate is positioned in an area between the sensor and the transparent shell cover and is movably connected with the sensing equipment, so that the light shielding plate is always vertically suspended under the action of gravity; wherein, when the first sensing device is vertical to the horizontal plane, the sensor is completely shielded by the shading plate, and when the first sensing device is parallel to the horizontal plane, the sensor is completely exposed out of the shading plate;
the transparent shell is used for packaging the sensor and the shading plate;
the second sensing equipment is arranged in the electronic equipment, the structure of the second sensing equipment is the same as that of the first sensing equipment, and the included angle between the second sensing equipment and the first sensing equipment is a preset angle.
9. The electronic device of claim 8, wherein the electronic device further comprises:
the vibration sensor is arranged in the electronic equipment and used for sending a trigger event for determining the angle of the electronic equipment to the processor when the electronic equipment is detected to rotate or shake with amplitude larger than a preset amplitude occurs;
the processor is arranged in the electronic equipment, connected with the vibration sensor and used for acquiring first illumination intensity received by first sensing equipment and second illumination intensity received by second sensing equipment which are arranged on the electronic equipment when a trigger event which is sent by the vibration sensor and used for determining the angle of the electronic equipment is received; judging whether the angle of the electronic equipment reaches a preset angle or not according to the first illumination intensity and the second illumination intensity; and under the condition that the angle of the electronic equipment reaches a preset angle, determining that the trigger event is ended, and controlling a loudspeaker and/or a display of the electronic equipment to give out a prompt that the electronic equipment reaches a preset state.
10. A sensing device applied to the angle determination method according to claim 1, provided in the electronic device, comprising: a sensor, a light screen and a transparent shell;
the sensor is fixed in the sensing equipment;
the light shielding plate is positioned in an area between the sensor and the transparent shell cover and is movably connected with the sensing equipment, so that the light shielding plate is always vertically suspended under the action of gravity.
CN201911356536.6A 2019-12-25 2019-12-25 Angle determination method and electronic equipment Active CN111121666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911356536.6A CN111121666B (en) 2019-12-25 2019-12-25 Angle determination method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911356536.6A CN111121666B (en) 2019-12-25 2019-12-25 Angle determination method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111121666A true CN111121666A (en) 2020-05-08
CN111121666B CN111121666B (en) 2021-07-16

Family

ID=70502126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911356536.6A Active CN111121666B (en) 2019-12-25 2019-12-25 Angle determination method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111121666B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SU1392357A1 (en) * 1986-05-27 1988-04-30 Московский институт радиотехники, электроники и автоматики Interferometric transducer for measuring angle of turn of object
JPH06117924A (en) * 1992-08-19 1994-04-28 Nippondenso Co Ltd Optical position detector
CN101189488A (en) * 2005-09-21 2008-05-28 松下电器产业株式会社 Apparatus and method for measuring angle
CN101358841A (en) * 2007-08-01 2009-02-04 鸿富锦精密工业(深圳)有限公司 Color wheel parameter detecting system and method
CN101546210A (en) * 2008-03-24 2009-09-30 中强光电股份有限公司 Angle adjusting and controlling method and display device automatically adjusting angle
CN202255353U (en) * 2011-08-19 2012-05-30 中广核太阳能开发有限公司 Sensor for detecting variation of incident angle of light in single direction
CN102749935A (en) * 2012-07-31 2012-10-24 中南大学 Method and device for tracking sun by solar panel
CN103196561A (en) * 2013-04-01 2013-07-10 哈尔滨工业大学 Device of measuring polarization characteristic of object at multiple angles and method of achieving measurement of polarization characteristic of object at multiple angles thereof
CN104406542A (en) * 2014-11-14 2015-03-11 广东欧珀移动通信有限公司 Method, device and equipment for detecting rotary angle
KR20170103715A (en) * 2017-06-21 2017-09-13 이영종 Optical rotary angle sensor with polarized mirror
CN206572156U (en) * 2017-02-16 2017-10-20 辽宁工业大学 A kind of device for automatically adjusting television display angle
CN207007139U (en) * 2017-08-07 2018-02-13 武汉辰龙精密仪器有限公司 A kind of wireless type rotation angle detection apparatus
CN109308079A (en) * 2018-08-21 2019-02-05 中冶华天南京工程技术有限公司 A kind of shading type solar-cell panel support system for automatically regulating angles
CN109307484A (en) * 2018-10-22 2019-02-05 无锡法尔胜光电科技有限公司 Panda type polarization-preserving fiber windup-degree on-line measurement device and its measurement method
CN109556537A (en) * 2018-11-09 2019-04-02 西安易朴通讯技术有限公司 Angle detection device and foldable electronic

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SU1392357A1 (en) * 1986-05-27 1988-04-30 Московский институт радиотехники, электроники и автоматики Interferometric transducer for measuring angle of turn of object
JPH06117924A (en) * 1992-08-19 1994-04-28 Nippondenso Co Ltd Optical position detector
CN101189488A (en) * 2005-09-21 2008-05-28 松下电器产业株式会社 Apparatus and method for measuring angle
CN101358841A (en) * 2007-08-01 2009-02-04 鸿富锦精密工业(深圳)有限公司 Color wheel parameter detecting system and method
CN101546210A (en) * 2008-03-24 2009-09-30 中强光电股份有限公司 Angle adjusting and controlling method and display device automatically adjusting angle
CN202255353U (en) * 2011-08-19 2012-05-30 中广核太阳能开发有限公司 Sensor for detecting variation of incident angle of light in single direction
CN102749935A (en) * 2012-07-31 2012-10-24 中南大学 Method and device for tracking sun by solar panel
CN103196561A (en) * 2013-04-01 2013-07-10 哈尔滨工业大学 Device of measuring polarization characteristic of object at multiple angles and method of achieving measurement of polarization characteristic of object at multiple angles thereof
CN104406542A (en) * 2014-11-14 2015-03-11 广东欧珀移动通信有限公司 Method, device and equipment for detecting rotary angle
CN206572156U (en) * 2017-02-16 2017-10-20 辽宁工业大学 A kind of device for automatically adjusting television display angle
KR20170103715A (en) * 2017-06-21 2017-09-13 이영종 Optical rotary angle sensor with polarized mirror
CN207007139U (en) * 2017-08-07 2018-02-13 武汉辰龙精密仪器有限公司 A kind of wireless type rotation angle detection apparatus
CN109308079A (en) * 2018-08-21 2019-02-05 中冶华天南京工程技术有限公司 A kind of shading type solar-cell panel support system for automatically regulating angles
CN109307484A (en) * 2018-10-22 2019-02-05 无锡法尔胜光电科技有限公司 Panda type polarization-preserving fiber windup-degree on-line measurement device and its measurement method
CN109556537A (en) * 2018-11-09 2019-04-02 西安易朴通讯技术有限公司 Angle detection device and foldable electronic

Also Published As

Publication number Publication date
CN111121666B (en) 2021-07-16

Similar Documents

Publication Publication Date Title
WO2016015587A1 (en) Backlight adjustment method for display device, display device, computer program product and computer-readable storage medium
CN106559628A (en) A kind of method of projection, device and terminal
US9691352B2 (en) Control method and device thereof
CN109195015A (en) A kind of video playing control method and device
CN103116444A (en) Electronic map control method and electronic map device
CN204856852U (en) Intelligent security system based on thing networking
CN111121666B (en) Angle determination method and electronic equipment
CN106557021A (en) A kind of screen based on intelligent watch lights method and apparatus, intelligent watch
CN207337610U (en) A kind of flame detecting binocular camera
CN109218591A (en) A kind of panorama shooting method and mobile terminal
CN111487889A (en) Method, device and equipment for controlling intelligent equipment, control system and storage medium
CN207603715U (en) A kind of mobile terminal
CN209167947U (en) A kind of electronic equipment
WO2016079894A1 (en) Monitoring system
WO2022052604A1 (en) Information prompt method and apparatus, electronic device, and storage medium
CN108525186A (en) A kind of household automatic fire extinguishing system and method
CN105872239A (en) Automatic VR mode triggering mobile phone and method and VR glasses
CN104822027A (en) Video signal apparatus and control method thereof
CN107466470B (en) Method and device for controlling backlight of display screen, electronic equipment and storage medium
CN104994284B (en) A kind of control method and electric terminal of wide-angle camera
CN208311848U (en) A kind of camera pan-tilt applied in building security system
WO2020237895A1 (en) Method for automatically adjusting output voltage according to battery power of mobile display device
CN110636157A (en) Handheld holder tracking method based on suspension window embedded face recognition technology
CN215445830U (en) Automatic detection device for security loophole of office network
CN112312032B (en) Method and device for shooting by using off-screen camera, storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant