Virtual reality device and lens barrel position state detection method, device and medium thereof
Patent Information
- Application Number
- CN202210179425.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-25
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2042-02-25
AI Technical Summary
但是,考虑到VR设备内左右镜筒在位置调节过程中经常会遇到被物体阻挡或用户无意掰住镜筒等情况,而导致电机在转动时无法带动镜筒移动,那么电机的持续工作会导致传动机构内的元件磨损和电机发热等问题,极大影响到VR设备的使用性能,缩短VR设备的使用寿命
[0016]This application provides a virtual reality device and its lens barrel position state detection method, device, and medium. A magnet and a magnetic sensor are embedded in the lens barrel shell of the VR device's lens barrel module. The other magnet and magnetic sensor are fixedly positioned at a preset location corresponding to the lens barrel module. When the main controller moves the lens barrel module, one of the magnets and the magnetic sensor moves accordingly. The output electrical signal of the magnetic sensor during the lens barrel module's movement is detected, allowing the position state of the lens barrel module to be determined. This enables real-time detection of the position state of the lens barrel module during movement within the VR device. It eliminates the need to install light spot elements or mechanical limit switches at every position during the lens barrel module's movement. The simple layout of the magnetic sensor and magnet reduces the complexity of lens barrel position state detection within the VR device, thereby reducing the setup cost.
Smart Images

Figure CN116699841B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of virtual reality technology, specifically to a virtual reality device and its lens barrel position state detection method, apparatus and medium. Background Technology
[0002] With the rapid development of Virtual Reality (VR) technology, more and more users enjoy immersing themselves in various rich 3D games and other content in virtual environments by wearing VR devices. However, different users have different interpupillary distances (IPDs), which leads to different optimal imaging positions for the left and right lenses when wearing the VR device. Therefore, to improve the comfort of VR devices and provide the best visual experience, it is usually necessary to adaptively adjust the positions of the left and right lenses within the VR device according to the individual user's IPD.
[0003] Currently, VR devices typically use a motor to drive a transmission mechanism, which in turn moves the left and right lens barrels, thus adjusting their position based on the user's interpupillary distance. However, considering that the left and right lens barrels in VR devices are often obstructed by objects or accidentally pried open by the user during position adjustment, preventing the motor from moving the barrels, continuous operation of the motor can lead to wear and tear on components within the transmission mechanism and overheating, significantly impacting the performance of the VR device and shortening its lifespan.
[0004] At this point, when determining whether the left and right mirror tubes inside the VR device are stuck by installing photoelectric components or mechanical limit detection switches at fixed positions, since the left and right mirror tubes may be stuck at any moving position, it is necessary to install photoelectric components or mechanical limit detection switches at each moving position, which greatly increases the cost and equipment complexity of mirror tube position detection inside the VR device. Summary of the Invention
[0005] This application provides a virtual reality device and a method, apparatus and medium for detecting the position status of the lens barrel of the VR device, which realizes real-time detection of the position status of the lens barrel module when it moves, reduces the complexity of the position status detection of the lens barrel of the VR device, and thus reduces the setup cost of the position status detection of the lens barrel of the VR device.
[0006] In a first aspect, embodiments of this application provide a virtual reality device, comprising: a lens barrel module, a magnet, a magnetic sensor, and a main controller. One of the magnet and the magnetic sensor is embedded in the lens barrel housing of the lens barrel module, and the other is fixedly disposed at a preset position corresponding to the lens barrel module.
[0007] The main controller controls the movement of the lens barrel module and detects the output electrical signal of the magnetic sensor when the lens barrel module moves, so as to determine the position state of the lens barrel module.
[0008] Secondly, embodiments of this application provide a method for detecting the position state of a lens barrel, applied in the virtual reality device provided in the first aspect above, the method comprising:
[0009] The output electrical signal of the magnetic sensor is detected during the movement of the lens barrel module;
[0010] Based on the movement command of the lens module, the position state of the lens module is determined according to the output electrical signal.
[0011] Thirdly, embodiments of this application provide a lens barrel position state detection device, configured in the virtual reality device provided in the first aspect, the device comprising:
[0012] The output electrical signal detection module is used to detect the output electrical signal of the magnetic sensor during the movement of the lens barrel module;
[0013] The lens barrel position state determination module is used to determine the position state of the lens barrel module based on the movement command of the lens barrel module and according to the output electrical signal.
[0014] Fourthly, embodiments of this application provide a computer-readable storage medium for storing a computer program that causes a computer to execute the lens barrel position state detection method provided in the second aspect of this application.
[0015] Fifthly, embodiments of this application provide a computer program product, including a computer program / instructions, characterized in that, when the computer program / instructions are executed by a processor, they implement the lens barrel position state detection method provided in the second aspect of this application.
[0016] This application provides a virtual reality device and its lens barrel position state detection method, device, and medium. A magnet and a magnetic sensor are embedded in the lens barrel shell of the VR device's lens barrel module. The other magnet and magnetic sensor are fixedly positioned at a preset location corresponding to the lens barrel module. When the main controller moves the lens barrel module, one of the magnets and the magnetic sensor moves accordingly. The output electrical signal of the magnetic sensor during the lens barrel module's movement is detected, allowing the position state of the lens barrel module to be determined. This enables real-time detection of the position state of the lens barrel module during movement within the VR device. It eliminates the need to install light spot elements or mechanical limit switches at every position during the lens barrel module's movement. The simple layout of the magnetic sensor and magnet reduces the complexity of lens barrel position state detection within the VR device, thereby reducing the setup cost. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a structural block diagram of a virtual reality device shown in an embodiment of this application;
[0019] Figure 2 This is a structural block diagram of a magnet installed inside a virtual reality device according to an embodiment of this application;
[0020] Figure 3 This is a schematic diagram illustrating the change in magnetic field strength sensed by the linear Hall sensor during the movement of the lens module, as shown in an embodiment of this application.
[0021] Figure 4 This is a schematic diagram illustrating the output voltage change of the linear Hall sensor during the movement of the lens module, as shown in an embodiment of this application.
[0022] Figure 5 This is a flowchart illustrating a method for detecting the position state of a lens barrel according to an embodiment of this application;
[0023] Figure 6 This is a schematic block diagram of a lens barrel position status detection device according to an embodiment of this application. Detailed Implementation
[0024] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0026] Before introducing the technical solution of this application, the existing structure of VR devices that controls the movement of the lens barrel according to the user's interpupillary distance will be described below:
[0027] A VR device, which simulates a virtual environment for the user, typically includes a main controller, a digital signal processing (DSP) module, memory, storage, a position sensor, a camera, radio frequency wireless transmission circuitry, and an antenna. After the user puts on the VR device, a dedicated camera captures images of the user's eyes. Image processing technology is then used to analyze the user's interpupillary distance (IPD) to determine the position of the lenses within the VR device. The main controller then moves the lenses to that position, optimizing the user's visual experience and enhancing immersion and comfort in the virtual space.
[0028] Specifically, VR devices are equipped with corresponding motors and transmission mechanisms. After determining the position of the lens barrel corresponding to the user's interpupillary distance, the main controller first sends a rotation command to the motor to control its rotation. At this time, the rotation of the motor drives the transmission mechanism, which in turn moves the lens barrel to the position corresponding to the user's interpupillary distance.
[0029] As mentioned above, during the position adjustment process of the left and right mirror tubes in VR devices, they often encounter situations such as being blocked by objects or the user accidentally prying the mirror tubes, which causes the motor to rotate continuously but still cannot move the mirror tubes. The continuous rotation of the motor will lead to wear and aging of the components in the transmission mechanism and problems such as motor overheating, which will greatly affect the performance of the VR device and shorten its service life.
[0030] In existing solutions, when determining whether the left and right mirror barrels inside the VR device are stuck during movement by installing photoelectric components or mechanical limit detection switches at fixed positions, since the left and right mirror barrels may be stuck at any movement position, it is necessary to install photoelectric components or mechanical limit detection switches at each movement position, which greatly increases the cost and equipment complexity of mirror barrel position detection inside the VR device.
[0031] To address the aforementioned technical issues, this application, based on the existing structure for controlling the movement of the lens barrel in VR devices, embeds one of a magnet and a magnetic sensor on the lens barrel shell of the lens barrel module, and fixes the other of the magnet and magnetic sensor at a predetermined position on the lens barrel module. Then, when the main controller controls the movement of the lens barrel module, it will cause one of the magnets and the magnetic sensor to move accordingly. The output electrical signal of the magnetic sensor during the movement of the lens barrel module can then be detected, allowing the positional state of the lens barrel module to be determined. This enables real-time detection of the positional state of the lens barrel module within the VR device. The simple layout of the magnetic sensor and magnet reduces the complexity and setup cost of lens barrel positional state detection within the VR device.
[0032] The technical solution of this application will be described in detail below:
[0033] Figure 1 This is a structural block diagram of a virtual reality device according to an embodiment of this application. Figure 1 As shown, the virtual reality device includes a lens module 110, a magnet 120, a magnetic sensor 130, and a main controller 140.
[0034] Among them, one of the magnet 120 and the magnetic sensor 130 is embedded in the lens barrel shell of the lens barrel module 110, and the other is fixedly set at a preset position in the lens barrel module 110.
[0035] Specifically, the main controller 140 controls the movement of the lens barrel module 110 and detects the output electrical signal of the magnetic sensor 130 when the lens barrel module 110 moves, so as to determine the position status of the lens barrel module 110.
[0036] In this application, to reduce the complexity of the device for detecting the position of the lens barrel within the VR device, it is required to add some simple module layouts within the VR device to determine whether the lens barrel is stuck when the motor rotates to move it. Therefore, taking advantage of the characteristic that the magnetic field strength of a magnetic sensor changes with the distance from the magnet, resulting in a corresponding change in the output electrical signal, this application embeds one of a magnet 120 and a magnetic sensor 130 on the lens barrel shell of the VR device's lens barrel module 110, and fixes the other of the magnet 120 and magnetic sensor 130 at a preset position on the lens barrel module 110.
[0037] Furthermore, when the main controller 140 moves the lens barrel module 110 via the motor, it will cause one of the magnet 120 and the magnetic sensor 130 to move accordingly. Since the other of the magnet 120 and the magnetic sensor 130 is fixedly set at a preset position corresponding to the lens barrel module 110, the distance between the magnet 120 and the magnetic sensor 130 will continuously change during the movement of the lens barrel module 110, causing the magnetic field strength of the magnetic sensor 130 to continuously change accordingly. Then, the continuous change in the magnetic field strength of the magnetic sensor 130 will cause a corresponding change in the output electrical signal of the magnetic sensor 130.
[0038] Therefore, the main controller 140 continuously sends normal movement commands to the lens module 110 to control it to perform corresponding movement operations. Simultaneously, during the movement of the lens module 110, the output electrical signal of the magnetic sensor 130 is detected. By determining whether the output electrical signal of the magnetic sensor 130 changes, the main controller 140 analyzes whether the lens module 110 performs a real movement operation after receiving the corresponding movement command, thereby determining whether the lens module 110 is abnormally stuck during movement and thus determining the positional state of the lens module 110 during the movement.
[0039] The movement command sent by the main controller 140 to the lens module 110 can be a motor rotation command that drives the lens module 110 to move by controlling the motor rotation.
[0040] It should be noted that in this application, the magnet 120 can be embedded in the lens barrel housing of the lens barrel module 110, and the magnetic sensor 130 can be fixedly set at a preset position corresponding to the lens barrel module 110. In this case, when the main controller 140 controls the movement of the lens barrel module 110 via a motor, it will cause the magnet 120 to move accordingly. Since the magnetic sensor 130 is fixedly set at the preset position corresponding to the lens barrel module 110, the distance between the magnet 120 and the magnetic sensor 130 will continuously change during the movement of the lens barrel module 110, causing the magnetic field strength of the magnetic sensor 130 to continuously change accordingly, thereby causing a corresponding change in the output electrical signal of the magnetic sensor 130.
[0041] Meanwhile, the output electrical signal of the magnetic sensor 130 in this application can be an output voltage. During the movement of the lens module 110, the main controller 140 determines the position state of the lens module 110 during the movement by detecting whether the output voltage of the magnetic sensor 130 changes.
[0042] The positional state of the lens module 110 in this application may include two situations: the lens module 110 is abnormally stuck when it moves, and the lens module 110 moves to a preset limit position, causing the lens module 110 to be unable to continue moving.
[0043] Furthermore, in order to promptly determine the position of the lens module 110 during movement, this application can detect whether the output electrical signal of the magnetic sensor 130 changes in real time, thereby determining whether the lens module 110 is abnormally stuck or whether it has moved to a preset limit position.
[0044] It should be noted that, while meeting the detection requirements, this application can also use a shorter time interval to detect the output electrical signal of the magnetic sensor 130 to determine the position state of the lens module 110. Furthermore, the lens module 110 in this application can include a left lens and a right lens. In this case, different requirements exist for the movement of the left and right lens in different scenarios. For example, the main controller 140 can use a single motor to drive the left and right lens to move synchronously, or the main controller 140 can use different motors to drive the left and right lens to move independently.
[0045] For the two moving scenarios of the lens module 110 mentioned above, there are different detection requirements for the position status of the left and right lens barrels within the lens module 110 when they move.
[0046] For example, if the main controller 140 controls the left and right lens barrels to move synchronously, then if either the left or right lens barrel is abnormally jammed during movement, neither the left nor the right lens barrel can perform the movement operation normally. Therefore, this application can embed one of a magnet 120 and a magnetic sensor 130 on the outer shell of at least one of the left and right lens barrels in the lens barrel module 110, and fix the other of the magnet 120 and magnetic sensor 130 at a preset position corresponding to the lens barrel in which one of the magnet 120 and magnetic sensor 130 is embedded. With the above structure, the change in the output electrical signal of the magnetic sensor 130 can be accurately analyzed during the movement of the lens barrel module 110, thereby determining whether the lens barrel module 110 is abnormally jammed during movement.
[0047] For example, the above solution can be achieved by embedding one of the magnet 120 and the magnetic sensor 130 on the outer shell of either the left or right lens barrel in the lens barrel module 110, or by embedding one of the magnet 120 and the magnetic sensor 130 on the outer shell of both the left and right lens barrels in the lens barrel module 110.
[0048] However, if the main controller 140 controls the left and right lens barrels to move independently, then for each lens barrel, it is necessary to determine whether it is abnormally jammed during movement. Therefore, this application can embed one of a magnet 120 and a magnetic sensor 130 into the outer shell of each lens barrel in the left and right lenses, and fix the other of the magnet 120 and magnetic sensor 130 at a preset position corresponding to each lens barrel in the left and right lenses. With the above structure, during the movement of each lens barrel in the left and right lenses, the change in the output electrical signal of the magnetic sensor 130 related to each lens barrel can be analyzed to accurately determine whether the lens barrel is abnormally jammed during movement.
[0049] As an optional implementation of this application, on the one hand, a notch is provided on one end of the magnet 120 in this application to distinguish the two poles of the magnet 120 and prevent the magnet 120 from being installed backwards.
[0050] For example, such as Figure 2 As shown, the magnet 120 in this application can be a 10mm x 2mm x 2mm magnet.
[0051] On the other hand, the magnetic sensor 130 in this application can be a linear Hall sensor. For example... Figure 2 As shown, when the linear Hall sensor is set in the VR device, the preset position corresponding to the lens module 110 can be the position where one of the magnet 120 embedded in the lens module 110 and the linear Hall sensor are at a fixed distance from each other.
[0052] For example, in this application, the switch of the linear Hall sensor can be selected to be 2.64mV / Gs. Then, during the movement of the lens module 110, the change in magnetic field strength sensed by the linear Hall sensor can be as follows: Figure 3 As shown. Simultaneously, the linear Hall sensor outputs real-time voltage changes based on the sensed changes in magnetic field strength, as shown below. Figure 4 As shown.
[0053] At this time, there are two situations in which the lens barrel module 110 gets stuck during the movement: one is that the lens barrel module 110 is blocked by an object and gets stuck, and the other is that the lens barrel module 110 moves to the limit position and can no longer move.
[0054] Therefore, when determining the position of the lens module 110 during movement based on the output electrical signal of the magnetic sensor 130, it is necessary to accurately distinguish between the two situations mentioned above. When the main controller 140 controls the lens module 110 to perform a movement operation, it will send a movement command to the lens module 110 in real time. Then, by judging whether the main controller 140 normally generates the movement command of the lens module 110 within a preset time period, it is analyzed whether the motor controlling the movement of the lens module 110 is in a normal rotating state. If the movement command of the lens module 110 can be normally generated within the preset time period, it means that the lens module 110 still needs to perform a real movement operation. Then, considering that the output electrical signal of the magnetic sensor 130 will change when the lens module 110 performs a real movement operation, it is determined whether the lens module 110 performs a real movement operation after the movement command of the lens module 110 is normally initiated by analyzing whether the output electrical signal of the magnetic sensor 130 changes within the preset time period, thereby determining whether the lens module 110 is abnormally stuck during movement. In other words, if the lens module 110 can be generated normally within the preset time period, and the output electrical signal of the magnetic sensor 130 remains unchanged, it indicates that the lens module 110 has not performed the actual movement operation according to the movement command, thus determining that the lens module 110 is abnormally stuck during movement.
[0055] Furthermore, considering that the relative distance between the magnet 120 and the magnetic sensor 130 will change maximally when the lens barrel module 110 moves to its extreme position, causing the output electrical signal of the magnetic sensor 130 to reach the corresponding extreme electrical signal, if it is determined that the movement command of the lens barrel module 110 is generated normally within the preset time period and the output electrical signal remains unchanged, it is necessary to further determine whether the lens barrel module 110 is stuck during movement or has reached its extreme position and cannot move further. Therefore, based on this, it is further determined whether the output electrical signal of the magnetic sensor 130 reaches the extreme electrical signal during the movement of the lens barrel module 110 to analyze the position where the lens barrel module 110 is stuck during movement, for example, whether the output voltage of the magnetic sensor 130 reaches the extreme voltage during the movement of the lens barrel module 110. If the output electrical signal of the magnetic sensor 130 reaches the extreme electrical signal value during the movement of the lens barrel module 110, it is determined that the lens barrel module 110 has moved to the preset extreme position. However, if the output electrical signal of the magnetic sensor 130 does not reach the limit electrical signal value when the lens module 110 moves, it is determined that the lens module 110 is stuck halfway through its movement.
[0056] The technical solution provided in this application embodiment embeds one of a magnet and a magnetic sensor on the outer shell of the lens barrel module of the VR device, and fixes the other of the magnet and magnetic sensor at a preset position corresponding to the lens barrel module. When the main controller controls the movement of the lens barrel module, it drives one of the magnets and magnetic sensors to move accordingly. Then, the output electrical signal of the magnetic sensor when the lens barrel module moves is detected, and the position state of the lens barrel module can be determined by the output electrical signal. This realizes real-time detection of the position state of the lens barrel module when it moves in the VR device. It eliminates the need to set up light spot elements or mechanical limit detection switches at every position of the lens barrel module during the movement process to detect the position state. Through the simple layout of the magnetic sensor and the magnet, the complexity of the position state detection of the lens barrel in the VR device is reduced, thereby reducing the setup cost of the position state detection of the lens barrel in the VR device.
[0057] The following will provide a detailed explanation of the specific steps for detecting whether the lens barrel module in a VR device is stuck during movement.
[0058] Figure 5 This is a flowchart illustrating a method for detecting the position state of a lens barrel according to an embodiment of this application. This embodiment is mainly applied to the VR device provided in the above embodiment. (Refer to...) Figure 5 The method may specifically include the following steps:
[0059] S510 detects the output electrical signal of the magnetic sensor during the movement of the lens barrel module.
[0060] Specifically, in order to reduce the complexity of the equipment when detecting the position status of the lens barrel in the VR device, this application utilizes the characteristic that the magnetic field strength of the magnetic sensor changes with the distance from the magnet, resulting in a corresponding change in the output electrical signal. One of the magnet and the magnetic sensor is embedded in the lens barrel shell of the VR device's lens barrel module, and the other of the magnet and the magnetic sensor is fixedly set at a preset position in the lens barrel module.
[0061] Furthermore, when the main controller moves the lens barrel module via the motor, it causes one of the magnets and the magnetic sensor to move accordingly. Since the other magnet and the magnetic sensor are fixed at a preset position on the lens barrel module, the distance between them changes continuously during the module's movement, causing the magnetic field strength of the magnetic sensor to change accordingly. This change in magnetic field strength then causes a corresponding change in the sensor's output electrical signal.
[0062] For example, in this application, a magnet can be embedded in the lens barrel housing of the lens barrel module, and a magnetic sensor can be fixedly set at a preset position corresponding to the lens barrel module. In this case, when the main controller moves the lens barrel module via a motor, it will cause the magnet to move accordingly. Since the magnetic sensor is fixedly set at the preset position corresponding to the lens barrel module, the distance between the magnet and the magnetic sensor will continuously change during the movement of the lens barrel module, causing the magnetic field strength of the magnetic sensor to continuously change accordingly, thereby causing a corresponding change in the output electrical signal of the magnetic sensor.
[0063] Therefore, the main controller continuously sends normal movement commands to the lens barrel module to control it to perform corresponding movement operations. Simultaneously, during the movement of the lens barrel module, it detects whether the output electrical signal of the magnetic sensor changes.
[0064] The movement command sent by the main controller to the lens module can be a motor rotation command that drives the lens module to move by controlling the motor rotation.
[0065] For example, in this application, the output electrical signal of the magnetic sensor is an output voltage. During the movement of the lens barrel module, the main controller determines the position state of the lens barrel module during the movement by detecting whether the output voltage of the magnetic sensor changes.
[0066] Furthermore, in order to promptly determine the position of the lens module during movement, this application can detect whether the output electrical signal of the magnetic sensor changes in real time to determine whether the lens module is stuck during movement.
[0067] It should be noted that, provided the detection requirements are met, this application may also use a shorter time interval to detect the output electrical signal of the magnetic sensor in order to determine the position status of the lens module.
[0068] S520 determines the position state of the lens module based on the movement command of the lens module and the output electrical signal.
[0069] In this application, the main controller continuously sends normal movement commands to the lens barrel module, indicating that the lens barrel module still needs to perform actual movement operations. Then, by judging whether the output electrical signal of the magnetic sensor changes, it analyzes whether the lens barrel module performs actual movement operations after receiving the corresponding movement commands, thereby determining whether the lens barrel module is abnormally stuck during movement, and thus determining the position state of the lens barrel module during movement.
[0070] At this point, the lens barrel module may get stuck during movement in two ways: either it is blocked by an object while moving, or it moves to its limit and can no longer move. Therefore, when determining the position of the lens barrel module during movement based on the output electrical signal of the magnetic sensor, it is necessary to accurately distinguish between these two situations.
[0071] Therefore, when the main controller controls the lens barrel module to perform a movement operation, it sends movement commands to the lens barrel module in real time. Then, by judging whether the main controller can normally generate movement commands for the lens barrel module within a preset time period, it analyzes whether the motor controlling the movement of the lens barrel module is in a normal rotating state. If the movement commands for the lens barrel module can be generated normally within the preset time period, it means that the lens barrel module still needs to perform a real movement operation. Then, considering that the lens barrel module will cause a change in the output electrical signal of the magnetic sensor when performing a real movement operation, it is determined whether the lens barrel module performs a real movement operation after the movement command is normally initiated, thereby determining whether the lens barrel module is abnormally stuck during movement. In other words, if the movement commands for the lens barrel module can be generated normally within the preset time period, and the output electrical signal of the magnetic sensor remains unchanged, it means that the lens barrel module has not performed a real movement operation according to the movement commands, thus determining that the lens barrel module is abnormally stuck during movement.
[0072] Furthermore, considering that the relative distance between the magnet and the magnetic sensor changes drastically when the lens barrel module moves to its limit position, ensuring the magnetic sensor's output signal reaches the corresponding limit signal, if the lens barrel module's movement command is generated normally within the preset time and the output signal remains unchanged, it's necessary to further determine whether the lens barrel module is stuck midway through movement or has reached its limit position and cannot move further. Therefore, based on this, it's further determined whether the magnetic sensor's output signal reaches the limit signal during the lens barrel module's movement to analyze the position where the lens barrel module is stuck. For example, it's determined whether the magnetic sensor's output voltage reaches the limit voltage during the lens barrel module's movement. If the magnetic sensor's output signal reaches the limit signal during the lens barrel module's movement, then the lens barrel module has moved to the preset limit position. However, if the magnetic sensor's output signal does not reach the limit signal during the lens barrel module's movement, then the lens barrel module is determined to be stuck midway through movement.
[0073] The technical solution provided in this application embodiment embeds one of a magnet and a magnetic sensor on the outer shell of the lens barrel module of the VR device, and fixes the other of the magnet and magnetic sensor at a preset position corresponding to the lens barrel module. When the main controller controls the movement of the lens barrel module, it drives one of the magnets and magnetic sensors to move accordingly. Then, the output electrical signal of the magnetic sensor when the lens barrel module moves is detected, and the position state of the lens barrel module can be determined by the output electrical signal. This realizes real-time detection of the position state of the lens barrel module when it moves in the VR device. It eliminates the need to set up light spot elements or mechanical limit detection switches at every position of the lens barrel module during the movement process to detect the position state. Through the simple layout of the magnetic sensor and the magnet, the complexity of the position state detection of the lens barrel in the VR device is reduced, thereby reducing the setup cost of the position state detection of the lens barrel in the VR device.
[0074] Figure 6 This is a schematic block diagram of a lens barrel position state detection device according to an embodiment of this application, which can be configured in the virtual reality device provided in the above embodiment. Figure 6 As shown, the device 600 may include:
[0075] The output electrical signal detection module 610 is used to detect the output electrical signal of the magnetic sensor during the movement of the lens barrel module;
[0076] The lens barrel position state determination module 620 is used to determine the position state of the lens barrel module based on the movement command of the lens barrel module and according to the output electrical signal.
[0077] Furthermore, the output electrical signal detection module 610 can be specifically used for:
[0078] The output electrical signal of the magnetic sensor is detected in real time during the movement of the lens barrel module.
[0079] Furthermore, the lens barrel position state determination module 620 can be specifically used for:
[0080] If the movement command of the lens module is generated normally within the preset time period and the output electrical signal remains unchanged, it is determined that the lens module is abnormally stuck during movement.
[0081] Furthermore, the lens barrel position state determination module 620 can also be specifically used for:
[0082] If the lens barrel module moves normally within a preset time period, and the output electrical signal remains unchanged, and reaches the limit electrical signal when the lens barrel module moves, then the lens barrel module is determined to have moved to the preset limit position.
[0083] In this embodiment, a magnet and a magnetic sensor are embedded in the outer shell of the lens barrel module of the VR device, and the other magnet and magnetic sensor are fixedly set at a preset position corresponding to the lens barrel module. When the main controller controls the movement of the lens barrel module, it drives one of the magnets and magnetic sensors to move accordingly. Then, the output electrical signal of the magnetic sensor when the lens barrel module moves is detected, and the position state of the lens barrel module can be determined by the output electrical signal. This realizes real-time detection of the position state of the lens barrel module when it moves in the VR device. It is not necessary to set up light spot elements or mechanical limit detection switches at every position of the lens barrel module during the movement process to detect the position state. Through the simple layout of the magnetic sensor and the magnet, the complexity of the position state detection of the lens barrel in the VR device is reduced, thereby reducing the setup cost of the position state detection of the lens barrel in the VR device.
[0084] It should be understood that the device embodiments and method embodiments can correspond to each other, and similar descriptions can be referred to the method embodiments. To avoid repetition, further details will not be provided here. Specifically, Figure 6 The apparatus 600 shown can execute any of the method embodiments provided in this application, and the foregoing and other operations and / or functions of each module in the apparatus 600 are respectively for implementing the corresponding processes in the various methods of the embodiments of this application. For the sake of brevity, they will not be described in detail here.
[0085] The apparatus 600 of this application embodiment has been described above from the perspective of functional modules in conjunction with the accompanying drawings. It should be understood that this functional module can be implemented in hardware, in software instructions, or in a combination of hardware and software modules. Specifically, the steps of the method embodiments in this application can be completed by integrated logic circuits in the processor's hardware and / or by software instructions. The steps of the method disclosed in this application embodiment can be directly embodied as being executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. Optionally, the software module can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps in the above method embodiments.
[0086] This application also provides a computer storage medium storing a computer program thereon, which, when executed by a computer, enables the computer to perform the methods of the above-described method embodiments. Alternatively, this application also provides a computer program product containing instructions that, when executed by a computer, cause the computer to perform the methods of the above-described method embodiments.
[0087] When implemented using software, it can be implemented entirely or partially as a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD)), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0088] Those skilled in the art will recognize that the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0089] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0090] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. For example, the functional modules in the various embodiments of this application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0091] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A virtual reality device, characterized in that, include: The lens barrel module, magnet, magnetic sensor, and main controller are provided. One of the magnet and the magnetic sensor is embedded in the lens barrel housing of the lens barrel module, and the other is fixedly disposed at a corresponding preset position on the lens barrel module. The main controller controls the movement of the lens barrel module and detects the output electrical signal of the magnetic sensor when the lens barrel module moves, so as to determine the position state of the lens barrel module; The positional state of the lens module includes the lens module being abnormally stuck during movement and the lens module moving to a preset limit position. Under the condition that the lens module normally generates the movement command and the output electrical signal remains unchanged within a preset time period, the positional state of the lens module is determined by combining whether the output electrical signal reaches the preset limit electrical signal when the lens module moves to the limit position.
2. The device according to claim 1, characterized in that, The lens module includes a left lens barrel and a right lens barrel; If the main controller controls the left and right lens barrels to move synchronously, then one of the magnet and the magnetic sensor is embedded in the outer shell of at least one lens barrel in the lens barrel module; If the main controller controls the left lens barrel and the right lens barrel to move independently, then one of the magnet and the magnetic sensor is respectively embedded in the outer shell of the left lens barrel and the right lens barrel, and the other is respectively fixedly set at the corresponding preset positions of the left lens barrel and the right lens barrel.
3. The device according to claim 1, characterized in that, The magnet is embedded in the outer shell of the lens barrel module, and the magnetic sensor is fixedly installed at a preset position corresponding to the lens barrel module.
4. The device according to claim 1, characterized in that, One end of the magnet has a notch marking.
5. The device according to claim 1, characterized in that, The output electrical signal is the output voltage.
6. The device according to claim 1, characterized in that, The magnetic sensor is a linear Hall sensor.
7. The device according to claim 1, characterized in that, The output electrical signal of the magnetic sensor is detected in real time.
8. A method for detecting the position and state of a microscope tube, characterized in that, Applied to any one of the virtual reality devices according to claims 1-7, comprising: The output electrical signal of the magnetic sensor is detected during the movement of the lens barrel module; Based on the movement command of the lens module, the position state of the lens module is determined according to the output electrical signal; The step of determining the position state of the lens module according to the output electrical signal based on the movement command of the lens module includes: If the movement command of the lens barrel module is generated normally within the preset time period, and the output electrical signal remains unchanged, and the limit electrical signal when the lens barrel module moves is reached, then it is determined that the lens barrel module has moved to the preset limit position. If the lens module moves normally within the preset time period and the output electrical signal remains unchanged, but does not reach the limit electrical signal when the lens module moves, then it is determined that the lens module is abnormally stuck during movement.
9. The method according to claim 8, characterized in that, The output electrical signal of the detection magnetic sensor during the movement of the lens module includes: The output electrical signal of the magnetic sensor is detected in real time during the movement of the lens barrel module.
10. A device for detecting the position and state of a microscope tube, characterized in that, Configured in any one of claims 1-7, the virtual reality device comprises: The output electrical signal detection module is used to detect the output electrical signal of the magnetic sensor during the movement of the lens barrel module; The lens barrel position state determination module is used to determine the position state of the lens barrel module based on the movement command of the lens barrel module and according to the output electrical signal; The lens barrel position determination module is specifically used for: If the movement command of the lens barrel module is generated normally within the preset time period, and the output electrical signal remains unchanged, and the limit electrical signal when the lens barrel module moves is reached, then it is determined that the lens barrel module has moved to the preset limit position. If the lens module moves normally within the preset time period and the output electrical signal remains unchanged, but does not reach the limit electrical signal when the lens module moves, then it is determined that the lens module is abnormally stuck during movement.
11. A computer-readable storage medium, characterized in that, Used to store a computer program that causes a computer to perform the lens barrel position state detection method as described in any one of claims 8-9.
12. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the lens barrel position state detection method as described in any one of claims 8-9.
Citation Information
Patent Citations
Electronic equipment
CN213423605U