Origin detector in image scanner

Abstract: An apparatus according to the present invention includes a stepping motor (5) and a motor drive circuit (4) for first moving a lamp unit to hit the unit against a reference object opposite to an origin and then moving the unit toward the origin, a CPU (3) for measuring the distance through which the lamp unit is moved from the reference object toward the origin, and the CPU (3) for controlling the lamp unit so that the lamp unit stops at the origin according to the distance measured from the reference object.

Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an origin detector for a lamp unit in an image scanner. 2. Description of the Related Art The image scanner needs an origin (reference position) for a lamp unit to hold a reading start position. Thus conventional image scanners use a photosensor, a reed switch, or the like to detect a reference position. In the arrangement of a conventional image sensor in Fig. 3B, an output signal from a sensor 1 is linked with an interrupt terminal 2 also serving as an I/O port of a CPU 3, which performs interrupt operation by detecting the timing of turn-on and turn-off of the sensor at a rising edge and a falling edge. Referring now to Fig. 5C, the arrangement of a conventional scanner is described below. Numeral 7 indicates a lamp unit, which is arranged to be moved along a shaft 12 by a motor 11. Numeral 6 designates a home position sensor for detecting an origin for the lamp unit. Numerals 8, 9, and 10 indicate a mirror unit, a CCD for reading an image, and a lens, respectively. Numerals 13 and 14 designate belts, and numerals 15 and 16 represent pulleys. Referring now to the flowchart in Fig. 2 and the arrangement of the scanner in Figs . 5C and 5D, a conventional controlling method using a sensor is described below. Sensor condition is checked immediately after the power is turned on (S201). If the sensor is off (the lamp unit is not in the position of the sensor) as shown in Fig. 5C, the lamp unit moves back toward the sensor (S202 and S203) until the sensor turns on (the lamp unit is in the position of the sensor). After the sensor turns on, the lamp unit further moves back a few steps to make sure that the sensor is on (S204). Then the lamp unit begins to move forward (S205) and stops (S207) at such a position that the sensor turns off (S206), that is, an origin. If the sensor is on as shown in Fig. 5D immediately after the power is turned on (S201), the lamp unit moves forward and stops at such a position that the sensor turns off, that is, an origin. This allows the previous operations (S202 to S204) to be omitted. Such a position that the sensor is switched off is specified as an origin, since the range in which the sensor turns on cannot be neglected in relation with variations in the reading start position particularly if a reed switch is used. A scanner using a conventional origin detector is disclosed in Japanese Patent Application Laying Open (KOKAI) No. 4-329531. In US 4,413,900 A there is disclosed an optical scanning system for a copying apparatus. For finding a proper starting position first moves the scanning equipment back to a position spaced from the starting position and then towards the starting position. Reaching the starting position is then detected by a microswitch. US 4,561,771 A is related to a system for controlling the reciprocation of a scanning apparatus. Also here a home position is detected by a home switch. The home position is reached by decreasing the speed of the scanning system. US 4,693,595 discloses a method for controlling a stop position of an optical system in a copying machine. Also here, reaching a home position of the optical system is accomplished by causing a motor to run at different speeds, decreasing towards the home position. Conventional origin detectors are expensive because they use a sensor. What is worse, conventional origin detectors need space for a sensor and cables, so that the detectors are prevented from being reduced in size. In addition, problems with assembly may arise because of installation variations. The present invention is made to solve the problems and provide an origin detector enabling a small inexpensive image scanner to be created. SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide an origin detector which requires no sensor and thus is inexpensive and enables an image scanner to be small and inexpensive. A further object of the invention is to provide an origin detector which has no problem with assembly due to installation variations. These and other objects of the invention can be achieved by an apparatus as set out in claim 1. Because the position of the origin is found by measuring the distance traveled from the reference object by the lamp unit, the apparatus eliminates the need for a sensor for detecting the position of the origin, thus reducing an image sensor in cost and size. The means for moving the lamp unit may be a stepping motor, in that case the lamp unit is hit against the reference object at a speed which is in a through range and outside a resonance range. Hitting the lamp unit at such a speed reduces noise produced while the lamp unit is in motion and after the unit hits against the reference unit, since torque is small. The distance traveled by the lamp unit toward the reference object may be set more than a predetermined maximum travel to hit the lamp unit against the reference object without failure. Since the lamp unit is moved the predetermined maximum travel, it can securely be hit against the reference object. After the stepping motor steps out when the lamp unit hits against the reference object, the stepping motor is operated a few steps at a frequency less than a self-starting frequency to smoothly transfer the operation of the stepping motor to a slow-up table. Moving the stepping motor several steps at a frequency less than the self-starting frequency after the motor steps out allows the operation of the stepping motor to be smoothly transferred to the slow-up table. Further objects and advantages of the present invention will be apparent from the following description of the preferred embodiments of the invention as illustrated in the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 shows an origin detection flowchart according to the present invention. Fig. 2 shows an origin detection flowchart according to prior art. Fig. 3A is a block diagram showing an origin detector according to the present invention. Fig. 3B is a block diagram showing an origin detector according to prior art. Fig. 4 shows a flow of operation of an origin detector according to the present invention. Fig. 5A shows a mechanism of a scanner according to the present invention. Fig. 5B shows a mechanism of a scanner according to the present invention. Figure 5C shows a mechanism of a scanner according to prior art. Fig. 5D shows a mechanism of a scanner according to prior art. Fig. 6 shows motor torque curves. Fig. 7 shows motor phase control condition. DESCRIPTION OF THE PREFERRED EMBODIMENTS Fig. 3A shows the arrangement of an embodiment of the present invention. Unlike the conventional apparatus in Fig. 3B, the embodiment needs no sensor. Referring now to the flowchart of Fig. 1, the operation diagram of Fig. 4, and the scanner arrangement of Figs. 5A and 5B, the effects of the present invention are described below. Because the lamp unit 7 is at any position when the power is turned on, the CPU cannot locate the position. As shown in Fig. 5A, the lamp unit makes the stepping motor step out by moving forward to hit a contact 17 thereof against a cabinet 18 opposite to the origin, thereby detecting the reference position. The origin is calculated backward from the reference position. In this case, the stepping motor must be force operated a certain number of steps to make the motor step out without failure. The distance through which the motor is force moved is the maximum travel L in Fig. 4 . Assuming that the feed per motor step is 800 dpi, the number of steps required to move the lamp unit the maximum travel L is represented by the equation L×800/25.4, where the unit for L is the millimeter, and one inch is 25.4 mm. The lamp unit may be hit against a cabinet nearer to the origin. Since the lamp unit is usually near the origin, however, the stepping motor unfavorably steps out for a long time when it is operated steps corresponding to the maximum travel L. Before the lamp unit is hit against a cabinet, the stepping motor is slowed up from 500 to 3000 pps to reduce noise while the motor steps out (S101). The lamp unit is likely to bounce back when hitting against the cabinet, because the unit is at a high speed. The amount of the bounce appears to be almost negligible, since the lamp unit hits against the cabinet. To operate the stepping motor at a high speed, the speed thereof must be transferred from the self-starting range to the through range. The self-starting range is a range that allows the stepping motor to be started or stopped at a certain pulse rate with reference to load. On the other hand, the through range is a range that allows the stepping motor to respond without becoming asynchronous when the pulse rate or load torque is gradually increased beyond the self-starting range. The curve PULL-IN, one of the motor torque curves in Fig. 6, represents the maximum self-starting frequency, that is, the maximum pulse rate in the self-starting range, and the curve PULL-OUT, the other of the motor torque curves, represents the maximum response frequency, that is, the maximum pulse rate in the through range. The graphs in Fig. 6, plotted for the same motor and motor driver, with the current per phase kept constant, vary with conditions. The graphs give the maximum speed corresponding to a necessary torque. For example, the stepping motor can be started at 1200 pps if a torque of 200g-cm or less is required, while the stepping motor must be started at 400 pps or less if a torque a little less than 300g-cm is required. In other words, when the stepping motor is started, the torque of the motor must be set less than indicated by the curve PULL-IN. The maximum speed after slow-up must be set less than indicated by the curve PULL-OUT. The resonance range is a range where if the frequency of vibration due to motor rotation is equal to or near the natural frequency of the housing containing the stepping motor, the housing resonates, so that the vibration thereof sharply becomes violent. The speed of the stepping motor must therefore be set outside the resonance range. After step-out, the actual phase condition differs from the regular phase condition. To make the actual phase condition agree with the regular phase condition, in-phase excitation is performed for about 0.6 second using two phases (S103 and S104). Rotating the stepping motor through an angle equivalent to a 5-mm step at 50 pps below the self-starting frequency immediately after start-up (S105) and linking the operation of the stepping motor with the slow-up table allow the stepping motor to be smoothly operated (S106). As shown in Fig. 7, to control the stepping motor, four patterns are switched to each other for 2-phase excitation, and eight patterns are switched to each other for 1-2-phase excitation. During normal operation, the actual phase condition always agrees with the regular phase condition controlled by the CPU. When the motor steps out, however, the actual phase condition disagrees with the regular phase condition. The probability that the regular phase condition disagrees with the actual phase condition is 7/8 and 3/4 for 1-2-phase excitation and 2-phase excitation, respectively. The number of steps through which the stepping motor is operated at 50 pps below the self-starting frequency must be at least seven steps or more and three steps or more for 1-2-phase excitation and 2-phase excitation, respectively. After the distance between a reference position 18 for the contact and the origin, which distance is specified in steps (S107), is traveled, the lamp unit is returned to the origin using the stepping motor, and the position of the origin is constantly controlled until the power is turned off. The sequence described above allows the origin to be kept in position. An origin detector according to the present invention enables image scanners to be reduced in cost and size, because the detector uses no sensor. The origin detector also has the effect of reducing electromagnetic interference (EMI) noise, since cables from the sensor, through which noise is conveyed, are eliminated together with the sensor itself. An origin detector according to the present invention reduces noise which is produced when a lamp unit hits against a reference object and when a stepping motor steps out. An origin detector according to the present invention allows an origin to be detected with a lamp unit at any position when the power is turned on. An origin detector according to the present invention causes the operation of the stepping motor to be smoothly linked with a slow-up table without step-out.

Claims: An origin detector used for an image scanner comprising a lamp unit (7) with a light source for reading an original, said lamp unit (7) being moveably installed, and said origin detector being dedicated to detect an origin for said lamp unit (7), characterized in that said origin detector comprises: means for first moving said lamp unit (7) into a scanning direction so as to hit against a reference object (18), whereby said reference object (18) is located off from said origin seen in said scanning direction, and for then moving said lamp unit (7) towards said origin after having hit against said reference object (18), means for measuring a distance through which said lamp unit (7) is moved from said reference object (18) towards said origin, and means for controlling said moving of said lamp unit (7) towards said origin, so that said lamp unit (7) stops at the origin according to the distance measured from said reference object (18). The origin detector according to claim 1, wherein said means for moving said lamp unit (7) is a stepping motor, and said lamp unit (7) is hit against said reference object (18) at a speed which is in a through range and outside a resonance range. The origin detector according to claim 1, wherein said lamp unit (7) is moved towards said reference object (18) through a distance longer than a predetermined maximum travel (L) to hit said lamp unit (7) against said reference object (18) without failure. The origin detector according to claim 1, wherein said means for moving said lamp unit (7) is a stepping motor, and the operation of said stepping motor is smoothly transferred to a speedup table by operating said stepping motor through a predetermined number of steps at a frequency below a self-starting frequency after said stepping motor steps out when said lamp unit (7) hits against said reference object (18).

Inventors: MASUDA KAZUYA, MIYAMOTO KAZUNORI, NAKANISHI KENJI, TANAKA KENJI, MASUDA, KAZUYA, MIYAMOTO, KAZUNORI, NAKANISHI, KENJI, TANAKA, KENJI
Applicants: SHARP KK, SHARP KABUSHIKI KAISHA
Application year: 1997
Main classification: H04N1
IPC codes: H04N1, G03B27