1. Technical Field
Embodiments of the present disclosure relate to device controlling systems and methods, and more particularly to an electronic device and a method for adjusting volume levels of an audio signal output by the electronic device.
2. Description of Related Art
In measurement field, a spectral confocal sensor may be installed on a measurement machine to measure special products (e.g., glass products). To position a measurement point on an object, a user has to observe a position relationship between the spectral confocal sensor and a light spot projected on the object by the spectral confocal sensor, and manually adjust a position of the spectral confocal sensor according to the observed result. Because the light spot projected on the object by the spectral confocal sensor is very small, it's time-consuming and difficult to precisely position the measurement point using one's eyes.
The present disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language. One or more software instructions in the modules may be embedded in firmware, such as in an erasable programmable read only memory (EPROM). The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
The controller 50 includes one or more light sources, a spectral analysis circuit, a light source control circuit, and input/output ports. The controller 50 emits a beam of white light and transmits the white light to the sensor 40. The sensor 40 includes a plurality of optimal lenses.
The computing device 60 receives the spectral signal data. The measurement control system 70 analyzes the spectral signal data, and generates an intensity distribution diagram (as shown in
As shown in
Step S10, the setting module 71 designates a measurement point on the object 30. For example, the setting module 71 receives coordinate data of the measurement point in a machine coordinate system, where the coordinate data is inputted by a user via a user interface. The setting module 71 sets an intensity threshold of spectral signals capable of being detected by the sensor 40 installed on the Z axis of the measurement machine 10. For example, a minimum intensity value of the spectral signals capable of being detected by the sensor 40 may be set as 40 candelas (cds). As shown in
In step S20, the driving module 72 generates a driving command according to the coordinate data of the measurement point, and sends the driving command to the measurement machine 10, to drive the sensor 40 to move to a position on top of the measurement point of the object 30.
In step S30, the controller 50 emits a beam of white light, and transmits the white light to the sensor 40. The sensor 40 separates the white light into a plurality of homochromy lights (such as red light, green light) with different wavelengths, projects the homochromy lights onto the measurement point on the object 30, and receives spectral signals reflected from the object, and sends the spectral signals back to the controller 50. The controller 50 analyzes the spectral signals to obtain spectral signal data, and sends the spectral signal data to the computing device 60. The spectral signal data includes a wavelength and an intensity value of each spectral signal.
In step S40, the computation module 73 determines an effective detection range of the sensor 40 according to the spectral signal data. In one embodiment, the effective detection range is determined as a wavelength range determined according to a maximum wavelength of the spectral signals and a minimum wavelength of the spectral signals. For example, if the maximum wavelength of the spectral signal is w1, and the minimum wavelength of the spectral signals is w2, then the effective detection range is determined as between “0” and “w2-w1”.
In step S50, the drawing module 74 draws an intensity distribution diagram according to the spectral signal data, and displays the intensity distribution diagram on the display device 80. For example, the intensity distribution diagrams in
In step S60, the determination module 75 determines if the measurement point falls within the effective detection range of the sensor 40 by determining if a peak value of a wave in the intensity distribution diagram is less than the intensity threshold. If the peak value of the wave in the intensity distribution diagram is less than the intensity threshold (as shown in
In step S60, if the peak value of the wave in the intensity distribution diagram is equal to or more than the intensity threshold (as shown in
In step S90, the control module 76 sends an adjustment command to the measurement machine 10, to control the sensor 40 to move on the Z axis of the measurement machine 10. During the movement of the sensor 40 on the Z axis of the measurement machine 10, the determination module 75 determines an optimal position of the sensor 40 according to variation of the peak value of the wave in the intensity distribution diagram. For example, when the sensor 40 moves downwards along the Z axis of the measurement machine 10, the peak value of the wave increases and reaches a maximum value as shown in
The method may further include steps, which output measurement data, such as position data of the sensor 40, peak values of the wave in the intensity distribution diagram, on the display device 80.
Although certain disclosed embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2013 1 00662854 | Feb 2013 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
6211506 | Pryor et al. | Apr 2001 | B1 |
7876927 | Han et al. | Jan 2011 | B2 |
20040193385 | Yutkowitz | Sep 2004 | A1 |
20100017870 | Kargupta | Jan 2010 | A1 |
20120072170 | McKendrick et al. | Mar 2012 | A1 |
20120229814 | Freimann et al. | Sep 2012 | A1 |
20140002610 | Xi et al. | Jan 2014 | A1 |
Number | Date | Country | |
---|---|---|---|
20140240718 A1 | Aug 2014 | US |