1. Field of the Invention
The present invention relates to a medium detecting device that detects using an optical sensor whether a medium is set in a device.
2. Description of the Related Art
Noncontact optical sensors that detect objects are used in various fields. Optical sensors are used to detect whether paper money is put in ATMs (automated teller machines), whether coins are inserted in automatic vending machines, whether tickets or commuter passes are inserted in automatic ticket gates, and so forth. In recording medium players, such as CD (compact disc) players or DVD (digital versatile disc) payers, optical sensors are often used to detect whether a CD (compact disc) or a DVD (digital versatile disc) is set in the players.
For example, Japanese Patent Application Laid Open No. 2003-338112 discloses a recording-medium conveying device that includes an optical sensor and microswitches. The optical sensor includes a light emitting diode (LED) and a phototransistor. The optical sensor and the microswitches are used to detect whether the disc is a disc with an outer diameter of 12 centimeters (cm) such as a CD and a DVD, a pseudo disc in which a CD with an outer diameter of 8 cm is fitted in a circular adaptor with an outer diameter of 12 cm, or a CD with an outer diameter of 8 cm.
When a disc is conveyed inside the device with a conveying roller, a medium detecting sensor, which is the optical sensor, detects the disc. The microswitches function as outline detecting sensors that detect the outline of the disc to thereby detecting whether the disc is a 12-cm disc or a 12-cm pseudo disc. During a predetermined masking time period that starts when the disc is detected, if a detection signal output from the medium detecting sensor does not change, then, from the output of the outline detecting sensor it is determined whether the disc is a 12-cm disc or a 12-cm pseudo disc.
According to this conventional technology, a system controller provided with a microprocessor controls the recording-medium conveying device and a recording-medium playback device that includes the recording-medium conveying device. Output of the optical sensor is converted into digital values, and the digital values are binarized into detection signals, based on a predetermined threshold. Specifically, if the output of the optical sensor exceeds the threshold, it is converted to a high logical level (H) detection signal, and if the output is smaller than the threshold, it is converted to a low logical level (L) detection signal. The output of the optical sensor is low when a disc is not set and high when the disc is set. Accordingly, whether a disc is set can be detected using the threshold.
However, output of the optical sensors fluctuates because of fluctuations in power supply and environmental temperature, irregular parts, aging, and so forth. Fluctuations in power supply affect the output as follows. If the power supply increases in the optical sensor, electric current passing through the LED increases and the LED emits a stronger light. As a result, when the phototransistor is turned on, photocurrent increases and corrector voltage decreases, resulting in a smaller value to be output from the optical sensor. On the other hand, if the power supply decreases in the optical sensor, the electric current passing through the LED decreases and the LED emits a weaker light. As a result, when the phototransistor is turned on, the photocurrent decreases and the corrector voltage increases, resulting in a larger value to be output from the optical sensor.
Fluctuations in environmental temperature affect the output as follows. For example, the light emitted from the LED is stronger with lower temperature, and is weaker with higher temperature. On the other hand, sensitivity of the phototransistor decreases with lower temperature (lower photocurrent), and increases with higher temperature (higher photocurrent). When the LED is combined with the phototransistor, the phototransistor has greater influence than the LED. Thus, with higher temperature, the photocurrent increases when the phototransistor is turned on, resulting in a smaller value to be output from the optical sensor. With lower temperature, the photocurrent decreases when the phototransistor is turned on, resulting in a larger value to be output from the optical sensor. This description is applicable when the LED and the phototransistor are used together in the optical sensor. Other types of optical sensors might have different tendencies.
In recent years, highly transmissible C-thru discs have been developed. When a C-thru disc is inserted, the light emitted from the LED is irradiated to the phototransistor. As a result, the output of the optical sensor does not change much, whether the C-thru disc is inserted or not.
A threshold SH1 appropriate under low temperature is applicable for room temperature but with very small margin, and is inapplicable for high temperature. On the other hand, a threshold SH3 appropriate under high temperature is applicable for room temperature but with very small margin, and is inapplicable for low temperature. A threshold SH2 appropriate under room temperature is applicable for high and low temperatures but with very small margins. Failures can increase if the threshold margin is small.
Thus, it is difficult to determine a single threshold with the conventional technology, under the conditions described above.
One approach is to screen out the parts that cause the fluctuation to suppress fluctuations, so that the operable range becomes wider under both high and low temperature conditions, however, this approach leads to increased cost.
It is an object of the present invention to at least solve the problems in the conventional technology.
According to an aspect of the present invention, a medium detecting device determines whether a medium is set in a device, and includes an optical sensor that irradiates a light towards a position where the medium is possibly set, collects a reflected light, and outputs a signal based on the reflected light collected; a measuring unit that measures a parameter related to the optical sensor; a threshold selects unit that selects a threshold from among a plurality of thresholds based on the parameter measured; and a determining unit that determines whether the medium is set based on a comparison of the signal and the threshold selected.
According to another aspect of the present invention, a recording-medium playback device determines whether a medium is set using the above medium detecting device.
According to still another aspect of the present invention, a medium detecting method is a method of determining whether a medium is set in a device, and includes irradiating a light from an optical sensor towards a position where the medium is possibly set, collecting at the optical sensor a reflected light, and outputting a signal from the optical sensor based on the reflected light collected; measuring a parameter related to the optical sensor; selecting a threshold from among a plurality of thresholds based on the parameter measured; and determining whether the medium is set based on a comparison of the signal and the threshold selected.
According to still another aspect of the present invention, a computer-readable recording medium stores therein a computer program that causes a computer to implement the above medium detecting method.
The other objects, features, and advantages of the present invention are specifically set forth in or will become apparent from the following detailed description of the invention when read in conjunction with the accompanying drawings.
Exemplary embodiments of the present invention will be described below with reference to accompanying drawings.
It is known that output of an optical sensor fluctuates because of various parameters, such as fluctuations in temperature around the optical sensor or in power supply voltage supplied to the optical sensor. In a medium detecting device according to the present invention, a threshold used to detect whether a disc is set in a device, can be variably set according to various parameters.
Specifically, a plurality of thresholds corresponding to various levels of temperature or power supply voltage is predetermined. Immediately before the disc is detected, the temperature or the power supply voltage is measured, and a threshold is selected from among the predetermined thresholds based on the measured temperature or power supply voltage. Accordingly, the output of the optical sensor can be prevented from being affected by the fluctuations in temperature or power supply voltage, so that the disc can be detected accurately.
A first embodiment according to the present invention is described with reference to FIGS. 2 to 7.
The optical sensor 2 includes an LED (not shown) and a phototransistor (not shown). Light emitted from the LED controls the phototransistor to turn on/off. The optical sensor 2 outputs a corrector voltage, which is an output of the phototransistor, as an optical sensor output SV, to the microcomputer 5.
The temperature sensor 3 can be a thermistor, a resistance thermometer, a temperature-sensitive ferrite, and so forth. The temperature sensor 3 measures a temperature of or around the optical sensor 2, converts the temperature measured to a voltage, and outputs the voltage as a temperature sensor output TO, to the microcomputer 5.
The microcomputer 5 includes two digital-analogue converters (hereinafter, “A/D converter”) 51, 52, a detection processing section 53, and a storage section 54. The microcomputer 5 executes a computer program stored in a program memory (not shown), to realize a function of the detection processing section 53. The microcomputer 5 monitors the optical sensor output SV and the temperature sensor output TO, to determine whether the disc 4 is set in the medium detecting device 1.
The A/D converter 51 converts the optical sensor output SV into a digital value, and the digital value is output as an optical sensor output SV1 to the detection processing-section 53. The A/D converter 52 converts the temperature sensor output TO into a digital value, and the digital value is output as a temperature sensor output TO1 to the detection processing section 53.
The storage section 54 includes a ROM (read only memory) and a RAM (random access memory), and so forth, and stores a threshold table shown in
The detection processing section 53 selects a threshold from the threshold table stored in the storage section 54, based on the temperature sensor output TO1. The detection processing section 53 compares the threshold selected with the optical sensor output SV1, to determine whether a disc 4 is set in the medium detecting device 1.
The detection processing section 53 selects a threshold from the threshold table stored in the storage section 54, based on the acquired temperature sensor output TO1 (step S120). Specifically, if the temperature sensor output TO1 corresponds to a predetermined low temperature range, the threshold SH11 is selected to detect whether the disc 4 is set. Likewise, thresholds SH12 and SH13 are selected when the temperature sensor output TO1 corresponds to room and high temperature ranges, respectively.
The detection processing section 53 acquires an optical sensor output SV1 of the A/D converter 51 (step S130). The detection processing section 53 compares the optical sensor output SV1 with the threshold selected (step S140). If the optical sensor output SV1 is larger than the threshold, the detection processing section 53 outputs a detection signal that the disc 4 is set.
Upon receiving the detection signal that the disc 4 is set, the playback processing section 91 loads the disc 4 and starts a playback processing (step S150).
The detection processing section 53 repeats the operation of comparing the selected-threshold with an optical sensor output SV1, until the optical sensor output SV1 is larger than the threshold (steps S130 and S140).
As described above, the threshold table is stored in the storage section 54, the temperature sensor 3 measures the temperature before the disc 4 is detected, the detection processing section.53 selects a threshold based on the temperature measured and the threshold table, compares the threshold with the optical sensor output SV1 of the optical sensor 2 to detect whether the disc 4 is set. Therefore, the disc can be detected accurately, without having to screen out parts that cause fluctuations in the output. Moreover, cost is suppressed because the parts do not have to be screened.
In the first embodiment, the medium detecting device 1 includes the temperature sensor 3. However, if the recording-medium playback device 9 already includes a temperature sensor, it can be used. In other words, the temperature sensor 3 does not necessarily have to be provided inside the medium detecting device 1, as long as information that identifies the temperature around the optical sensor 2 is input to the detection processing section 53, such as the temperature sensor output TO or the temperature sensor output TO1.
In the first embodiment, a threshold is selected according to temperature changes. However, fluctuations in output of the optical sensor are not only caused by variations in the temperature, but also caused by variations in the power supply voltage supplied to the optical sensor. In a second embodiment, the threshold is selected according to the power supply voltage.
The power supply sensor 6 monitors the power supply voltage supplied to the optical sensor 2, and outputs the power supply voltage as a power supply sensor output VO to the A/D converter 55. The A/D converter 55 converts the power supply sensor output VO to a digital value, and the digital value is output as a power supply sensor output VO1 to the detection processing section 53.
The storage section 54 stores a threshold table that includes a threshold for each of a plurality of levels of the power supply voltage as shown in
Next, an operation of the medium detecting device la is described. When a loading operation request to insert the disc 4 is received from the playback processing section 91, the detection processing section 53 acquires a power supply sensor output VO1 from the A/D converter 55.
Based on the acquired power supply sensor output VO1 the detection processing section 53 selects a threshold from the threshold table stored in the storage section 54. Specifically, if the power supply sensor output VO1 corresponds to the low power supply range, the detection processing section 53 selects the threshold SH21. Likewise, the detection processing section 53 selects the threshold SH22 when the power supply sensor output VO1 corresponds to the medium power supply range, and selects the threshold SH23 when the power supply sensor output VO1 corresponds to high power supply ranges.
The detection processing section 53 acquires an optical sensor output SV1 from the A/D converter 51. The detection processing section 53 compares the optical sensor output SV1 with the threshold selected. If the optical sensor output SV1 is larger than the threshold, the detection processing section 53 outputs a detection signal that the disc 4 is set.
Upon receiving the detection signal that the disc 4 is set, the playback processing section 91 loads the disc 4 and starts a playback processing. The detection processing section 53 repeats the operation of comparing the selected threshold with an optical sensor output SV1, until the optical sensor output SV1 is larger than the threshold.
As described above, the threshold table is stored in the storage section 54, the power supply sensor 6 measures the power supply voltage before the disc 4 is detected, the detection processing section 53 selects a threshold based on the power supply voltage measured and the threshold table, compares the threshold with the optical sensor output SV1 of the optical sensor 2 to detect whether the disc 4 is set. Therefore, the disc can be detected accurately, without having to screen out parts that cause fluctuations in the output. Moreover, cost is suppressed because the parts do not have to be screened.
In the second embodiment, the medium detecting device 1a includes the power supply sensor 6. However, if the recording-medium playback device 9 already includes a power supply sensor, it can be used. In other words, the power supply sensor 6 does not necessarily have to be provided inside the medium detecting device la, as long as information that identifies,the power supply voltage supplied to the optical sensor 2 is input to the detection processing section 53, such as the power supply sensor output VO or the or the power supply sensor output VO1.
The parameters used to select the threshold in the first and second embodiments are temperature and power supply voltage, respectively. However, any other parameter that affects the output of the optical sensor can be used. Moreover, a plurality of parameters can be used in combination.
An example shown in
When a loading operation request to insert the disc 4 is received, the detection processing section 53 acquires a temperature sensor output TO1 from the A/D converter 52 and a power supply sensor output VO1 from the A/D converter 55, selects a threshold from the threshold table based on the temperature sensor output TO1 and the power supply sensor output VO1, compares the optical sensor output SV1 with the threshold selected. The threshold can be set more accurately using both the temperature and the power supply voltage as compared to the case when only one parameter is used.
In the first and second embodiments, the medium detecting device 1 is used to detect whether the disc 4 is set in the recording-medium, playback device 9 that plays back discs such as DVDs and CDs. However, the medium detecting device 1 can be used to detect any medium in any device.
According to the present invention, a disc can be detected accurately, and cost can be suppressed.
Although the invention has been described with respect to a specific embodiment for a complete and clear disclosure, the appended claims are not to be thus limited but are to be construed as embodying all modifications and alternative constructions that may occur to one skilled in the art that fairly fall within the basic teaching herein set forth.
Number | Date | Country | Kind |
---|---|---|---|
2004-080561 | Mar 2004 | JP | national |