Bar code reader

Abstract: A bar code reader has a CCD for producing an image signal, an amplifier for amplifying the image signal from the CCD and a digitalizing circuit for changing the image signal to binary signal. The CCD operates with an operating voltage Vcc less than 8 V. The amplifier has first and second operational amplifiers each having one voltage source terminal connected to Vcc of 5 V and the other voltage source terminal connected to ground. Also, the digitalizing circuit has a third operational amplifier having one voltage source terminal connected to Vcc of 5 V and the other voltage source terminal connected to ground.

Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bar code reader using an cage sensor such as a CCD. In particular, the present invention is concerned with a bar code reader having a light source for lighting the bar code, an image sensor for receiving the reflected light from the bar code and producing an image signal, said image sensor comprises light receiving elements formed in a CCD array, a drive circuit for driving the image sensor, an amplifier for amplifying the image signal, said amplifier comprises first and second operational amplifiers, said amplifier comprises an amplitude control means for controlling the amplitude of the signal produced by said first and second operational amplifiers; and a digitizing circuit for digitizing the amplified image signal and producing a digital signal representing the bar code. 2. Description of the Prior Art In Fig. 5, a prior art bar code reader is shown which includes a power source PS for supplying 5 V, a DC-DC converter 21 for changing the voltage from 5 V to 12 V, an image sensor 5 such as a CCD having 2048 pixels and operates at 12 V, an operational amplifier 9 for amplifying the output from the CCD 5, a digitizing circuit 10 formed by an operational amplifier for changing the amplified signal to a digital signal, a level down circuit for changing the signal in the system having the Vcc of 12 V to the system having the Vcc of 5 V, and a microcomputer 14 for processing the read bar code signal. The microcomputer 14 includes a counter 15 for counting the width of a bar, an I/O port 16, a serial port 17, a ROM 18 and a RAM 19. By a program previously installed in the ROM 18, microcomputer 14 processes the read data and the result is applied to a buffer 20 and further transmitted to another processing device (not show). The bar code reader further includes a light source 2 formed by LEDs aligned in an array for emitting a ribbon of light having a wavelength of 660 nm, an image sensor drive circuit 12 for driving the CCD 5, and an indicator 13 formed by a buzzer or a lamp for indicating that the reading is completed. In the prior art bar code reader, the image sensor 5 and circuits 9, 10 and 11 operates with the operating voltage Vcc of 12 V, and the circuit 2, 12 and 13 operates with the operating voltage Vcc of 5 V. The former circuit is referred to as a 12 V circuit system, and the latter is referred to as a 5 V circuit system. Since the bar code reader has only one power source, it is necessary to prepare two voltages levels, 5 V and 12 V. To this end, DC-DC converter 21 is provided in the prior art bar code reader. Furthermore, to enable the use of the signal produced in the 12 V circuit system in the 5 V circuit system, a level down circuit 11 is necessary. When such a DC-DC converter is employed, the bar code reader becomes bulky in size, and increases the manufacturing cost. Furthermore, when a battery is used for the power source, the battery does not last long due to the use of high voltage and the power consumed in the DC-DC converter 21 and the level down circuit 11. The Japanese patent application JP-A-62 179 072 discloses the bar code reader which provides an amplifier containing an amplitude control means for controlling the amplitude of the signal produced by the operational amplifiers for amplifying the image signal. This prior art bare code reader also contains a microprocessor which receives the amplified output signal of the image sensor. In order to be able to read bar codes with different reflection indexes the microcomputer - in case the reading is impossible - changes the states of its output ports and inputs the bar code data with a different amplification. The drawback of this prior art bar code reader is its huge dimension and its high manufacturing costs. SUMMARY OF THE INVENTION The present invention has been developed with a view to substantially solving the above described disadvantages and has for its essential object to provide an improved bar code reader. In order to achieve the aforementioned object, the bar code reader according to the present invention comprises the features as specified in appended claim 1. Since the bar code reader of the present invention has the image sensor which operates with an operating voltage Vcc of 5 V and the amplifier and the digitizing circuit that can be operated with Vcc of 5 V, it is unnecessary to provide the DC-DC converter or the level down circuit as required in the prior art bar code reader. Thus, the bar code reader according to the present invention can be assembled in a compact size and cost effective. BRIEF DESCRIPTION OF THE DRAWINGS These and other objects and features of the present invention will become clear from the following description taken in conjunction with the preferred embodiment thereof with reference to the accompanying drawings throughout which like parts are designated by like reference numerals, and in which: Figs. 1a and 1b, each is a schematic view of a bar code reader of the present invention; Fig. 2 is a block diagram of a bar coder reader of the present invention; Fig. 3 is a circuit diagram of circuit 23 showing a modification thereof; Figs. 4a and 4b, each is a waveform diagram showing signals processed in the circuit of Fig. 3; and Fig. 5 is a block diagram of a prior art bar code reader. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Referring to Fig. 1a, a bar code reader according to the present invention is shown. Provided in a casing 8 are a light source 2 formed by LEDs aligned in an array for emitting a ribbon of light having a wavelength of 660 nm, a mirror 3 for guiding light reflected from a bar code 1, an image forming lens 4, an image sensor 22 such as a CCD having 2048 pixels and operates at 5 V, a processing circuit 6, and a communication line 7 for sending data to a terminal machine, such as a POS. Instead of the communication line 7, a wireless system 7' can be used for transmitted the data, as shown in Fig. 1b. For the wireless system 7', a photodiode for generating light (infrared light) or a wave generator for generating wave having a frequency in the range of 400 MHz can be used. Referring to Fig. 2, the circuits mainly provided in the processing circuit 6 is shown. The circuit has a power source PS for supplying 5 V, the image sensor 22, an operational amplifier 23 for amplifying the output from the CCD 22, a digitalizing circuit 24 formed by an operational amplifier for changing the amplified signal to a digital signal, and a microcomputer 14 for processing the read bar code signal. The microcomputer 14 includes a counter 15 for counting the width of a bar, an I/O port 16, a serial port 17, a ROM 18 and a RAM 19. By a program previously installed in the ROM 18, microcomputer 14 processes the read data and the result is applied to a buffer 20 and further transmitted to another processing device (not show). From I/O port 16, shift gate pulse SH and system clocks  are applied to the drive circuit 12 which then generates and provides first clock CK1, second clock CK2, shift gate pulse SH and reset pulse RS to image sensor 22. The circuit further includes the light source 2, an image sensor drive circuit 12 for driving the CCD 22, and an indicator 13 formed by a buzzer or a lamp for indicating that the reading is completed. Referring to Fig. 3, a detailed circuit diagram of the image sensor 22, amplifier 23 and digitalizing circuit 24 is shown. The image sensor 22 is formed by a CCD such as TCD1201 which operates with an operating voltage Vcc of 5 V. The CCD receives first clock CK1, second clock CK2, shift gate pulse SH and reset pulse RS, as in the similar manner as the CCD with the operating voltage Vcc of 12 V. When a bar code is scanned, the image sensor 22 produces an image signal OS and a compensation signal DS. The amplifier 23 includes a first amplifier, a second amplifier, a differential amplifier and an active filter. The first amplifier is defined by a transistor Tr1 and resistors r1, r2, r3 and r7. The second amplifier is defined by a transistor Tr2, resistors r4, r5, r6, r7', r8 and r0 and a Zener diode D3. The zener diode D3 has a voltage drop of 2.4 V and this voltage drop is used for setting the operating point of the operational amplifier op1. The transistors Tr1 and Tr2 are each arranged in an emitter follower connection. The differential amplifier is defined by an operational amplifier op1 and a resistor r9. The active filter is defined by an operational amplifier op2, resistors r10 and r11 and capacitors C1 and C2. The first amplifier amplifies the image signal OS and the second amplifier amplifies the compensation signal DS. The differential amplifier receives the amplified image signal OS and the amplified compensation signal DS and produces a difference signal representing a difference between the signals OS and DS. The active filter, serving as a low pass filter, receives the difference signal and cuts off high frequency noise signal which has a frequency greater than 300 KHz. Thus, the active filter produces a smoothed signal. In the circuit shown in Fig. 3, the operational amplifiers op1, op2 and op3 operate with the operating voltage Vcc of 5 V. Therefore, it is unnecessary to provide the DC-DC converter or the level down circuit as provided in the prior art bar code reader. Each of the operational amplifiers op1, op2 and op3 has one voltage source terminal connected to Vcc of 5 V and the other voltage source terminal connected to ground so that the dynamic range of the operational amplifier can be used with full operating range. Referring to Fig. 3, the amplifier 23 further has a amplitude control circuit and an offset level control circuit. The amplitude control circuit is defined by an operational amplifier op4, resistors r17, r18 and r19 and an analog switch SW1 controlled by microcomputer 14. The analog switch SW1 is a normally open switch. The offset level control circuit is defined by an operational amplifier op5 resistors r20, r21, r22, r23 and r24 and an analog switch SW2. The analog switch SW2 is a normally close switch. While decoding the digital signal representing the bar code in the microcomputer 14, if a decode error caused by a small amplitude of the bar code detection signal, such as shown in Fig. 4a, left-hand side, is detected, microcomputer 14 produces an ON signal along line L1 to turn switch SW1 on. Thus, a resistor r18 is connected parallel to resistor r17 to increase the amplification rate of operational amplifier op4. Thus, the bar code detection signal from operational amplifier op4 shows greater amplification, as shown in Fig. 4a, right-hand side. While decoding the digital signal representing the bar code in the microcomputer 14, if a decode error caused by a saturation of the bar code detection signal, such as shown in Fig. 4b, left-hand side, is detected, microcomputer 14 produces an OFF signal along line L2 to turn switch SW2 off. This may happen when the contrast between the bars and spaces is relatively low. Thus, a resistor r24 is connected in series to resistor r23 to shift the operating point of the operational amplifier op5. Thus, the bar code detection signal from operational amplifier op5 is shifted within the saturation range, as shown in Fig. 4b, right-hand side. The ON and OFF signals from line L1 or L2 are produced in response to the shift gate pulse SH so that ON condition or OFF condition is maintained at least for one cycle between two shift gate pulses. In the example shown in Fig. 3, only one analog switch SW1 is provided for controlling the amplification rate, but a plurality of analog switches can be provided to change the amplification rate in a plurality of different steps. Similarly, a plurality of analog switches for switch SW2 can be provided to change the offset level in a plurality of different levels. In the embodiment described above, the CCD having 2048 pixels arranged in a linear array (one dimension alignment) with operating voltage range of 4.5 to 5.5 V is employed in the image sensor 22. Also, the pixel alignment in the CCD can be arranged in two dimensions instead of one dimension. Furthermore, for the power source, it is possible to use a dry battery or a rechargeable battery. For the communication line 7, it is possible to use a wireless communication system, using light (infrared light) or a wave having a frequency in the range of 400 MHz. According to the present invention, since all the circuits including the image sensor 22 has the operating voltage Vcc of 5 V, it is possible to assemble the bar code reader in a compact size, and yet the operation reliability can be improved. Also the bar code reader can be manufactured cost effective.

Claims: A bar code reader having (a) a light source (2) for lighting the bar code, (b) an image sensor (22) for receiving the reflected light from the bar code and producing an image signal, said image sensor (22) comprising light receiving elements formed in a CCD array, said light receiving elements formed in said CCD array operating with an operating voltage Vcc of 5 V; (c) a drive circuit (12) for driving the image sensor (22), (d) an amplifier (23) for amplifying the image signal, (d1) said amplifier (23) comprising first and second operational amplifiers (op1 and op2), said first and second operational amplifiers (op1 and op2) each having one voltage source terminal connected to Vcc of 5 V and the other voltage source terminal connected to ground; (d2) said amplifier (23) comprising an amplitude control means (op4, sw1) for controlling the amplitude of the signal produced by said first and second operational amplifiers (op1 and op2); (d3) said amplifier (23) comprising offset level control means (op5, sw2) for controlling the offset level of the signal received from said amplitude control means (op4, sw1); and (e) a digitizing circuit (24) for digitizing the amplified image signal and producing a digital signal representing the bar code, said digitizing circuit (24) comprising a third operational amplifier (op3) having one voltage source terminal connected to Vcc of 5 V and the other voltage source terminal connected to ground. A bar code reader as claimed in claim 1, wherein said digitizing circuit (24) is reset after each scanning operation of said image sensor (22). A bar code reader as claimed in claim 1, further comprising a processor 14 for decoding the digital signal. A bar code reader as claimed in one of the preceding claims, further comprising a data communication system (7 or 7') for transmitting the decoded digital signal. A bar code reader as claimed in claim 4, wherein said data communication system is a wireless system comprising a photodiode. A bar code reader as claimed in claim 4, wherein said data communication system is a wireless system comprising a wave generator.

Inventors: IMAI HIDEKI, KOBAYASHI KEIICHI, TAMAI SEIICHIRO, YAMAO TAKAHIRO, IMAI, HIDEKI, KOBAYASHI, KEIICHI, TAMAI, SEIICHIRO, YAMAO, TAKAHIRO
Applicants: MATSUSHITA ELECTRIC IND CO LTD, MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1992
Main classification: G06K7
IPC codes: H04N5, G06K7