JP4953758B2 - Signal output device and washing machine - Google Patents

Signal output device and washing machine Download PDF

Info

Publication number
JP4953758B2
JP4953758B2 JP2006288960A JP2006288960A JP4953758B2 JP 4953758 B2 JP4953758 B2 JP 4953758B2 JP 2006288960 A JP2006288960 A JP 2006288960A JP 2006288960 A JP2006288960 A JP 2006288960A JP 4953758 B2 JP4953758 B2 JP 4953758B2
Authority
JP
Japan
Prior art keywords
signal
value
input
cpu
frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006288960A
Other languages
Japanese (ja)
Other versions
JP2008109760A5 (en
JP2008109760A (en
Inventor
朋之 金川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2006288960A priority Critical patent/JP4953758B2/en
Publication of JP2008109760A publication Critical patent/JP2008109760A/en
Publication of JP2008109760A5 publication Critical patent/JP2008109760A5/ja
Application granted granted Critical
Publication of JP4953758B2 publication Critical patent/JP4953758B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Washing Machine And Dryer (AREA)
  • Control Of Electric Motors In General (AREA)

Description

本発明は、信号出力装置および洗濯機に関し、特に、低い精度の周波数に基づいて監視を行う信号出力装置および洗濯機に関する。   The present invention relates to a signal output device and a washing machine, and more particularly to a signal output device and a washing machine that perform monitoring based on a low-accuracy frequency.

特許文献1は、マイクロコンピュータを備える制御装置を開示する。マイクロコンピュータは、外部から与えられた基準クロック信号と予め記憶されているクロック信号の周波数の情報とに基づいて、マイクロコンピュータ駆動用クロック信号の周波数の誤差を検出し、検出された誤差を記憶し、マイクロコンピュータ駆動用クロック信号を基にして生成されるデータを、誤差の検出結果に基づいて補正する。   Patent Document 1 discloses a control device including a microcomputer. The microcomputer detects an error in the frequency of the clock signal for driving the microcomputer based on the reference clock signal given from the outside and the frequency information of the clock signal stored in advance, and stores the detected error. The data generated based on the microcomputer driving clock signal is corrected based on the error detection result.

特許文献1に開示された発明によると、海外向け製品と国内向け製品との区別をなくし、周波数精度が低いマイクロコンピュータ駆動用クロックを使用して水位検出や時間カウントを行うことによって製造コストを低減し、しかも、水位の誤差や時間の誤差を小さくすることができる。
特開2000−284803号公報
According to the invention disclosed in Patent Document 1, the distinction between products for overseas and domestic products is eliminated, and the manufacturing cost is reduced by performing water level detection and time counting using a microcomputer driving clock with low frequency accuracy. In addition, the water level error and the time error can be reduced.
JP 2000-284803 A

しかし、特許文献1に開示された発明では、生産設備に費やすコストが増加したり生産効率が低下したりするという問題点がある。制御装置を製品に搭載するという生産工程において、基準クロック信号を入力するという誤差の調整作業が必要なためである。   However, the invention disclosed in Patent Document 1 has a problem that the cost spent on the production facility increases or the production efficiency decreases. This is because an error adjustment operation of inputting a reference clock signal is required in the production process of mounting the control device on the product.

図11を参照して、この問題を具体的に説明する。図11は、一般的な洗濯機の構成を表わす図である。図11に示すように、一般的な洗濯機は、マイクロコンピュータ60の外部にクロック信号を生成する発振子を必要とする。発振子として一般的に用いられる物は、セラミック発振子62である。セラミック発振子62の誤差を補正する方法は、入力部64から基準クロック信号を入力し、セラミック発振子62が発振するクロック信号と基準クロック信号との差をEEPROM(Electronically Erasable and Programmable Read Only Memory)66などの不揮発性メモリに記憶させるという方法である。この方法が採用される場合、洗濯機の生産者は、洗濯機の生産のために、基準クロック信号を供給するための発振子を必要とする。また、洗濯機は、誤差を記憶するための不揮発性メモリを必要とする。これらは、いずれも生産に費やすコストの増加をもたらす。   This problem will be specifically described with reference to FIG. FIG. 11 is a diagram illustrating a configuration of a general washing machine. As shown in FIG. 11, a general washing machine requires an oscillator that generates a clock signal outside the microcomputer 60. A ceramic oscillator 62 is generally used as the oscillator. The method of correcting the error of the ceramic oscillator 62 is to input a reference clock signal from the input unit 64 and to determine the difference between the clock signal oscillated by the ceramic oscillator 62 and the reference clock signal from an EEPROM (Electronically Erasable and Programmable Read Only Memory). 66, which is stored in a non-volatile memory such as 66. When this method is adopted, the manufacturer of the washing machine needs an oscillator for supplying a reference clock signal for the production of the washing machine. The washing machine also requires a non-volatile memory for storing errors. These all increase the cost of production.

セラミック発振子62に代え、マイクロコンピュータ60に内蔵された発振回路によって駆動用クロック信号を得る洗濯機も存在する。この場合、基準クロック信号の入力は不要なので、上述したコストの増加などは回避できる。しかしながら、このような回路が生成したクロック信号を用いる場合、そのクロック信号に基づいて生成されるデータの精度は高くない。たとえば、マイクロコンピュータ60に内蔵された発振回路がクロック信号を生成する場合、マイクロコンピュータ60が計測した時間の精度は高くない。安価なセラミック発振子でもクロック信号における周波数の精度の初期値はセンター値±0.5%であるのに対し、マイクロコンピュータに内蔵された発振回路が生成するクロック信号における周波数の精度の初期値はセンター値±3%〜±10%であるためである。   There is also a washing machine that obtains a driving clock signal by an oscillation circuit built in the microcomputer 60 instead of the ceramic oscillator 62. In this case, since the input of the reference clock signal is unnecessary, the above-described increase in cost can be avoided. However, when a clock signal generated by such a circuit is used, the accuracy of data generated based on the clock signal is not high. For example, when the oscillation circuit built in the microcomputer 60 generates a clock signal, the accuracy of the time measured by the microcomputer 60 is not high. Even with an inexpensive ceramic oscillator, the initial value of the frequency accuracy in the clock signal is ± 0.5%, whereas the initial value of the frequency accuracy in the clock signal generated by the oscillation circuit built in the microcomputer is This is because the center value is ± 3% to ± 10%.

通常、水位センサ17が出力する信号の周波数(20〜27キロHz程度)をマイクロコンピュータ60が検出する場合、クロック信号を基にしてある時間を測定する一方、その時間内に水位センサ17が出力する信号のパルス数を計測することで、水位センサ17が出力する信号の周波数ひいては水位を検出している。ここで、クロック信号の周波数の精度が低いと、その精度に応じて水位の検出誤差が生ずる。マイクロコンピュータ60に内蔵された発信回路がクロック信号を生成する場合、水位の誤差が±60mm以上に達する場合がある。水位に限らず、測定された時間に基づくデータには、同様の誤差が含まれる。例えば、布量を測定するために測定される、モータ7がオフになった後の回転センサ25が出力する信号の間隔には、同様の誤差が含まれる。このことは、セラミック発振子62が生成したクロック信号を用いれば布量の誤差が±0.5%程度であるのに対し、マイクロコンピュータ60に内蔵された発信回路が生成したクロック信号を用いれば布量の誤差が±3%以上になることを意味する。洗濯の際の水位は布量に基づいて決定されるので、布量の誤差が増加することは、洗濯機の性能にも影響することとなる。   Usually, when the microcomputer 60 detects the frequency (about 20 to 27 kHz) of the signal output from the water level sensor 17, while measuring the time based on the clock signal, the water level sensor 17 outputs within that time. By measuring the number of pulses of the signal to be detected, the frequency of the signal output from the water level sensor 17 and thus the water level is detected. Here, if the accuracy of the frequency of the clock signal is low, a water level detection error occurs according to the accuracy. When the transmission circuit built in the microcomputer 60 generates a clock signal, the water level error may reach ± 60 mm or more. Not only the water level but also data based on the measured time includes the same error. For example, a similar error is included in the interval of signals output from the rotation sensor 25 after the motor 7 is turned off, which is measured to measure the amount of cloth. This is because when the clock signal generated by the ceramic oscillator 62 is used, the error in the cloth amount is about ± 0.5%, whereas when the clock signal generated by the transmission circuit built in the microcomputer 60 is used. It means that the error of the amount of cloth becomes ± 3% or more. Since the water level at the time of washing is determined based on the amount of cloth, an increase in the amount of cloth affects the performance of the washing machine.

洗濯機に限らず、エアコン、掃除機、冷蔵庫、電子レンジその他測定された時間に基づいた制御を実施する機器やそのような機器の生産にも、同様の問題が存在する。   Similar problems exist not only in washing machines but also in air conditioners, vacuum cleaners, refrigerators, microwave ovens, and other devices that perform control based on measured time and the production of such devices.

本発明は上述の問題点を解決するためになされたものであって、その目的は、生産設備に費やすコストの増加や生産効率の低下を防止できる信号出力装置および洗濯機を提供することにある。   The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a signal output device and a washing machine that can prevent an increase in cost spent on production facilities and a decrease in production efficiency. .

上記目的を達成するために、本発明のある局面にしたがうと、信号出力装置は、入出力手段と、生成手段と、制御手段とを含む。入出力手段は、信号を入力したり出力したりする。生成手段は、一定の周波数で第1の信号を生成する。制御手段は、入出力手段を制御する。入出力手段に入力される信号は、周波数が第1の物理量に対応する信号である第2の信号を含む。制御手段は、第1の算出手段と、決定手段と、第2の算出手段と、入出力手段を制御するための手段とを含む。第1の算出手段は、生成手段が生成した第1の信号の数に基づいて、入出力手段に第2の信号が入力された時から次に第2の信号が入力された時までの時間を、間隔時間として算出する。決定手段は、第2の物理量に基づいて、補正のための値である第1の値を決定する。第2の算出手段は、第1の値を用いて間隔時間を演算することにより、間隔時間の補正値を算出する。入出力手段を制御するための手段は、補正値に対応する情報を表わす信号を出力するように、入出力手段を制御する。   In order to achieve the above object, according to one aspect of the present invention, a signal output device includes input / output means, generation means, and control means. The input / output means inputs and outputs signals. The generating means generates the first signal at a constant frequency. The control means controls the input / output means. The signal input to the input / output means includes a second signal whose frequency corresponds to the first physical quantity. The control means includes first calculation means, determination means, second calculation means, and means for controlling the input / output means. Based on the number of first signals generated by the generating means, the first calculating means is a time from when the second signal is input to the input / output means to when the second signal is input next. Is calculated as the interval time. The determining means determines a first value that is a value for correction based on the second physical quantity. The second calculation means calculates the interval time correction value by calculating the interval time using the first value. The means for controlling the input / output means controls the input / output means so as to output a signal representing information corresponding to the correction value.

また、上述した入出力手段に入力される信号は、交流電力の電圧の範囲を表わす信号である第3の信号の他に、第2の信号を含むことが望ましい。併せて、第1の算出手段は、第1の計数手段と、時間算出手段とを含むことが望ましい。第1の計数手段は、入出力手段に第2の信号が入力された時から次に第2の信号が入力された時までに生成手段が生成した第1の信号の数を計数する。時間算出手段は、第1の計数手段が計数した第1の信号の数に基づいて、間隔時間を算出する。併せて、決定手段は、第2の計数手段と、第3の算出手段と、第1の記憶手段とを含むことが望ましい。第2の計数手段は、第3の信号をトリガとすることにより、基準期間に生成手段が生成する、第1の信号の数を計数する。基準期間は、交流電力の電圧の周期の2分の1の整数倍の期間である。第3の算出手段は、第2の計数手段が計数した第1の信号の数から定数を減算することにより、第1の値を算出する。第1の記憶手段は、第1の値を記憶する。併せて、第2の算出手段は、定数から第1の値を減算した値で定数を除算した値と間隔時間とを用いて、補正値を算出するための手段を含むことが望ましい。   The signal input to the input / output means described above preferably includes a second signal in addition to the third signal that is a signal representing the range of the AC power voltage. In addition, it is desirable that the first calculation means includes a first counting means and a time calculation means. The first counting unit counts the number of first signals generated by the generating unit from when the second signal is input to the input / output unit to when the second signal is input next. The time calculating means calculates the interval time based on the number of first signals counted by the first counting means. In addition, it is desirable that the determining means includes a second counting means, a third calculating means, and a first storage means. The second counting unit counts the number of first signals generated by the generating unit during the reference period by using the third signal as a trigger. The reference period is a period that is an integral multiple of one half of the period of the voltage of the AC power. The third calculating means calculates the first value by subtracting a constant from the number of the first signals counted by the second counting means. The first storage means stores the first value. In addition, it is desirable that the second calculation means includes means for calculating a correction value using a value obtained by subtracting the first value from the constant and dividing the constant by the interval time.

もしくは、上述した入出力手段に入力される信号は、周波数が50ヘルツまたは60ヘルツの交流電力の電圧の範囲を表わす第3の信号の他に、第2の信号を含むことが望ましい。   Alternatively, the signal input to the input / output means described above preferably includes the second signal in addition to the third signal representing the voltage range of the AC power having a frequency of 50 Hz or 60 Hz.

もしくは、上述した制御手段は、第2の計数手段が計数した数に応じて、複数の値のいずれかを定数として選択するための第1の選択手段をさらに含むことが望ましい。   Alternatively, the control unit described above preferably further includes a first selection unit for selecting one of a plurality of values as a constant according to the number counted by the second counting unit.

もしくは、上述した信号出力装置は、検知手段と、第2の記憶手段とをさらに含むことが望ましい。検知手段は、温度を検知する。第2の記憶手段は、複数の値を温度に対応付けて記憶する。併せて、制御手段は、第1の閾値から第2の閾値までの範囲の外に第1の値がある場合、第2の記憶手段が記憶した複数の値のうち検知手段が検知した温度に対応する値を選択するための第2の選択手段をさらに含むことが望ましい。併せて、第2の算出手段は、第1の閾値から第2の閾値までの範囲の外に第1の値がある場合、第1の値に代え、第2の選択手段が選択した値を用いて補正値を算出するための手段を含むことが望ましい。   Alternatively, it is desirable that the signal output device described above further includes a detection unit and a second storage unit. The detection means detects the temperature. The second storage means stores a plurality of values in association with the temperature. At the same time, when the first value is outside the range from the first threshold value to the second threshold value, the control means sets the temperature detected by the detection means among the plurality of values stored by the second storage means. It is desirable to further include a second selection means for selecting a corresponding value. At the same time, when the first value is outside the range from the first threshold value to the second threshold value, the second calculation means replaces the first value with the value selected by the second selection means. It is desirable to include a means for calculating a correction value using.

もしくは、上述した第2の信号は、周波数が圧力に対応することが望ましい。併せて、入出力手段に入力される信号は、圧力の目標値に対応する情報を表わす信号をさらに含むことが望ましい。併せて、制御手段は、第3の選択手段と、第4の選択手段とをさらに含むことが望ましい。第3の選択手段は、第1の閾値から第2の閾値までの範囲の中に第1の値がある場合に、それぞれ圧力に対応する複数の第2の値の中から、目標値に最も近い圧力に対応する値を、間隔時間の閾値である第3の閾値として選択する。第4の選択手段は、第1の閾値から第2の閾値までの範囲の外に第1の値がある場合に、複数の第2の値のうち2番目以下の圧力に対応する値の中から、目標値に最も近い圧力に対応する値を第3の閾値として選択する。併せて、入出力手段を制御するための手段は、第3の閾値に補正値が達すると、補正値に対応する情報を表わす信号を出力するように、入出力手段を制御するための手段を含むことが望ましい。   Alternatively, it is desirable that the frequency of the second signal described above corresponds to the pressure. In addition, the signal input to the input / output means preferably further includes a signal representing information corresponding to the target value of pressure. In addition, it is desirable that the control means further includes third selection means and fourth selection means. The third selection means, when there is a first value in the range from the first threshold value to the second threshold value, is the most preferable target value among the plurality of second values corresponding to the respective pressures. A value corresponding to the close pressure is selected as a third threshold value which is a threshold value of the interval time. The fourth selection unit is configured to select a value corresponding to the second or lower pressure among the plurality of second values when the first value is outside the range from the first threshold value to the second threshold value. Then, a value corresponding to the pressure closest to the target value is selected as the third threshold value. At the same time, the means for controlling the input / output means includes means for controlling the input / output means to output a signal representing information corresponding to the correction value when the correction value reaches the third threshold value. It is desirable to include.

もしくは、上述した信号出力装置は、第3の記憶手段をさらに含むことが望ましい。第3の記憶手段は、重量と第2の値との対応関係を表わすデータを記憶する。併せて、第2の信号は、周波数が重量に対応することが望ましい。併せて、制御手段は、第5の選択手段と、第6の選択手段とをさらに含むことが望ましい。第5の選択手段は、第1の閾値から第2の閾値までの範囲の中に第1の値がある場合に、第2の信号により表わされる重量に最も近い重量に対応する第2の値を、第3の閾値として選択する。第6の選択手段は、第1の閾値から第2の閾値までの範囲の外に第1の値がある場合に、複数の第2の値のうち2番目以下の重量に対応する値の中から、第2の信号により表わされる重量に最も近い重量に対応する値を、第3の閾値として選択する。併せて、入出力手段を制御するための手段は、第3の閾値に補正値が達すると、補正値に対応する情報を表わす信号を出力するように、入出力手段を制御するための手段を含むことが望ましい。   Alternatively, the signal output device described above preferably further includes third storage means. The third storage means stores data representing the correspondence relationship between the weight and the second value. In addition, it is desirable that the frequency of the second signal corresponds to the weight. In addition, it is desirable that the control means further includes a fifth selection means and a sixth selection means. The fifth selection means has a second value corresponding to the weight closest to the weight represented by the second signal when the first value is in the range from the first threshold value to the second threshold value. Is selected as the third threshold value. The sixth selection means, when the first value is outside the range from the first threshold value to the second threshold value, of the values corresponding to the second or less weight among the plurality of second values. Then, a value corresponding to the weight closest to the weight represented by the second signal is selected as the third threshold value. At the same time, the means for controlling the input / output means includes means for controlling the input / output means to output a signal representing information corresponding to the correction value when the correction value reaches the third threshold value. It is desirable to include.

また、上述した信号出力装置は、温度を検知するための検知手段をさらに含むことが望ましい。決定手段は、記憶するための手段と、第1の値として値を選択するための手段とを含むことが望ましい。記憶するための手段は、複数の値を温度に対応付けて記憶する。第1の値として値を選択するための手段は、複数の値のうち検知手段が検知した温度に対応する値を第1の値として選択する。   Moreover, it is preferable that the signal output device described above further includes a detection unit for detecting temperature. Preferably, the determining means includes means for storing and means for selecting a value as the first value. The means for storing stores a plurality of values in association with the temperature. The means for selecting a value as the first value selects, as the first value, a value corresponding to the temperature detected by the detecting means from among a plurality of values.

もしくは、上述した制御手段は、検知手段が検知した温度が要件を満たす場合に信号を出力するように、入出力手段を制御するための手段をさらに含むことが望ましい。   Alternatively, the control means described above preferably further includes means for controlling the input / output means so as to output a signal when the temperature detected by the detection means satisfies the requirements.

本発明の他の局面に従うと、洗濯機は、上述した信号出力装置を含む。   According to another aspect of the present invention, a washing machine includes the signal output device described above.

本発明に係る信号出力装置および洗濯機は、生産設備に費やすコストの増加や生産効率の低下を防止できる。   The signal output device and the washing machine according to the present invention can prevent an increase in cost spent on production facilities and a decrease in production efficiency.

以下、図面を参照しつつ、本発明の実施の形態について説明する。以下の説明では、同一の部品には同一の符号を付してある。それらの名称および機能も同一である。したがって、それらについての詳細な説明は繰返さない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following description, the same parts are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed description thereof will not be repeated.

<第1の実施の形態>
以下、本発明の第1の実施の形態にかかる洗濯機について説明する。
<First Embodiment>
The washing machine according to the first embodiment of the present invention will be described below.

図1は本実施の形態にかかる洗濯機30の側面断面図である。洗濯機30は筐体である外箱1に覆われ、外箱1の内部には水槽2が防振機構3によって吊り下げて支持されており、水槽2の内部に脱水槽4が設けられている。脱水槽4は内部に衣類を収容するための洗濯槽を兼ねている。水槽2の下部にはモータ7が設けられ、モータ7の筐体の内側にはモータ7の回転数を検知する回転センサ25が内蔵されている。回転センサ25は、モータ7が回転しているか否かを表わす信号を後述するマイクロコンピュータ42に出力する。モータ7の回転がモータプーリ9とVベルト10とを介してセンタプーリ11に伝えられる。このセンタプーリ11と連結する減速機構8の先端は水槽2内に突出し、そこに脱水槽4と攪拌翼5とが取り付けられている。この機構により、脱水槽4は水槽2内に回転できるように設けられることとなる。この機構により、モータ7は脱水槽4を回転させる装置として動作することとなる。脱水工程時には排水モータ27をオンすることでクラッチ機構12によって脱水槽4と攪拌翼5とが回転し、洗い工程時またはすすぎ工程時には排水モータ27をオフすることでクラッチ機構12および減速機構8によって攪拌翼5のみが回転するようになっている。これらの記載から明らかなように、クラッチ機構12は、脱水槽4とモータ7との間で回転を断続して伝達する機構として動作する。また、減速機構8は脱水槽4の回転を制動するブレーキ機構24を内蔵している。水槽2の下方端部には排水口202が設けられ、排水弁13と排水ホース14とが取り付けられている。減速機構8のケースは二重構造になっている。これらのケースのうち、内側のケースはモータ7が供給する動力により回転する。内側のケースの外周にはブレーキ機構24のブレーキバンドが巻き付けられている。ブレーキバンドが巻き付けられているので、内側のケースはブレーキドラムとして機能する。これらの構造が、ブレーキ機構24を、脱水槽4の回転を制動するためのブレーキとして動作させる。ブレーキ機構24のブレーキバンドはブレーキレバーに連結されている。このブレーキレバーは排水モータ27に連結されている。この排水モータ27には排水弁13が連結されている。これにより排水モータ27はブレーキ機構24と排水弁13とを同時に駆動する装置として機能するようになっている。排水モータ27をオンすることでブレーキ機構24は開放状態となり、オフすることでブレーキ機構24は作動状態となる。外箱1の上部は上面板19で覆われている。上面板19の後方には、水槽2と連結され、水槽2ひいては脱水槽4の水位を検知する水位センサ17が設けられている。水位センサ17は、後述するマイクロコンピュータ42に信号を出力する。この信号の周波数は、水位センサ17が受ける圧力に対応している。マイクロコンピュータ42は、その信号の周波数に基づいて水位センサ17が受ける圧力ひいては水槽2の水位を算出できる。上面板19の後方には、水槽2ひいては脱水槽4に水を供給するための管と、水槽2ひいては脱水槽4への水の流れ道を開閉する給水弁18とが設けられている。給水弁18は、その管の一端に設けられてもよい。しかしながら、本実施の形態の場合、給水弁18は、その管の途中に設けられている。上面板19の中央には蓋16が設けられている。上面板19の中央に設けられているので、蓋16は脱水槽4の口を塞ぐこととなる。上面板19の前方にはユーザインターフェイス部20が設けられている。ユーザインターフェイス部20の背面にはオペレート装置21と蓋ロック機構22とが取り付けられている。オペレート装置21は、給水弁18その他洗濯機30を構成する装置などを制御する。蓋ロック機構22は、蓋16をロックするための機構である。蓋ロック機構22は、蓋ロックソレノイドと、図示しない蓋スイッチとを内蔵している。蓋スイッチは、蓋16が開いているか閉じているかを表わす信号を後述するマイクロコンピュータ42に出力するセンサの一種である。蓋ロック機構22は蓋ロックソレノイドをオンする毎にロックとロック解除とが切り換わるラッチ構造となっている。   FIG. 1 is a side sectional view of a washing machine 30 according to the present embodiment. The washing machine 30 is covered with an outer box 1 that is a casing, and a water tank 2 is supported by being suspended by an anti-vibration mechanism 3 inside the outer box 1, and a dewatering tank 4 is provided inside the water tank 2. Yes. The dewatering tub 4 also serves as a washing tub for storing clothes inside. A motor 7 is provided in the lower part of the water tank 2, and a rotation sensor 25 that detects the number of rotations of the motor 7 is incorporated inside the housing of the motor 7. The rotation sensor 25 outputs a signal indicating whether or not the motor 7 is rotating to the microcomputer 42 described later. The rotation of the motor 7 is transmitted to the center pulley 11 through the motor pulley 9 and the V belt 10. The tip of the speed reduction mechanism 8 connected to the center pulley 11 protrudes into the water tank 2, and the dewatering tank 4 and the stirring blade 5 are attached thereto. With this mechanism, the dehydration tank 4 is provided so as to be able to rotate in the water tank 2. With this mechanism, the motor 7 operates as a device for rotating the dewatering tank 4. By turning on the drainage motor 27 during the dehydration process, the dewatering tank 4 and the stirring blade 5 are rotated by the clutch mechanism 12, and by turning off the drainage motor 27 during the washing process or the rinsing process, the clutch mechanism 12 and the speed reduction mechanism 8 Only the stirring blade 5 rotates. As is clear from these descriptions, the clutch mechanism 12 operates as a mechanism for intermittently transmitting the rotation between the dewatering tank 4 and the motor 7. The speed reduction mechanism 8 includes a brake mechanism 24 that brakes the rotation of the dewatering tank 4. A drain port 202 is provided at the lower end of the water tank 2, and a drain valve 13 and a drain hose 14 are attached. The case of the speed reduction mechanism 8 has a double structure. Of these cases, the inner case is rotated by the power supplied by the motor 7. A brake band of the brake mechanism 24 is wound around the outer periphery of the inner case. Since the brake band is wound, the inner case functions as a brake drum. These structures operate the brake mechanism 24 as a brake for braking the rotation of the dewatering tank 4. The brake band of the brake mechanism 24 is connected to the brake lever. This brake lever is connected to the drain motor 27. A drain valve 13 is connected to the drain motor 27. Thus, the drain motor 27 functions as a device that drives the brake mechanism 24 and the drain valve 13 simultaneously. When the drain motor 27 is turned on, the brake mechanism 24 is opened, and when the drain motor 27 is turned off, the brake mechanism 24 is activated. The upper part of the outer box 1 is covered with an upper surface plate 19. A water level sensor 17 that is connected to the water tank 2 and detects the water level of the water tank 2 and thus the dehydration tank 4 is provided behind the upper surface plate 19. The water level sensor 17 outputs a signal to the microcomputer 42 described later. The frequency of this signal corresponds to the pressure received by the water level sensor 17. The microcomputer 42 can calculate the pressure received by the water level sensor 17 and the water level of the water tank 2 based on the frequency of the signal. Behind the upper surface plate 19 are provided a pipe for supplying water to the water tank 2 and thus the dehydration tank 4, and a water supply valve 18 for opening and closing the water flow path to the water tank 2 and thus the dehydration tank 4. The water supply valve 18 may be provided at one end of the pipe. However, in the case of the present embodiment, the water supply valve 18 is provided in the middle of the pipe. A lid 16 is provided at the center of the top plate 19. Since it is provided at the center of the upper surface plate 19, the lid 16 closes the mouth of the dehydration tank 4. A user interface unit 20 is provided in front of the top plate 19. An operating device 21 and a lid locking mechanism 22 are attached to the back surface of the user interface unit 20. The operating device 21 controls the water supply valve 18 and other devices constituting the washing machine 30. The lid lock mechanism 22 is a mechanism for locking the lid 16. The lid lock mechanism 22 includes a lid lock solenoid and a lid switch (not shown). The lid switch is a type of sensor that outputs a signal indicating whether the lid 16 is open or closed to a microcomputer 42 described later. The lid lock mechanism 22 has a latch structure that switches between locking and unlocking each time the lid lock solenoid is turned on.

図2は、本実施の形態にかかる洗濯機30の構成を表わす図である。図2を参照して、洗濯機30は、図1を参照して説明した機構などに加え、ブザー15と、入力部23と、サーミスタ28とを含む。ブザー15は、後述するマイクロコンピュータ42の制御により、終了を報知したり異常を報知したりするために鳴動する。入力部23は、蓋スイッチが出力した信号の入力を受け付ける。サーミスタ28は、温度を検知する。サーミスタ28は、温度を表わす信号を後述するマイクロコンピュータ42に出力する。   FIG. 2 is a diagram illustrating the configuration of the washing machine 30 according to the present embodiment. Referring to FIG. 2, washing machine 30 includes a buzzer 15, an input unit 23, and a thermistor 28 in addition to the mechanism described with reference to FIG. 1. The buzzer 15 rings to notify the end or notify the abnormality under the control of the microcomputer 42 described later. The input unit 23 receives an input of a signal output from the lid switch. The thermistor 28 detects the temperature. The thermistor 28 outputs a signal representing the temperature to the microcomputer 42 described later.

図2を参照して、オペレート装置21は、第1駆動回路32と、第2駆動回路34と、形成回路36と、リセット回路38と、AC(Alternating Current)回路40と、マイクロコンピュータ42とを含む。第1駆動回路32は、マイクロコンピュータ42が出力した信号に従い、クラッチ機構12、給水弁18、および排水弁13を制御する。第2駆動回路34は、マイクロコンピュータ42が出力した信号に従い、モータ7を制御する。形成回路36は、商用交流電源6が供給する交流電源から回路用の直流電源を生成する。マイクロコンピュータ42は、形成回路36から駆動電源を得ている。リセット回路38は、電源が投入(後述する電源スイッチ204がオン)された時に、マイクロコンピュータ42に対してリセット信号を出力する。AC回路40は、信号を生成する。図3は、商用交流電源6が供給する電力の電圧とAC回路40が生成した信号の矩形波との関係を表わす図である。図3から明らかなように、AC回路40が生成した信号は、商用交流電源6が供給する交流電力の電圧の範囲を表わす。AC回路40は、生成した信号をマイクロコンピュータ42に出力する。なお、以下の説明において、AC回路40が生成した信号を「ACクロック信号」と称する。マイクロコンピュータ42は、洗濯機30の運転を制御するための信号を出力する、信号出力装置である。そのような信号を出力するため、マイクロコンピュータ42は、値や情報を記憶する記憶部、後述する間隔時間を算出する第1算出部、補正のための値を決定する決定部、間隔時間の補正値を算出する第2算出部、および信号の出力を制御する出力制御部として動作する。さらに、マイクロコンピュータ42は、ユーザインターフェイス部20からの各種のスイッチ信号の入力を受け付けると共に、ユーザインターフェイス部20を制御する装置でもある。さらに、マイクロコンピュータ42は、一定の周波数で後述するクロック信号を生成する生成部でもある。   2, the operating device 21 includes a first drive circuit 32, a second drive circuit 34, a forming circuit 36, a reset circuit 38, an AC (Alternating Current) circuit 40, and a microcomputer 42. Including. The first drive circuit 32 controls the clutch mechanism 12, the water supply valve 18, and the drain valve 13 in accordance with the signal output from the microcomputer 42. The second drive circuit 34 controls the motor 7 according to the signal output from the microcomputer 42. The forming circuit 36 generates a DC power source for the circuit from the AC power source supplied from the commercial AC power source 6. The microcomputer 42 obtains drive power from the forming circuit 36. The reset circuit 38 outputs a reset signal to the microcomputer 42 when power is turned on (a power switch 204 described later is turned on). The AC circuit 40 generates a signal. FIG. 3 is a diagram showing the relationship between the voltage of the power supplied from the commercial AC power supply 6 and the rectangular wave of the signal generated by the AC circuit 40. As apparent from FIG. 3, the signal generated by the AC circuit 40 represents the voltage range of the AC power supplied from the commercial AC power supply 6. The AC circuit 40 outputs the generated signal to the microcomputer 42. In the following description, a signal generated by the AC circuit 40 is referred to as an “AC clock signal”. The microcomputer 42 is a signal output device that outputs a signal for controlling the operation of the washing machine 30. In order to output such a signal, the microcomputer 42 includes a storage unit that stores values and information, a first calculation unit that calculates an interval time, which will be described later, a determination unit that determines a value for correction, and correction of the interval time. It operates as a second calculation unit that calculates a value and an output control unit that controls the output of a signal. Further, the microcomputer 42 is a device that receives various switch signals input from the user interface unit 20 and controls the user interface unit 20. Further, the microcomputer 42 is also a generation unit that generates a clock signal described later at a constant frequency.

図4は、マイクロコンピュータ42の制御ブロック図である。図4を参照して、マイクロコンピュータ42を実現するコンピュータハードウェアは、CPU(Central Processing Unit)500と、ROM(Read Only Memory)502と、RAM(Random Access Memory)504と、メモリ駆動装置506と、発振回路508と、I/O(Input/Output)510と、バス512とを含む。CPU500は、各処理手順が記述されたプログラムをROM502から得る。CPU500は、そのプログラムを実行する。また、CPU500は、ROM502、RAM504、メモリ駆動装置506、およびI/O510とデータのやりとりを行う。ROM502は、図4のコンピュータが情報処理を行うために必須の情報を格納する。その情報には、それぞれ水槽2の水位に対応し、かつ水位センサ17が出力する信号の周波数を表わす複数の値の情報と、それら複数の値と水槽2の内部の衣類の量との対応関係を表わすデータと、CPU500近傍の温度に対応付けられた、誤差の候補となる複数の値とが含まれる。本実施の形態の場合、この「対応関係を表わすデータ」は、それぞれが衣類の量を表わす複数のデータの集合体である。本実施の形態の場合、衣類の量を表わす複数のデータのアドレスと、前述した水位センサ17が出力する信号の周波数を表わす複数の値がそれぞれ記憶されたアドレスとの間隔が一定値となっているため、CPU500は、衣類の量を表わす複数のデータの集合体を、前述した「対応関係を表わすデータ」として利用できる。ROM502には、マイクロコンピュータ42が洗濯を制御するための制御プログラムもその必須の情報として記憶されている。RAM504は、プログラムを実行するために必要なデータを格納する装置である。メモリ駆動装置506は、PC(Personal Computer)カード600などの、装着や脱着が可能な記録媒体からプログラムを読取る。発振回路508は、一定の周波数でクロック信号を生成する。I/O510は、マイクロコンピュータ42の外部から、信号の入力を受け付ける。本実施の形態の場合、入力される信号の一種には、上述したACクロック信号がある。I/O510が受け付けるACクロック信号は、周波数が50ヘルツの交流電力の電圧の範囲を表わす信号であっても周波数が60ヘルツの交流電力の電圧の範囲を表わす信号であってもよい。ROM502に記憶されたデータなどの相違によって、あるときは前者の信号を受け付け、別のときは後者の信号を受け付けることになっていてもよい。I/O510は、マイクロコンピュータ42の外部へ信号を出力する装置でもある。バス512は、コンピュータを構成する装置を相互に接続する。   FIG. 4 is a control block diagram of the microcomputer 42. Referring to FIG. 4, computer hardware for realizing microcomputer 42 includes a CPU (Central Processing Unit) 500, a ROM (Read Only Memory) 502, a RAM (Random Access Memory) 504, and a memory driving device 506. , An oscillation circuit 508, an input / output (I / O) 510, and a bus 512. The CPU 500 obtains a program describing each processing procedure from the ROM 502. CPU 500 executes the program. In addition, the CPU 500 exchanges data with the ROM 502, the RAM 504, the memory driving device 506, and the I / O 510. The ROM 502 stores information essential for the computer of FIG. 4 to perform information processing. The information includes information on a plurality of values corresponding to the water level of the water tank 2 and representing the frequency of the signal output from the water level sensor 17, and the correspondence relationship between the plurality of values and the amount of clothing in the water tank 2. And a plurality of values as error candidates associated with the temperature in the vicinity of the CPU 500. In the case of the present embodiment, this “data representing the correspondence” is a collection of a plurality of data each representing the amount of clothing. In the case of the present embodiment, the interval between a plurality of data addresses representing the amount of clothing and the addresses at which a plurality of values representing the frequency of the signal output from the water level sensor 17 are stored is a constant value. Therefore, the CPU 500 can use an aggregate of a plurality of data representing the amount of clothing as the “data representing the correspondence” described above. In the ROM 502, a control program for the microcomputer 42 to control washing is also stored as essential information. The RAM 504 is a device that stores data necessary for executing a program. The memory driving device 506 reads a program from a recording medium that can be attached and detached, such as a PC (Personal Computer) card 600. The oscillation circuit 508 generates a clock signal at a constant frequency. The I / O 510 receives a signal input from the outside of the microcomputer 42. In the present embodiment, one type of input signal is the above-described AC clock signal. The AC clock signal received by the I / O 510 may be a signal representing a range of AC power voltage having a frequency of 50 Hertz or a signal representing a voltage range of AC power having a frequency of 60 Hertz. Depending on the difference in data stored in the ROM 502, the former signal may be accepted in some cases and the latter signal may be accepted in other cases. The I / O 510 is also a device that outputs a signal to the outside of the microcomputer 42. The bus 512 connects devices constituting the computer to each other.

図5は、ユーザインターフェイス部20の詳細を示す図である。ユーザインターフェイス部20は、複数の操作スイッチと、各種のLED(Light Emitting Diode)とを含む。ユーザインターフェイス部20に含まれるスイッチには、電源スイッチ204と、スタートスイッチ206と、コーススイッチ208と、マニュアルスイッチ210とが含まれる。電源スイッチ204は、洗濯機30の電源をオンにしたりオフにしたりするスイッチである。スタートスイッチ206は、運転の開始や停止をユーザが指示するためのスイッチである。コーススイッチ208は、洗濯コースをユーザが選択するためのスイッチである。マニュアルスイッチ210は、洗濯の条件を工程別に設定するためのスイッチである。ユーザインターフェイス部20のLEDは、選択された洗濯コースや、運転状態や、運転時間などを表示する。   FIG. 5 is a diagram showing details of the user interface unit 20. The user interface unit 20 includes a plurality of operation switches and various types of LEDs (Light Emitting Diodes). The switches included in the user interface unit 20 include a power switch 204, a start switch 206, a course switch 208, and a manual switch 210. The power switch 204 is a switch for turning on or off the power of the washing machine 30. The start switch 206 is a switch for the user to instruct start or stop of operation. The course switch 208 is a switch for the user to select a laundry course. The manual switch 210 is a switch for setting washing conditions for each process. The LED of the user interface unit 20 displays the selected washing course, driving state, driving time, and the like.

図6を参照して、マイクロコンピュータ42で実施されるプログラムは、給水に関し、以下の制御を実行する。   Referring to FIG. 6, the program executed by microcomputer 42 executes the following control regarding water supply.

ステップS100にて、発振回路508は、一定の周波数でクロック信号を生成する。CPU500は、AC回路40がACクロック信号を1つ生成した後、次にAC回路40がACクロック信号を1つ生成するまでの時間に、発振回路508が出力したクロック信号の数を数える。クロック信号の数を数えるため、CPU500は、次に述べる第1の手順と第2の手順とを繰返す。第1の手順は、商用交流電源6の電圧が「0」ボルトか否かをCPU500が定期的に判断する手順である。この判断のため、I/O510は、AC回路40から、商用交流電源6の電圧の範囲を表わす信号である、ACクロック信号の入力を受け付ける。第2の手順は、1度目にその電圧が「0」ボルトになった時から3度目にその電圧が「0」ボルトになった時までの間、発振回路508がクロック信号を出力するたびにCPU500がカウンタの値を「1」増加させる手順である。本来、4度目でも5度目でもそれ以上でもよいのであるが、本実施の形態の場合、商用交流電源6の電圧が3度目に「0」ボルトになった時までの間、発振回路508がクロック信号を出力するたびにCPU500はカウンタの値を「1」増加させる。本実施の形態の場合、「カウンタ」とはCPU500に内蔵された記憶装置の一種である。これにより、CPU500は、ACクロック信号をトリガとすることにより、交流電力の電圧の周期の2分の1に整数を乗算した期間に発振回路508が生成する、クロック信号の数を計数することとなる。なお、以下の説明においてこの期間を「基準期間」と称する。クロック信号の数が数えられると、CPU500は、自らが計数したクロック信号の数から基準カウント数「10000」を減算した値を誤差として算出する。誤差が算出されると、RAM504は、誤差を記憶する。本実施の形態において、「基準カウント数」は、発振回路508が基準期間に出力するクロック信号の数を表わす。本実施の形態において、基準期間は20ミリ秒であることとする。本実施の形態において、基準カウント数の値は「10000」であることとする。これにより、基準カウント数「10000」は、クロック信号の周波数と基準期間との積に対応する定数となる。   In step S100, the oscillation circuit 508 generates a clock signal at a constant frequency. The CPU 500 counts the number of clock signals output from the oscillation circuit 508 during the time after the AC circuit 40 generates one AC clock signal until the AC circuit 40 generates one AC clock signal. In order to count the number of clock signals, the CPU 500 repeats a first procedure and a second procedure described below. The first procedure is a procedure in which the CPU 500 periodically determines whether or not the voltage of the commercial AC power supply 6 is “0” volts. For this determination, the I / O 510 receives an input of an AC clock signal that is a signal representing the voltage range of the commercial AC power supply 6 from the AC circuit 40. The second procedure is performed each time the oscillation circuit 508 outputs a clock signal between the time when the voltage becomes “0” volts for the first time and the time when the voltage becomes “0” volts for the third time. This is a procedure in which the CPU 500 increases the value of the counter by “1”. Originally, it may be the fourth time, the fifth time, or more, but in this embodiment, the oscillation circuit 508 keeps the clock until the voltage of the commercial AC power supply 6 becomes “0” volts for the third time. Each time a signal is output, the CPU 500 increments the counter value by “1”. In this embodiment, the “counter” is a kind of storage device built in the CPU 500. Thus, the CPU 500 uses the AC clock signal as a trigger to count the number of clock signals generated by the oscillation circuit 508 during a period obtained by multiplying a half of the AC power voltage cycle by an integer. Become. In the following description, this period is referred to as a “reference period”. When the number of clock signals is counted, the CPU 500 calculates a value obtained by subtracting the reference count number “10000” from the number of clock signals counted by itself as an error. When the error is calculated, the RAM 504 stores the error. In the present embodiment, the “reference count number” represents the number of clock signals output from the oscillation circuit 508 during the reference period. In the present embodiment, the reference period is 20 milliseconds. In the present embodiment, the value of the reference count number is “10000”. Thus, the reference count “10000” is a constant corresponding to the product of the frequency of the clock signal and the reference period.

ステップS102にて、CPU500は、ステップS100にて自らが算出した誤差が所定の範囲に含まれているか否かを判断する。ステップS102において、「所定の範囲」とは、「−300」から「300」までを意味することとする。所定の範囲に含まれていると判断した場合には(ステップS102にてYES)、処理はステップS104へと移される。もしそうでないと(ステップS102にてNO)、処理はステップS118へと移される。   In step S102, CPU 500 determines whether or not the error calculated by itself in step S100 is included in a predetermined range. In step S102, the “predetermined range” means “−300” to “300”. If it is determined that it falls within the predetermined range (YES in step S102), the process proceeds to step S104. If not (NO in step S102), the process proceeds to step S118.

ステップS104にて、回転センサ25は、信号をマイクロコンピュータ42に出力する。I/O510は、回転センサ25が出力した信号の入力を受け付ける。この信号が出力される間隔は、脱水槽4の内部の衣類の量に対応する。以下の説明において、回転センサ25からの信号が到達した後、回転センサ25から次に信号が到達するまでの時間を、「間隔時間」と称する。CPU500は、間隔時間に発振回路508が生成するクロック信号の数をカウントする。クロック信号の数が計数されると、CPU500は、自らが計数したクロック信号の数に基づいて、前述した間隔時間を算出する。   In step S <b> 104, rotation sensor 25 outputs a signal to microcomputer 42. The I / O 510 receives an input of a signal output from the rotation sensor 25. The interval at which this signal is output corresponds to the amount of clothing inside the dewatering tank 4. In the following description, the time from when the signal from the rotation sensor 25 arrives until the next signal arrives from the rotation sensor 25 is referred to as “interval time”. The CPU 500 counts the number of clock signals generated by the oscillation circuit 508 at the interval time. When the number of clock signals is counted, the CPU 500 calculates the above-described interval time based on the number of clock signals counted by itself.

図7を参照して、間隔時間について説明する。図7は、2種類のパルス信号の対応関係を表わす。図7のうち、上の実線は回転センサ25の出力を時系列に従って示す。下の実線は、発振回路508の出力を時系列に従って示す。上述した間隔時間は、図7において矢印で図示した時間である。   The interval time will be described with reference to FIG. FIG. 7 shows the correspondence between two types of pulse signals. In FIG. 7, the upper solid line indicates the output of the rotation sensor 25 in time series. The lower solid line shows the output of the oscillation circuit 508 in time series. The interval time described above is the time indicated by the arrows in FIG.

ステップS106にて、CPU500は、ステップS104にて算出した間隔時間を補正する。この補正は、ステップS100にて算出された誤差に基づいて実施される。CPU500は、次に述べる第1の手順から第3の手順までの手順を経て、間隔時間の補正値を算出する。第1の手順は、基準カウント数「10000」から誤差を減算する手順である。第2の手順は、第1の手順において算出した値で基準カウント数「10000」を除算する手順である。第3の手順は、第2の手順において算出した値で、ステップS104にてCPU500が算出した間隔時間を除算する手順である。補正が実施されると、CPU500は、補正後の間隔時間に基づき衣類の量すなわち衣類の重量を決定する。水槽2の内部の衣類の量は、間隔時間に対応するので、所定の係数を乗じたりデータベースを参照したりすることで、CPU500は、補正後の間隔時間に基づき衣類の量を決定できる。これにより、回転センサ25とCPU500とは、水槽2の内部の衣類の量を検知する装置を構成することとなる。   In step S106, CPU 500 corrects the interval time calculated in step S104. This correction is performed based on the error calculated in step S100. The CPU 500 calculates a correction value for the interval time through a procedure from a first procedure to a third procedure described below. The first procedure is a procedure for subtracting the error from the reference count number “10000”. The second procedure is a procedure for dividing the reference count “10000” by the value calculated in the first procedure. The third procedure is a procedure for dividing the interval time calculated by the CPU 500 in step S104 by the value calculated in the second procedure. When the correction is performed, the CPU 500 determines the amount of clothing, that is, the weight of the clothing based on the corrected interval time. Since the amount of clothing in the aquarium 2 corresponds to the interval time, the CPU 500 can determine the amount of clothing based on the corrected interval time by multiplying a predetermined coefficient or referring to the database. Thereby, the rotation sensor 25 and CPU500 comprise the apparatus which detects the quantity of the clothing inside the water tank 2. FIG.

衣類の量が決定されると、CPU500は、ROM502に記憶された複数の値の中から、閾値を選択する。選択される閾値は、後述するステップS110にてCPU500が計数する周波数の閾値である。本実施の形態の場合、その補正が不要か否かは、発振回路508が生成した信号の数が基準カウント数「10000」に等しいか否かによって判断できる。精度が低いので、前述した基準期間に発振回路508が生成する信号の数は原則として基準カウント数に等しくない。これにより、このステップにおいて選択される閾値は閾値として適当ではない。しかしながら、回転センサ25が出力した信号の周波数が補正されることにより、このステップにおいて選択される閾値は閾値として適当な値となる。なお、前述した複数の値は、それぞれ水槽2の水位に対応している。また、閾値は、次に述べる要件を満たすか否かに応じて選択される。その要件とは、CPU500がステップS100にて計数した数から基準カウント数「10000」を減算した値が「−300」から「300」までの範囲の中にあるか否かという要件である。この要件が満たされている場合、前述した複数の値すべての中から閾値は選択される。この要件が満たされていない場合、前述した複数の値のうち2番目以下の水位に対応する値のいずれかが閾値として選択される。   When the amount of clothing is determined, CPU 500 selects a threshold value from a plurality of values stored in ROM 502. The selected threshold value is a threshold value of the frequency counted by the CPU 500 in step S110 described later. In the case of the present embodiment, whether or not the correction is necessary can be determined by whether or not the number of signals generated by the oscillation circuit 508 is equal to the reference count number “10000”. Since the accuracy is low, the number of signals generated by the oscillation circuit 508 in the reference period is not equal to the reference count in principle. Thereby, the threshold value selected in this step is not appropriate as the threshold value. However, when the frequency of the signal output from the rotation sensor 25 is corrected, the threshold value selected in this step becomes an appropriate value as the threshold value. The plurality of values described above correspond to the water level of the water tank 2, respectively. The threshold is selected according to whether or not the following requirements are satisfied. The requirement is a requirement as to whether or not a value obtained by subtracting the reference count number “10000” from the number counted in step S100 by the CPU 500 is in a range from “−300” to “300”. If this requirement is met, the threshold is selected from all of the multiple values described above. When this requirement is not satisfied, one of the values corresponding to the second and lower water levels among the plurality of values described above is selected as the threshold value.

洗濯の開始の際、ユーザインターフェイス部20に水位の目標値が入力されていないために、I/O510にその目標値を表わす信号が入力されていない場合、CPU500は、水槽2の内部の衣類の量に対応するように、閾値を選択する。ただし、「−300」から「300」までの範囲の中にあるか否かという要件が満たされていない場合、選択される閾値は、水槽2の内部の衣類の量に最も近い値である。   When the start of washing, since the target value of the water level is not input to the user interface unit 20 and the signal indicating the target value is not input to the I / O 510, the CPU 500 displays the clothing in the water tank 2. A threshold is selected to correspond to the quantity. However, when the requirement whether or not it is within the range of “−300” to “300” is not satisfied, the selected threshold value is the value closest to the amount of clothing inside the aquarium 2.

洗濯の開始の際、ユーザインターフェイス部20に水位の目標値が入力されている場合、選択される閾値はユーザインターフェイス部20に入力された目標値に対応する値である。ただし、「−300」から「300」までの範囲の中にあるか否かという要件が満たされていない場合、選択される閾値は、ユーザインターフェイス部20に入力された目標値に最も近い水位に対応する値である。   When the target value of the water level is input to the user interface unit 20 at the start of washing, the selected threshold value is a value corresponding to the target value input to the user interface unit 20. However, when the requirement of whether or not it is within the range of “−300” to “300” is not satisfied, the selected threshold value is the water level closest to the target value input to the user interface unit 20. Corresponding value.

ステップS108にて、CPU500は、給水弁18を開くための信号を第1駆動回路32に出力する。第1駆動回路32は、給水弁18を開く。これにより、水槽2の内部には水が満たされる。   In step S <b> 108, CPU 500 outputs a signal for opening water supply valve 18 to first drive circuit 32. The first drive circuit 32 opens the water supply valve 18. Thereby, the inside of the water tank 2 is filled with water.

ステップS110にて、水位センサ17は、信号をマイクロコンピュータ42に出力する。I/O510は、水位センサ17が出力した信号の入力を受け付ける。上述したように、水位センサ17が出力した信号の周波数は、水位センサ17が受ける水圧ひいては水位に対応している。以下の説明において、水位センサ17が出力した信号を「水位信号」と称する。CPU500は、水位センサ17が100ミリ秒の間に出力する信号の数を計数する。100ミリ秒という時間が経過したことは、発振回路508がいくつのクロック信号を生成したかということに基づいてCPU500によって検知される。信号の数が計数されると、CPU500は、水位信号の周波数を算出する。CPU500が、このステップにて計数した水位信号の数を「0.1」秒で除算することで、1秒間のパルス数が求められる。すなわち周波数である。たとえば、このステップにおいて信号を計数する期間が200ミリ秒であれば、水位信号の周波数を算出するため、CPU500は、このステップにて計数した信号の数を「0.2」で除算することとなる。100ミリ秒という時間が経過したことがクロック信号の数に基づいて検知され、かつこのステップにて計数した水位信号の数を所定の時間で除算することにより水位信号の周波数が算出されるので、CPU500は、クロック信号の数と水位信号の数とに基づいて、水位信号の周波数を算出することとなる。   In step S <b> 110, the water level sensor 17 outputs a signal to the microcomputer 42. The I / O 510 receives an input of a signal output from the water level sensor 17. As described above, the frequency of the signal output from the water level sensor 17 corresponds to the water pressure and the water level received by the water level sensor 17. In the following description, a signal output from the water level sensor 17 is referred to as a “water level signal”. The CPU 500 counts the number of signals that the water level sensor 17 outputs during 100 milliseconds. The elapse of 100 milliseconds is detected by the CPU 500 based on how many clock signals the oscillation circuit 508 has generated. When the number of signals is counted, the CPU 500 calculates the frequency of the water level signal. The CPU 500 divides the number of water level signals counted in this step by “0.1” seconds to obtain the number of pulses per second. That is, the frequency. For example, if the signal counting period in this step is 200 milliseconds, the CPU 500 divides the number of signals counted in this step by “0.2” in order to calculate the frequency of the water level signal. Become. Since the time of 100 milliseconds has elapsed, it is detected based on the number of clock signals, and the frequency of the water level signal is calculated by dividing the number of water level signals counted in this step by a predetermined time. The CPU 500 calculates the frequency of the water level signal based on the number of clock signals and the number of water level signals.

ステップS112にて、CPU500は、ステップS110にて測定した周波数を、ステップS100にて算出された誤差に基づき補正する。この補正のため、CPU500は、次に述べる第1の手順から第3の手順までの手順を経て、周波数の補正値を算出する。第1の手順は、基準カウント数「10000」から誤差を減算する手順である。第2の手順は、第1の手順において算出した値で基準カウント数「10000」を除算する手順である。第3の手順は、第2の手順において算出した値で、ステップS110にてCPU500が算出した周波数を除算する手順である。周波数が補正されると、CPU500は、補正後の周波数に基づいて水槽2の水位を算出する。   In step S112, CPU 500 corrects the frequency measured in step S110 based on the error calculated in step S100. For this correction, the CPU 500 calculates a frequency correction value through a procedure from a first procedure to a third procedure described below. The first procedure is a procedure for subtracting the error from the reference count number “10000”. The second procedure is a procedure for dividing the reference count “10000” by the value calculated in the first procedure. The third procedure is a procedure for dividing the frequency calculated by the CPU 500 in step S110 by the value calculated in the second procedure. When the frequency is corrected, the CPU 500 calculates the water level of the aquarium 2 based on the corrected frequency.

ステップS114にて、CPU500は、自らが算出した水槽2の水位がユーザによって設定された水位または次に述べる水位か否かを判断する。その水位とは、CPU500が衣類の量に基づいて設定した水位である。CPU500は、回転センサ25からの信号に基づいて、衣類の量を算出する。CPU500は、ユーザによって水位が設定されていない場合、水槽2の水位が衣類の量に基づいて設定された水位か否かを判断する。ユーザによって設定された水位または衣類の量に基づいて設定された水位と判断した場合には(ステップS114にてYES)、処理はステップS116へと移される。もしそうでないと(ステップS114にてNO)、処理はステップS110へと移される。   In step S114, CPU 500 determines whether the water level of water tank 2 calculated by itself is a water level set by the user or a water level described below. The water level is a water level set by the CPU 500 based on the amount of clothing. CPU 500 calculates the amount of clothing based on the signal from rotation sensor 25. When the water level is not set by the user, the CPU 500 determines whether or not the water level in the water tank 2 is set based on the amount of clothing. If it is determined that the water level is set based on the water level set by the user or the amount of clothes (YES in step S114), the process proceeds to step S116. If not (NO in step S114), the process proceeds to step S110.

ステップS116にて、CPU500は、洗濯のための次の工程に進む。そのために、CPU500は、まず給水弁18を閉じるための信号を出力する。前述したように、水槽2の内部における衣類の量は、ステップS106にて補正された間隔時間に対応する。その信号が出力されると、第1駆動回路32は、給水弁18を閉じる。給水弁18が閉じると、給水は停止する。   In step S116, CPU 500 proceeds to the next process for washing. For this purpose, the CPU 500 first outputs a signal for closing the water supply valve 18. As described above, the amount of clothing in the water tank 2 corresponds to the interval time corrected in step S106. When the signal is output, the first drive circuit 32 closes the water supply valve 18. When the water supply valve 18 is closed, the water supply is stopped.

ステップS118にて、CPU500は、自らが算出した誤差がステップS102における「所定の範囲」に含まれていない場合の処理を実施する。CPU500が算出した誤差がステップS102における「所定の範囲」に含まれていないことは、何らかの異常が発生した可能性があることを表す。何らかの異常の例には、商用交流電源6が供給する電力の周波数が50Hzまたは60Hzからずれていることや、発振回路508が故障していることなどが含まれる。このような異常が発生したと考えられるので、ステップS100にてCPU500が算出した誤差は、データの補正に用いる値として適切な値ではない。適切な値ではないので、CPU500は、ROM502に予め記憶された値とサーミスタ28が検知したCPU500近傍の温度とに基づいて、適切な誤差を算出する。ただし、サーミスタ28が検知したCPU500近傍の温度が予め設定された温度の範囲の外である場合、CPU500は、サーミスタ28が検知したCPU500近傍の温度を無視し、ROM502に予め記憶された値のみに基づいて、適切な誤差を算出する。「設定された温度の範囲」の例には、263Kから353Kまでの範囲が含まれる。   In step S118, CPU 500 performs processing in a case where the error calculated by itself is not included in the “predetermined range” in step S102. The fact that the error calculated by CPU 500 is not included in the “predetermined range” in step S102 indicates that some abnormality may have occurred. Examples of some abnormality include that the frequency of power supplied from the commercial AC power supply 6 is deviated from 50 Hz or 60 Hz, or that the oscillation circuit 508 is broken. Since it is considered that such an abnormality has occurred, the error calculated by the CPU 500 in step S100 is not an appropriate value as a value used for data correction. Since it is not an appropriate value, the CPU 500 calculates an appropriate error based on the value stored in advance in the ROM 502 and the temperature near the CPU 500 detected by the thermistor 28. However, if the temperature in the vicinity of the CPU 500 detected by the thermistor 28 is outside the preset temperature range, the CPU 500 ignores the temperature in the vicinity of the CPU 500 detected by the thermistor 28, and uses only the value stored in the ROM 502 in advance. Based on this, an appropriate error is calculated. Examples of the “set temperature range” include a range from 263K to 353K.

以上のような構造およびフローチャートに基づく、洗濯機30の動作について説明する。本実施の形態の場合、商用交流電源6が供給する電力の周波数は50Hzであることとする。   The operation of the washing machine 30 based on the above structure and flowchart will be described. In the case of the present embodiment, the frequency of the power supplied from the commercial AC power supply 6 is 50 Hz.

[誤差に異常がない場合]
運転をスタートした直後に、CPU500は、AC回路40がACクロック信号を1つ生成した後、次にAC回路40がACクロック信号を1つ生成するまでの時間に、発振回路508が出力したクロック信号の数を数える。なお、商用交流電源6が供給する電力の周波数が50Hzの場合、AC回路40がACクロック信号を1つ生成するための時間は、0.02秒である。この0.02秒すなわち20ミリ秒が基準期間である。発振回路508が出力するクロック信号の周波数が4MHzの場合、そのクロック信号を分周することにより、2マイクロ秒という時間が得られる。これと先に述べた基準期間とにより基準カウント数の値は「10000」となる。クロック信号の数が数えられると、CPU500は、その数と基準カウント数「10000」との差を誤差として算出する(ステップS100)。
[If there is no error in the error]
Immediately after the operation is started, the CPU 500 outputs the clock output from the oscillation circuit 508 during the time until the AC circuit 40 generates one AC clock signal after the AC circuit 40 generates one AC clock signal. Count the number of signals. When the frequency of the power supplied from the commercial AC power supply 6 is 50 Hz, the time for the AC circuit 40 to generate one AC clock signal is 0.02 seconds. The reference period is 0.02 seconds, that is, 20 milliseconds. When the frequency of the clock signal output from the oscillation circuit 508 is 4 MHz, a time of 2 microseconds can be obtained by dividing the clock signal. With this and the above-described reference period, the value of the reference count is “10000”. When the number of clock signals is counted, CPU 500 calculates a difference between the number and the reference count number “10000” as an error (step S100).

誤差が算出されると、CPU500は、その誤差が「−300」から「300」までの範囲に含まれているか否かを判断する(ステップS102)。発振回路508から出力されるクロック信号の周波数がセンター値に等しければ、ステップS100の処理によって数えられた数は、次の式の通り「10000」となる。この場合、CPU500が数えたクロック信号の数の上限値は、約10300となる。その下限値は、約9700となる。これらの値は、クロック信号の誤差の許容値がセンター値から±3%以内であることを表わす。なお、この場合のセンター値は4MHz±0.0%である。   When the error is calculated, the CPU 500 determines whether or not the error is included in a range from “−300” to “300” (step S102). If the frequency of the clock signal output from the oscillation circuit 508 is equal to the center value, the number counted by the processing in step S100 is “10000” as shown in the following equation. In this case, the upper limit value of the number of clock signals counted by the CPU 500 is about 10300. The lower limit is about 9700. These values indicate that the allowable value of the error of the clock signal is within ± 3% from the center value. In this case, the center value is 4 MHz ± 0.0%.

0.02秒/2マイクロ秒=0.02秒/0.000002秒=10000
この場合、誤差が「−300」から「300」までの範囲に含まれているとすると(ステップS102にてYES)、CPU500は、間隔時間を算出する(ステップS104)。間隔時間が算出されると、CPU500は、ステップS100にて算出した誤差を用いて演算することにより、ステップS104にて算出した間隔時間を補正する。補正が実施されると、CPU500は、補正後の間隔時間に基づき衣類の量を決定する(ステップS106)。
0.02 seconds / 2 microseconds = 0.02 seconds / 0.000002 seconds = 10000
In this case, if the error is included in the range from “−300” to “300” (YES in step S102), CPU 500 calculates the interval time (step S104). When the interval time is calculated, CPU 500 corrects the interval time calculated in step S104 by performing an operation using the error calculated in step S100. When the correction is performed, the CPU 500 determines the amount of clothing based on the corrected interval time (step S106).

衣類の量すなわち重量を決定するための手順は、次の通りである。まず、運転を開始してから、水槽2に水を入れる前に、第2駆動回路34は、モータ7を左右に反転させる。モータ7が左右に反転すると、CPU500は、前述した間隔時間を算出する。その間隔が算出されると、CPU500は、その間隔に係数を乗じることで、衣類の量を算出する。衣類が多ければ、間隔時間は小さくなる。衣類が少なければ、間隔時間は大きくなる。   The procedure for determining the amount or weight of clothing is as follows. First, the second drive circuit 34 reverses the motor 7 left and right after starting operation and before putting water into the water tank 2. When the motor 7 is reversed left and right, the CPU 500 calculates the above-described interval time. When the interval is calculated, the CPU 500 calculates the amount of clothing by multiplying the interval by a coefficient. The more clothing, the smaller the interval time. The less the clothing, the greater the interval time.

衣類の量が決定されると、第1駆動回路32は、給水弁18を開く。これにより、水槽2の内部には水が満たされる(ステップS108)。給水弁18が開くと、水位センサ17は、信号をマイクロコンピュータ42に出力する。CPU500は、水位センサ17が100ミリ秒の間に出力する信号の周波数を算出する(ステップS110)。   When the amount of clothing is determined, the first drive circuit 32 opens the water supply valve 18. Thereby, the inside of the water tank 2 is filled with water (step S108). When the water supply valve 18 is opened, the water level sensor 17 outputs a signal to the microcomputer 42. CPU500 calculates the frequency of the signal which water level sensor 17 outputs within 100 milliseconds (Step S110).

本実施の形態の場合、CPU500は、予め設定された時間にCPU500に入力される信号の数をカウントし、その数を「0.1」秒で除算することで水位センサ17が100ミリ秒の間に出力する信号の周波数を算出している。その「予め設定された時間」は、クロック信号の生成の間隔を基にして設定される時間である。本実施の形態の場合、「予め設定された時間」の具体的な値は、100ミリ秒であることとする。これにより、CPU500に入力される信号の数が「2500」ならば、水位センサ17が100ミリ秒の間に出力する信号の周波数は25キロHzとなる。   In the case of the present embodiment, the CPU 500 counts the number of signals input to the CPU 500 at a preset time, and divides the number by “0.1” seconds so that the water level sensor 17 is 100 milliseconds. The frequency of the signal output in between is calculated. The “preset time” is a time set based on the generation interval of the clock signal. In the present embodiment, a specific value of “preset time” is 100 milliseconds. Thus, if the number of signals input to the CPU 500 is “2500”, the frequency of the signal output by the water level sensor 17 during 100 milliseconds is 25 kHz.

水位センサ17が100ミリ秒の間に出力する信号の周波数が算出されると、CPU500は、その数を、ステップS100にて算出された誤差に基づき補正する。その数に誤差が含まれている場合、水槽2の水位が正しく検出されないためである。例えば、クロック信号の誤差がセンター値に対して−3%ずれている場合、水位センサ17が100ミリ秒の間に出力する信号の周波数は約2575Hzとなる。ステップS100にて算出された誤差は「約−300」となる。これにより、CPU500は、補正後の周波数を、次式の演算により算出できる。   When the frequency of the signal output by the water level sensor 17 for 100 milliseconds is calculated, the CPU 500 corrects the number based on the error calculated in step S100. This is because when the number includes an error, the water level of the water tank 2 is not correctly detected. For example, when the error of the clock signal is shifted by −3% with respect to the center value, the frequency of the signal output by the water level sensor 17 during 100 milliseconds is about 2575 Hz. The error calculated in step S100 is “about −300”. Thereby, the CPU 500 can calculate the corrected frequency by the following equation.

補正後の周波数=補正前の周波数/(1−誤差/10000)
なお、この式における「誤差」とは、ステップS100にて算出されたクロック信号の誤差を意味する。クロック信号の誤差がセンター値に対して−3%ずれている場合、補正後の周波数は、2500Hzとなる。
Frequency after correction = frequency before correction / (1−error / 10000)
The “error” in this equation means the error of the clock signal calculated in step S100. When the error of the clock signal is shifted by -3% with respect to the center value, the corrected frequency is 2500 Hz.

周波数が補正されると、CPU500は、補正後の周波数に基づいて水槽2の水位を算出する(ステップS112)。水槽2の水位は、水位センサ17が出力する水位信号の周波数に比例する。これにより、実験その他の方法により予め特定しておいた係数を補正後の周波数に乗じるという方法で、CPU500は、水槽2の水位を算出できる。   When the frequency is corrected, the CPU 500 calculates the water level of the water tank 2 based on the corrected frequency (step S112). The water level of the water tank 2 is proportional to the frequency of the water level signal output from the water level sensor 17. Thereby, CPU500 can calculate the water level of the water tank 2 by the method of multiplying the frequency after correction | amendment by the coefficient specified beforehand by experiment and other methods.

水槽2の水位が算出されると、CPU500は、自らが算出した水槽2の水位がユーザによって設定された水位または衣類の量に基づいて設定された水位か否かを判断する(ステップS114)。給水が開始された直後の水位はそのような水位ではないので(ステップS114にてNO)、ステップS110からステップS114までの処理が繰返される。その後、水槽2の水位がユーザによって設定された水位または衣類の量に基づいて設定された水位に達すると(ステップS114にてYES)、CPU500は、洗濯のための次の工程に進む(ステップS116)。   When the water level of the water tank 2 is calculated, the CPU 500 determines whether or not the water level of the water tank 2 calculated by the CPU 500 is the water level set by the user or the amount of clothes (step S114). Since the water level immediately after the water supply is started is not such a water level (NO in step S114), the processing from step S110 to step S114 is repeated. Thereafter, when the water level in water tank 2 reaches the water level set by the user or the water level set based on the amount of clothing (YES in step S114), CPU 500 proceeds to the next process for washing (step S116). ).

[誤差に異常がある場合]
ステップS100の処理を経て誤差が算出されると、CPU500は、その誤差が「−300」から「300」までの範囲に含まれているか否かを判断する(ステップS102)。この場合、誤差が「−300」から「300」までの範囲に含まれていないとすると(ステップS102にてNO)、CPU500は、ROM502に予め記憶された値の中から、サーミスタ28が検知したCPU500近傍の温度に対応する値を誤差の値として選択する。ただし、サーミスタ28が検知したCPU500近傍の温度が予め設定された温度の範囲の外である場合、CPU500は、サーミスタ28が検知したCPU500近傍の温度を無視し、ROM502に予め記憶された値のみに基づいて、適切な誤差を算出する(ステップS118)。この場合、ユーザインターフェイス部20に対する入力のうち、最高の水位を設定するための入力をCPU500は受け付けない。水槽2から水がオーバーフローしてしまうことを防止するためである。
[If there is an error in the error]
When the error is calculated through the process of step S100, the CPU 500 determines whether or not the error is included in the range from “−300” to “300” (step S102). In this case, if the error is not included in the range from “−300” to “300” (NO in step S102), CPU 500 detects thermistor 28 from values stored in advance in ROM 502. A value corresponding to the temperature near the CPU 500 is selected as an error value. However, if the temperature in the vicinity of the CPU 500 detected by the thermistor 28 is outside the preset temperature range, the CPU 500 ignores the temperature in the vicinity of the CPU 500 detected by the thermistor 28, and uses only the value stored in the ROM 502 in advance. Based on this, an appropriate error is calculated (step S118). In this case, the CPU 500 does not accept an input for setting the highest water level among the inputs to the user interface unit 20. This is to prevent water from overflowing from the water tank 2.

誤差が算出されると、ステップS104の処理を経て、CPU500は、補正後の間隔時間に基づき衣類の量を決定する(ステップS106)。この場合、衣類の量は、最高の水位から数えて2番目以下の所定の水位に対応する量に決定される。水槽2から水がオーバーフローしてしまうことを防止するためである。   When the error is calculated, through the process of step S104, the CPU 500 determines the amount of clothing based on the corrected interval time (step S106). In this case, the amount of clothing is determined to be the amount corresponding to the second or lower predetermined water level counted from the highest water level. This is to prevent water from overflowing from the water tank 2.

以上のようにして、本実施の形態にかかる洗濯機は、動作のためのクロック信号を容易に補正できる。クロックが容易に補正されるので、外部から基準クロックを入力する必要がない。これにより、生産設備の設置を抑制できる。基準クロックを入力することによる、生産効率の低下も防止される。クロックの発振器を内蔵したコンピュータを利用できるので、生産コストも低下する。その結果、生産設備に費やすコストの増加や生産効率の低下を防止でき、かつ生産コストを抑制できる洗濯機を提供できる。   As described above, the washing machine according to the present embodiment can easily correct the clock signal for operation. Since the clock is easily corrected, there is no need to input a reference clock from the outside. Thereby, installation of production equipment can be controlled. A reduction in production efficiency due to inputting the reference clock is also prevented. Since a computer with a built-in clock oscillator can be used, the production cost is also reduced. As a result, it is possible to provide a washing machine that can prevent an increase in cost spent on production facilities and a decrease in production efficiency and can suppress production costs.

また、本実施の形態にかかる洗濯機は、交流電力の電圧の範囲に基づいて、動作のためのクロック信号を容易に補正できる。交流電力の電圧は、基準とする時間を検知するためには便利な物理量である。基準とする時間を検知するためには便利な物理量なので、クロック信号の生成のために必要な回路はそれほど多くない。その結果、生産コストを効果的に抑制できる洗濯機を提供できる。   Further, the washing machine according to the present embodiment can easily correct the clock signal for operation based on the voltage range of the AC power. The voltage of the AC power is a convenient physical quantity for detecting the reference time. Since the physical quantity is convenient for detecting the reference time, there are not so many circuits required for generating the clock signal. As a result, a washing machine that can effectively suppress production costs can be provided.

また、本実施の形態にかかる洗濯機は、算出された誤差が適切でない場合には、予め記憶された値や検出された温度に基づいて制御を実施する。検知された温度も適切でない場合には、サーミスタが検知した温度を無視し、予め記憶された値に基づいて制御を実施する。これにより、適切な誤差が算出できない場合であっても洗濯を実施することができる。   In addition, the washing machine according to the present embodiment performs control based on a value stored in advance or a detected temperature when the calculated error is not appropriate. If the detected temperature is not appropriate, the temperature detected by the thermistor is ignored and control is performed based on a value stored in advance. Thereby, it is possible to carry out washing even when an appropriate error cannot be calculated.

また、本実施の形態にかかる洗濯機は、算出された誤差が適切でない場合には、水槽の水位を制限する。これにより、水槽から水がオーバーフローしてしまうことを防止できる。   Moreover, the washing machine concerning this Embodiment restrict | limits the water level of a water tank, when the calculated error is not appropriate. Thereby, it can prevent that water overflows from a water tank.

なお、本実施の形態の第1の変形例において、CPU500は、運転をスタートした直後ばかりではなく、クロック信号を利用するたびにその誤差を補正してもよい。近年、乾燥機能が付き、運転時間が長くなったことにより、マイクロコンピュータ周囲の温度が運転中に変わる場合もあるためである。   In the first modification of the present embodiment, the CPU 500 may correct the error every time the clock signal is used, not only immediately after starting the operation. This is because in recent years, the temperature around the microcomputer may change during operation due to the drying function and the longer operation time.

また、本実施の形態の第2の変形例において、CPU500は、ステップS118の処理として、ブザー15を鳴らしたりユーザインターフェイス部20のLEDを点灯させたりしてもよい。この場合、I/O510は、ブザー15やLEDを介して情報を出力するよう動作する。これにより、洗濯機は、算出された誤差が適切でない場合には、そのことをユーザに報知できる。   In the second modification of the present embodiment, the CPU 500 may sound the buzzer 15 or turn on the LED of the user interface unit 20 as the process of step S118. In this case, the I / O 510 operates to output information via the buzzer 15 or the LED. Thereby, when the calculated error is not appropriate, the washing machine can notify the user of that fact.

また、本実施の形態の第3の変形例において、マイクロコンピュータ42は、洗濯機以外の装置に搭載されたマイクロコンピュータであってもよい。「洗濯機以外の装置」の例には、エアコンや、掃除機や、冷蔵庫や、電子レンジが含まれる。   In the third modification of the present embodiment, the microcomputer 42 may be a microcomputer mounted on an apparatus other than the washing machine. Examples of “an apparatus other than a washing machine” include an air conditioner, a vacuum cleaner, a refrigerator, and a microwave oven.

また、本実施の形態の第4の変形例において、CPU500は、ステップS100の処理として、AC回路40がACクロック信号を2分の1サイクル分変換する時間に、発振回路508が出力したクロックの数を数えてもよい。この場合、CPU500は、交流電力の電圧の周期の2分の1の期間に発振回路508が生成する信号の数を計数することとなる。   Further, in the fourth modification of the present embodiment, the CPU 500 performs the processing of step S100 by using the clock output from the oscillation circuit 508 during the time when the AC circuit 40 converts the AC clock signal by a half cycle. You may count. In this case, the CPU 500 counts the number of signals generated by the oscillation circuit 508 in a period of one half of the AC power voltage cycle.

<第2の実施の形態>
以下、本発明の第2の実施の形態にかかる洗濯機について説明する。
<Second Embodiment>
Hereinafter, a washing machine according to a second embodiment of the present invention will be described.

本実施の形態にかかる洗濯機30のハードウェア構成は、前述した第1の実施の形態と同じである。それらについての機能も同じである。したがって、それらについての詳細な説明はここでは繰返さない。   The hardware configuration of the washing machine 30 according to the present embodiment is the same as that of the first embodiment described above. The function about them is the same. Therefore, detailed description thereof will not be repeated here.

図8を参照して、マイクロコンピュータ42で実施されるプログラムは、給水に関し、以下の制御を実行する。   Referring to FIG. 8, the program executed by microcomputer 42 executes the following control regarding water supply.

ステップS130にて、CPU500は、AC回路40がACクロック信号を1つ生成した後、次にAC回路40がACクロック信号を1つ生成するまでの時間に、発振回路508が生成したクロック信号の数を数える。その数が数えられると、CPU500は、その数を表わすデータをRAM504に記憶させる。   In step S130, the CPU 500 generates the clock signal generated by the oscillation circuit 508 during the time until the AC circuit 40 generates one AC clock signal after the AC circuit 40 generates one AC clock signal. Count the number. When the number is counted, CPU 500 causes RAM 504 to store data representing the number.

ステップS132にて、CPU500は、ステップS130にて自らが数えたクロック信号の数が閾値以上か否かを判断する。本実施の形態のステップS132において、閾値の値は「8900」である。この値は、商用交流電源6が供給する交流電源の周波数が50Hzの場合、基準カウント数が「10000」になり、商用交流電源6が供給する交流電源の周波数が60Hzの場合、基準カウント数が「8333」になることに基づく。ステップS130にて自らが数えたクロック信号の数が閾値以上と判断した場合には(ステップS132にてYES)、処理はステップS134へと移される。もしそうでないと(ステップS132にてNO)、処理はステップS136へと移される。   In step S132, CPU 500 determines whether or not the number of clock signals counted by itself in step S130 is equal to or greater than a threshold value. In step S132 of the present embodiment, the threshold value is “8900”. This value is “10000” when the frequency of the AC power supply supplied by the commercial AC power supply 6 is 50 Hz, and when the frequency of the AC power supply supplied by the commercial AC power supply 6 is 60 Hz, the reference count number is Based on becoming “8333”. If it is determined in step S130 that the number of clock signals counted by itself is equal to or greater than the threshold (YES in step S132), the process proceeds to step S134. If not (NO in step S132), the process proceeds to step S136.

ステップS134にて、CPU500は、自らが内蔵するレジスタのうちフラグの値を格納する領域に「0」という値を記憶させる。このことは、商用交流電源6が供給する交流電源の周波数が50Hzであることを表わす。ステップS136にて、CPU500は、自らが内蔵するレジスタのうちフラグの値を格納する領域に「1」という値を記憶させる。このことは、商用交流電源6が供給する交流電源の周波数が60Hzであることを表わす。ステップS130からステップS134までの処理またはステップS130からステップS136までの処理により、CPU500は、基準期間にCPU500が計数する信号の数に応じて、複数の値のいずれかを選択することとなる。   In step S134, CPU 500 stores a value of “0” in an area in which the flag value is stored in the register incorporated therein. This indicates that the frequency of the AC power supply supplied by the commercial AC power supply 6 is 50 Hz. In step S136, CPU 500 stores a value of “1” in an area for storing a flag value in a register included in the CPU 500 itself. This represents that the frequency of the AC power supply supplied by the commercial AC power supply 6 is 60 Hz. By the processing from step S130 to step S134 or the processing from step S130 to step S136, the CPU 500 selects one of a plurality of values according to the number of signals counted by the CPU 500 in the reference period.

ステップS138にて、CPU500は、RAM504のうち基準カウント数を表わす領域に値を記憶させる。記憶される値は、ステップS134またはステップS136の処理によって記憶されたフラグの値に対応する。フラグの値が「0」の場合、基準カウント数を表わす領域に記憶される値は「10000」である。フラグの値が「1」の場合、基準カウント数を表わす領域に記憶される値は「8333」である。   In step S138, CPU 500 stores a value in an area representing the reference count number in RAM 504. The stored value corresponds to the flag value stored by the process of step S134 or step S136. When the value of the flag is “0”, the value stored in the area representing the reference count number is “10000”. When the value of the flag is “1”, the value stored in the area representing the reference count number is “8333”.

ステップS139にて、CPU500などは、洗濯機30を運転するための処理を実施する。この処理は、第1の実施の形態におけるステップS100からステップS116までの処理に相当する。   In step S139, the CPU 500 and the like perform a process for driving the washing machine 30. This process corresponds to the process from step S100 to step S116 in the first embodiment.

以上のような構造およびフローチャートに基づく、洗濯機30の動作について説明する。   The operation of the washing machine 30 based on the above structure and flowchart will be described.

CPU500は、AC回路40がACクロック信号を1つ生成した後、次にAC回路40がACクロック信号を1つ生成するまでの時間に、発振回路508が生成したクロック信号の数を数える。その数が数えられると、CPU500は、その数を表わすデータをRAM504に記憶させる(ステップS130)。データが記憶されると、CPU500は、ステップS130にて自らが数えたクロック信号の数が「8900」以上か否かを判断する(ステップS132)。この場合、クロック信号の数が「8900」以上とすると(ステップS132にてYES)、CPU500は、自らが内蔵するレジスタのうちフラグの値を格納する領域に「0」という値を記憶させる(ステップS134)。「0」という値が記憶されると、CPU500は、RAM504のうち基準カウント数を表わす領域に「10000」という値を記憶させる(ステップS138)。   The CPU 500 counts the number of clock signals generated by the oscillation circuit 508 after the AC circuit 40 generates one AC clock signal until the next AC circuit 40 generates one AC clock signal. When the number is counted, CPU 500 stores data representing the number in RAM 504 (step S130). When the data is stored, CPU 500 determines whether or not the number of clock signals counted by itself in step S130 is “8900” or more (step S132). In this case, if the number of clock signals is greater than or equal to “8900” (YES in step S132), CPU 500 stores a value “0” in an area for storing a flag value in a register incorporated therein (step S132) S134). When the value “0” is stored, CPU 500 stores the value “10000” in the area representing the reference count number in RAM 504 (step S138).

基準カウント数を表わす領域に「10000」という値が記憶されると、CPU500は、AC回路40がACクロック信号を1つ生成した後、次にAC回路40がACクロック信号を1つ生成するまでの時間に発振回路508が出力したクロック信号の数を数える。クロック信号の数が数えられると、CPU500は、その数と基準カウント数との差を誤差として算出する(ステップS100)。これにより、CPU500は、CPU500自身が計数したクロック信号の数からCPU500自身が選択した基準カウント数の値を減算することにより、誤差の値を算出することとなる。   When the value “10000” is stored in the area representing the reference count number, CPU 500 generates one AC clock signal after AC circuit 40 generates one AC clock signal, and then AC circuit 40 generates one AC clock signal. The number of clock signals output from the oscillation circuit 508 during the period of time is counted. When the number of clock signals is counted, CPU 500 calculates the difference between the number and the reference count as an error (step S100). As a result, the CPU 500 calculates an error value by subtracting the value of the reference count number selected by the CPU 500 itself from the number of clock signals counted by the CPU 500 itself.

誤差が算出されると、CPU500は、センター値から±3%の範囲にその誤差が含まれているか否かを判断する(ステップS102)。発振回路508から出力されるクロック信号がセンター値に等しければ、ステップS100の処理によって数えられた数は、ステップS138にて記憶された基準カウント数に等しくなる。   When the error is calculated, the CPU 500 determines whether or not the error is included in a range of ± 3% from the center value (step S102). If the clock signal output from the oscillation circuit 508 is equal to the center value, the number counted by the process in step S100 becomes equal to the reference count number stored in step S138.

この場合、センター値から±3%の範囲にその誤差が含まれているとすると(ステップS102にてYES)、CPU500は、間隔時間を算出する(ステップS104)。間隔時間が算出されると、CPU500は、ステップS100にて算出した誤差を用いて演算することにより、ステップS104にて算出した間隔時間を補正する。補正が実施されると、CPU500は、補正後の間隔時間に基づき衣類の量を決定する(ステップS106)。衣類の量を決定するための手順は、第1の実施の形態と同様である。   In this case, if the error is included in a range of ± 3% from the center value (YES in step S102), CPU 500 calculates an interval time (step S104). When the interval time is calculated, CPU 500 corrects the interval time calculated in step S104 by performing an operation using the error calculated in step S100. When the correction is performed, the CPU 500 determines the amount of clothing based on the corrected interval time (step S106). The procedure for determining the amount of clothing is the same as in the first embodiment.

衣類の量が決定されると、CPU500は、第1駆動回路32は、給水弁18を開く。これにより、水槽2の内部には水が満たされる(ステップS108)。給水弁18が開くと、水位センサ17は、信号をマイクロコンピュータ42に出力する。CPU500は、水位センサ17が100ミリ秒の間に出力する水位信号の周波数を算出する(ステップS110)。   When the amount of clothing is determined, the CPU 500 causes the first drive circuit 32 to open the water supply valve 18. Thereby, the inside of the water tank 2 is filled with water (step S108). When the water supply valve 18 is opened, the water level sensor 17 outputs a signal to the microcomputer 42. The CPU 500 calculates the frequency of the water level signal output by the water level sensor 17 during 100 milliseconds (step S110).

水位センサ17が100ミリ秒の間に出力する水位信号の周波数が算出されると、CPU500は、その周波数を、ステップS100にて算出された誤差に基づき補正する。周波数が補正されると、CPU500は、補正後の周波数に基づいて水槽2の水位を算出する(ステップS112)。   When the frequency of the water level signal output by the water level sensor 17 for 100 milliseconds is calculated, the CPU 500 corrects the frequency based on the error calculated in step S100. When the frequency is corrected, the CPU 500 calculates the water level of the water tank 2 based on the corrected frequency (step S112).

CPU500は、ステップS110にて算出した周波数を、ステップS100にて算出された誤差に基づき補正する。この補正のため、CPU500は、次に述べる第1の手順から第3の手順までの手順を経て、周波数の補正値を算出する。第1の手順は、ステップS138にて記憶された基準カウント数から誤差を減算する手順である。第2の手順は、第1の手順において算出した値でステップS138にて記憶された基準カウント数を除算する手順である。第3の手順は、第2の手順において算出した値で、ステップS110にてCPU500が算出した周波数を除算する手順である。周波数が補正されると、CPU500は、補正後の周波数に基づいて水槽2の水位を算出する。   CPU 500 corrects the frequency calculated in step S110 based on the error calculated in step S100. For this correction, the CPU 500 calculates a frequency correction value through a procedure from a first procedure to a third procedure described below. The first procedure is a procedure for subtracting the error from the reference count number stored in step S138. The second procedure is a procedure of dividing the reference count number stored in step S138 by the value calculated in the first procedure. The third procedure is a procedure for dividing the frequency calculated by the CPU 500 in step S110 by the value calculated in the second procedure. When the frequency is corrected, the CPU 500 calculates the water level of the aquarium 2 based on the corrected frequency.

水槽2の水位が算出されると、CPU500は、自らが算出した水槽2の水位が設定された水位か否かを判断する(ステップS114)。給水が開始された直後の水位はそのような水位ではないので(ステップS114にてNO)、ステップS110からステップS114までの処理が繰返される。その後、水槽2の水位がが設設定された水位に達すると(ステップS114にてYES)、CPU500は、洗濯のための次の工程に進む(ステップS116)。   When the water level of the water tank 2 is calculated, the CPU 500 determines whether or not the water level of the water tank 2 calculated by itself is a set water level (step S114). Since the water level immediately after the water supply is started is not such a water level (NO in step S114), the processing from step S110 to step S114 is repeated. Thereafter, when the water level of water tank 2 reaches the set water level (YES in step S114), CPU 500 proceeds to the next process for washing (step S116).

以上のようにして、本実施の形態にかかる洗濯機は、商用交流電源が供給する交流電源の周波数にあわせて水位や衣類の量を補正できる。これにより、交流電源の周波数にあわせた補正が実施されない場合に比べて、補正されたクロックの精度が向上する。また、クロックが容易に補正されるので、外部から基準クロックを入力する必要がない。基準クロックを入力する必要がないので、生産設備の設置を抑制できる。基準クロックを入力することによる、生産効率の低下も防止される。発振回路を内蔵したコンピュータを利用できるので、生産コストも低下する。その結果、ある程度クロックの精度を高めることができ、生産設備に費やすコストの増加や生産効率の低下を防止でき、かつ生産コストを抑制できる洗濯機を提供できる。   As described above, the washing machine according to the present embodiment can correct the water level and the amount of clothes according to the frequency of the AC power supplied by the commercial AC power. As a result, the accuracy of the corrected clock is improved as compared with the case where the correction according to the frequency of the AC power supply is not performed. Further, since the clock is easily corrected, there is no need to input a reference clock from the outside. Since it is not necessary to input a reference clock, installation of production equipment can be suppressed. A reduction in production efficiency due to inputting the reference clock is also prevented. Since a computer incorporating an oscillation circuit can be used, the production cost is also reduced. As a result, it is possible to provide a washing machine that can increase the accuracy of the clock to some extent, prevent an increase in cost spent on the production facility and decrease in production efficiency, and can suppress the production cost.

なお、本実施の形態の第1の変形例において、CPU500は、運転をスタートした直後ばかりではなく、繰返して周波数の判定や基準カウント数の設定を実施してもよい。それらを実施する周期は、一定の周期であっても、不定期であってもよい。   In the first modification of the present embodiment, the CPU 500 may repeatedly determine the frequency and set the reference count number not only immediately after starting the operation. The period for implementing them may be a constant period or irregular.

また、本実施の形態の第2の変形例において、マイクロコンピュータ42は、洗濯機以外の装置に搭載されたマイクロコンピュータであってもよい。「洗濯機以外の装置」の例には、エアコンや、掃除機や、冷蔵庫や、電子レンジが含まれる。   In the second modification of the present embodiment, the microcomputer 42 may be a microcomputer mounted on an apparatus other than the washing machine. Examples of “an apparatus other than a washing machine” include an air conditioner, a vacuum cleaner, a refrigerator, and a microwave oven.

<第3の実施の形態>
以下、本発明の第3の実施の形態にかかる洗濯機について説明する。
<Third Embodiment>
Hereinafter, a washing machine according to a third embodiment of the present invention will be described.

本実施の形態にかかる洗濯機30のROM502は、第1の実施の形態の説明において説明したデータなどに加え、マイコン駆動用クロックの補正値を表わすデータベースを記憶する。図9は、このデータベースを表わす概念図である。図9を参照して、このデータベースを構成するデータは、サーミスタ28が検知する温度に対応付けられている。本実施の形態の場合、このデータベースは、基準温度である298Kの場合の補正値を「1.00」とし、かつ5Kおきの補正値を含む。なお、その他のハードウェア構成は、前述した第1の実施の形態と同じである。それらについての機能も同じである。したがって、それらについての詳細な説明はここでは繰返さない。   The ROM 502 of the washing machine 30 according to the present embodiment stores a database representing the correction value of the microcomputer driving clock in addition to the data described in the description of the first embodiment. FIG. 9 is a conceptual diagram showing this database. Referring to FIG. 9, the data constituting this database is associated with the temperature detected by the thermistor 28. In the case of the present embodiment, this database sets the correction value for the reference temperature of 298K to “1.00” and includes correction values every 5K. Other hardware configurations are the same as those of the first embodiment described above. The function about them is the same. Therefore, detailed description thereof will not be repeated here.

図10を参照して、マイクロコンピュータ42で実施されるプログラムは、給水に関し、以下の制御を実行する。なお、図10に示すフローチャートの中で、前述の図6に示した処理は同じステップ番号を付してある。それらの処理も同じである。したがって、それらについての詳細な説明はここでは繰返さない。   Referring to FIG. 10, the program executed by microcomputer 42 executes the following control regarding water supply. In the flowchart shown in FIG. 10, the same step numbers are assigned to the processes shown in FIG. These processes are the same. Therefore, detailed description thereof will not be repeated here.

ステップS140にて、サーミスタ28は、温度を検知する。サーミスタ28は、その温度を表す信号をマイクロコンピュータ42に出力する。   In step S140, the thermistor 28 detects the temperature. The thermistor 28 outputs a signal representing the temperature to the microcomputer 42.

ステップS142にて、CPU500は、ステップS140にてサーミスタ28が検知した温度が所定の範囲に含まれているか否かを判断する。ステップS142において、「所定の範囲」とは、「263K」から「353K」までを意味することとする。所定の範囲に含まれていると判断した場合には(ステップS142にてYES)、処理はステップS104へと移される。もしそうでないと(ステップS142にてNO)、処理はステップS158へと移される。   In step S142, CPU 500 determines whether or not the temperature detected by thermistor 28 in step S140 is within a predetermined range. In step S142, “predetermined range” means “263K” to “353K”. If it is determined that it is included in the predetermined range (YES in step S142), the process proceeds to step S104. If not (NO in step S142), the process proceeds to step S158.

ステップS146にて、CPU500は、ROM502が記憶したデータベースのうち、ステップS140にてサーミスタ28が検知した温度に対応するデータをRAM504に複写する。これにより、CPU500は、ROM502がデータベースとして記憶した複数の値のうちサーミスタ28が検知した温度に対応する値を係数として選択することとなる。データが複写されると、CPU500は、ステップS104にて自らが算出した間隔時間を、RAM504に複写されたデータが表わす値すなわち係数で除算する。これにより、CPU500は、ステップS104にて算出した間隔時間の補正値を算出することとなる。間隔時間が補正されると、CPU500は、補正後の間隔時間に基づき衣類の量を決定する。   In step S146, CPU 500 copies data corresponding to the temperature detected by the thermistor 28 in step S140, of the database stored in ROM 502, to RAM 504. As a result, the CPU 500 selects, as a coefficient, a value corresponding to the temperature detected by the thermistor 28 from among a plurality of values stored in the ROM 502 as a database. When the data is copied, CPU 500 divides the interval time calculated by itself in step S104 by the value represented by the data copied in RAM 504, that is, the coefficient. As a result, the CPU 500 calculates a correction value for the interval time calculated in step S104. When the interval time is corrected, the CPU 500 determines the amount of clothing based on the corrected interval time.

ステップS148にて、CPU500は、給水弁18を開くための信号を第1駆動回路32に出力する。第1駆動回路32は、給水弁18を開く。これにより、水槽2の内部には水が満たされる。   In step S <b> 148, CPU 500 outputs a signal for opening water supply valve 18 to first drive circuit 32. The first drive circuit 32 opens the water supply valve 18. Thereby, the inside of the water tank 2 is filled with water.

ステップS152にて、CPU500は、ステップS110にて算出した周波数に、ステップS146にて複写されたデータが表わす値を乗算する。値が乗算されると、CPU500は、補正後の周波数に基づいて水槽2の水位を算出する。   In step S152, CPU 500 multiplies the frequency calculated in step S110 by the value represented by the data copied in step S146. When the value is multiplied, the CPU 500 calculates the water level of the aquarium 2 based on the corrected frequency.

ステップS158にて、CPU500は、ステップS140にてサーミスタ28が検知した温度がステップS142における「所定の範囲」に含まれていない場合の処理を実施する。本実施の形態の場合、その処理は、ブザー15を鳴らしたり、ユーザインターフェイス部20のLEDに異常が発生したことを表示させたりする処理である。この場合、マイクロコンピュータ42のI/O510は、ブザー15やユーザインターフェイス部20のLEDを介して情報を出力するよう動作する。   In step S158, CPU 500 performs processing in a case where the temperature detected by thermistor 28 in step S140 is not included in the “predetermined range” in step S142. In the case of the present embodiment, the process is a process of sounding the buzzer 15 or displaying that an abnormality has occurred in the LED of the user interface unit 20. In this case, the I / O 510 of the microcomputer 42 operates to output information via the buzzer 15 or the LED of the user interface unit 20.

以上のような構造およびフローチャートに基づく、洗濯機30の動作について説明する。   The operation of the washing machine 30 based on the above structure and flowchart will be described.

サーミスタ28は、温度を検知する。この場合、検知された温度は313Kであったとする。サーミスタ28は、その温度を表す信号をマイクロコンピュータ42に出力する(ステップS140)。信号が出力されると、CPU500は、ステップS140にてサーミスタ28が検知した温度が所定の範囲に含まれているか否かを判断する(ステップS142)。この場合、所定の範囲に含まれていると判断したとすると(ステップS142にてYES)、ステップS104の処理を経て、CPU500は、ステップS104にて算出した間隔時間を補正する(ステップS146)。ROM502が記憶したデータベースのうち313Kに対応付けられたデータは、基準温度に対応付けられた周波数に対し、2%周波数が高くなることを表わす。このデータに基づいて、CPU500は、ステップS104にて算出した間隔時間を「1.02」で除算する。除算の結果として得られた値が、補正後の間隔時間を表わす。間隔時間が補正されると、CPU500は、補正後の間隔時間に基づき衣類の量を決定する。   The thermistor 28 detects the temperature. In this case, it is assumed that the detected temperature is 313K. The thermistor 28 outputs a signal representing the temperature to the microcomputer 42 (step S140). When the signal is output, CPU 500 determines whether or not the temperature detected by thermistor 28 in step S140 is within a predetermined range (step S142). In this case, if it is determined that it is included in the predetermined range (YES in step S142), through the process of step S104, CPU 500 corrects the interval time calculated in step S104 (step S146). The data associated with 313K in the database stored in the ROM 502 indicates that the frequency is 2% higher than the frequency associated with the reference temperature. Based on this data, the CPU 500 divides the interval time calculated in step S104 by “1.02”. The value obtained as a result of the division represents the corrected interval time. When the interval time is corrected, the CPU 500 determines the amount of clothing based on the corrected interval time.

衣類の量が決定されると、CPU500は、給水弁18を開くための信号を第1駆動回路32に出力する。第1駆動回路32は、給水弁18を開く(ステップS148)。これにより、水槽2の内部には水が満たされる。給水弁18が開かれると、CPU500は、補正後の周波数に基づいて水槽2の水位を算出する(ステップS152)。   When the amount of clothing is determined, the CPU 500 outputs a signal for opening the water supply valve 18 to the first drive circuit 32. The first drive circuit 32 opens the water supply valve 18 (step S148). Thereby, the inside of the water tank 2 is filled with water. When the water supply valve 18 is opened, the CPU 500 calculates the water level of the water tank 2 based on the corrected frequency (step S152).

以上のようにして、本実施の形態にかかる洗濯機は、温度に応じて周波数の値を補正する。値が補正されるので、外部から基準クロックを入力する必要がない。基準クロックを入力する必要がないので、生産設備の設置を抑制できる。基準クロックを入力することによる、生産効率の低下も防止される。クロックの発振器を内蔵したコンピュータを利用できるので、生産コストも低下する。あわせて、使用中の温度の変化に対応するように周波数を補正できる。その結果、温度の影響により生じる誤差の発生を防止でき、生産設備に費やすコストの増加や生産効率の低下を防止でき、かつ生産コストを抑制できる洗濯機を提供できる。   As described above, the washing machine according to the present embodiment corrects the frequency value according to the temperature. Since the value is corrected, there is no need to input a reference clock from the outside. Since it is not necessary to input a reference clock, installation of production equipment can be suppressed. A reduction in production efficiency due to inputting the reference clock is also prevented. Since a computer with a built-in clock oscillator can be used, the production cost is also reduced. In addition, the frequency can be corrected to correspond to the temperature change during use. As a result, it is possible to provide a washing machine that can prevent the occurrence of errors caused by the influence of temperature, can prevent an increase in cost spent on production facilities and decrease in production efficiency, and can suppress production costs.

また、本実施の形態の変形例において、マイクロコンピュータ42は、洗濯機以外の装置に搭載されたマイクロコンピュータであってもよい。「洗濯機以外の装置」の例には、エアコンや、掃除機や、冷蔵庫や、電子レンジが含まれる。   Moreover, in the modification of this Embodiment, the microcomputer 42 may be a microcomputer mounted in apparatuses other than a washing machine. Examples of “an apparatus other than a washing machine” include an air conditioner, a vacuum cleaner, a refrigerator, and a microwave oven.

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

本発明の第1の実施の形態に係る洗濯機の断面図である。It is sectional drawing of the washing machine which concerns on the 1st Embodiment of this invention. 本発明の第1の実施の形態に係る洗濯機の構成を表わす図である。It is a figure showing the structure of the washing machine which concerns on the 1st Embodiment of this invention. 商用交流電源が供給する電力の電圧とAC回路が生成した信号の矩形波との関係を表わす図である。It is a figure showing the relationship between the voltage of the electric power which commercial AC power supply supplies, and the rectangular wave of the signal which the AC circuit produced | generated. 本発明の第1の実施の形態に係るマイクロコンピュータの制御ブロック図である。FIG. 3 is a control block diagram of the microcomputer according to the first embodiment of the present invention. 本発明の第1の実施の形態に係るユーザインターフェイス部の詳細を表わす図である。It is a figure showing the detail of the user interface part which concerns on the 1st Embodiment of this invention. 本発明の第1の実施の形態に係る給水処理の制御の手順を示すフローチャートである。It is a flowchart which shows the procedure of control of the water supply process which concerns on the 1st Embodiment of this invention. 本発明の第1の実施の形態に係る2種類のパルス信号の対応関係を表わす図である。It is a figure showing the correspondence of two types of pulse signals which concern on the 1st Embodiment of this invention. 本発明の第2の実施の形態に係る給水処理の制御の手順を示すフローチャートである。It is a flowchart which shows the procedure of control of the water supply process which concerns on the 2nd Embodiment of this invention. 本発明の第3の実施の形態に係るROMに保存されたデータベースを表わす概念図である。It is a conceptual diagram showing the database preserve | saved at ROM which concerns on the 3rd Embodiment of this invention. 本発明の第3の実施の形態に係る給水処理の制御の手順を示すフローチャートである。It is a flowchart which shows the procedure of control of the water supply process which concerns on the 3rd Embodiment of this invention. 一般的な洗濯機の構成を表わす概念図である。It is a conceptual diagram showing the structure of a general washing machine.

符号の説明Explanation of symbols

1 外箱、2 水槽、3 防振機構、4 脱水槽、5 攪拌翼、6 商用交流電源、7 モータ、8 減速機構、9 モータプーリ、10 Vベルト、11 センタプーリ、12 クラッチ機構、13 排水弁、14 排水ホース、15 ブザー、16 蓋、17 水位センサ、18 給水弁、19 上面板、20 ユーザインターフェイス部、21 オペレート装置、22 蓋ロック機構、23,64 入力部、24 ブレーキ機構、25 回転センサ、27 排水モータ、28 サーミスタ、30 洗濯機、32 第1駆動回路、34 第2駆動回路、36 形成回路、38 リセット回路、40 AC回路、42,60 マイクロコンピュータ、62 セラミック発振子、66 EEPROM、202 排水口、204 電源スイッチ、206 スタートスイッチ、208 コーススイッチ、210 マニュアルスイッチ、500 CPU、502 ROM、504 RAM、506 メモリ駆動装置、508 発振回路、510 I/O、512 バス。   DESCRIPTION OF SYMBOLS 1 Outer box, 2 Water tank, 3 Anti-vibration mechanism, 4 Dehydration tank, 5 Stirring blade, 6 Commercial AC power supply, 7 Motor, 8 Reduction mechanism, 9 Motor pulley, 10 V belt, 11 Center pulley, 12 Clutch mechanism, 13 Drain valve, 14 drain hose, 15 buzzer, 16 lid, 17 water level sensor, 18 water supply valve, 19 top plate, 20 user interface unit, 21 operating device, 22 lid lock mechanism, 23, 64 input unit, 24 brake mechanism, 25 rotation sensor, 27 drain motor, 28 thermistor, 30 washing machine, 32 first drive circuit, 34 second drive circuit, 36 forming circuit, 38 reset circuit, 40 AC circuit, 42, 60 microcomputer, 62 ceramic oscillator, 66 EEPROM, 202 Drain port, 204 Power switch, 206 Start switch 208 courses switches, 210 manual switch, 500 CPU, 502 ROM, 504 RAM, 506 memory drive device, 508 oscillator, 510 I / O, 512 bus.

Claims (3)

信号を入力したり出力したりするための入出力手段と、
一定の周波数で第1の信号を生成するための生成手段と、
前記入出力手段を制御するための制御手段とを含む信号出力装置であって、
前記入出力手段に入力される信号は、周波数が第1の物理量に対応する信号である第2の信号を含み、
前記制御手段は、
前記生成手段が生成した前記第1の信号の数に基づいて、前記入出力手段に前記第2の信号が入力された時から次に前記第2の信号が入力された時までの時間を、間隔時間として算出するための第1の算出手段と、
第2の物理量に基づいて、補正のための値である第1の値を決定するための決定手段と、
前記第1の値を用いて前記間隔時間を演算することにより、前記間隔時間の補正値を算出するための第2の算出手段と、
前記補正値に対応する情報を表わす信号を出力するように、前記入出力手段を制御するための手段とを含み、
前記入出力手段に入力される信号は、交流電力の電圧の範囲を表わす信号である第3の信号の他に、前記第2の信号を含み、
前記第1の算出手段は、
前記入出力手段に前記第2の信号が入力された時から次に前記第2の信号が入力された時までに前記生成手段が生成した前記第1の信号の数を計数するための第1の計数手段と、
前記第1の計数手段が計数した前記第1の信号の数に基づいて、前記間隔時間を算出するための時間算出手段とを含み、
前記決定手段は、
前記第3の信号をトリガとすることにより、前記交流電力の電圧の周期の2分の1の整数倍の期間である基準期間に前記生成手段が生成する、前記第1の信号の数を計数するための第2の計数手段と、
前記第2の計数手段が計数した前記第1の信号の数から定数を減算することにより、前記第1の値を算出するための第3の算出手段と、
前記第1の値を記憶するための第1の記憶手段とを含み、
前記第2の算出手段は、
前記定数から前記第1の値を減算した値で前記定数を除算した値と前記間隔時間とを用いて、前記補正値を算出するための手段を含み、
前記制御手段は、さらに、
前記第2の計数手段が計数した数に応じて、前記交流電力の周波数を判定する判定手段と、
前記判定手段が判定した周波数に応じて、複数の値のいずれかを前記定数として選択するための第1の選択手段を含む、信号出力装置。
Input / output means for inputting and outputting signals;
Generating means for generating a first signal at a constant frequency;
A signal output device including control means for controlling the input / output means,
The signal input to the input / output means includes a second signal whose frequency corresponds to the first physical quantity,
The control means includes
Based on the number of the first signals generated by the generating means, the time from when the second signal is input to the input / output means to the time when the second signal is input next, First calculating means for calculating as the interval time;
Determining means for determining a first value which is a value for correction based on the second physical quantity;
A second calculation means for calculating a correction value of the interval time by calculating the interval time using the first value;
To output a signal representative of the information corresponding to the correction value, look including a means for controlling the input means,
The signal input to the input / output means includes the second signal in addition to a third signal that is a signal representing a voltage range of AC power,
The first calculation means includes
A first count for counting the number of the first signals generated by the generating unit from the time when the second signal is input to the input / output unit to the time when the second signal is input next. Counting means,
A time calculating means for calculating the interval time based on the number of the first signals counted by the first counting means,
The determining means includes
By using the third signal as a trigger, the number of the first signals generated by the generation unit is counted in a reference period that is a period that is an integral multiple of one half of the period of the voltage of the AC power. Second counting means for
Third calculating means for calculating the first value by subtracting a constant from the number of the first signals counted by the second counting means;
First storage means for storing the first value;
The second calculation means includes:
Means for calculating the correction value using a value obtained by dividing the constant by a value obtained by subtracting the first value from the constant and the interval time;
The control means further includes
Determining means for determining the frequency of the AC power according to the number counted by the second counting means;
The determination means in accordance with the frequency which is determined, first selecting means including for selecting one of a plurality of values as said constant signal output device.
前記信号出力装置は、温度を検知するための検知手段をさらに含み、
前記決定手段は、
複数の値を温度に対応付けて記憶するための手段と、
前記複数の値のうち前記検知手段が検知した温度に対応する値を前記第1の値として選択するための手段とを含む、請求項1に記載の信号出力装置。
The signal output device further includes detection means for detecting temperature,
The determining means includes
Means for storing a plurality of values in association with temperatures;
2. The signal output device according to claim 1, further comprising: means for selecting, as the first value, a value corresponding to the temperature detected by the detection means among the plurality of values.
請求項1または請求項2に記載の信号出力装置を含む、洗濯機。 A washing machine comprising the signal output device according to claim 1 .
JP2006288960A 2006-10-24 2006-10-24 Signal output device and washing machine Expired - Fee Related JP4953758B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006288960A JP4953758B2 (en) 2006-10-24 2006-10-24 Signal output device and washing machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006288960A JP4953758B2 (en) 2006-10-24 2006-10-24 Signal output device and washing machine

Publications (3)

Publication Number Publication Date
JP2008109760A JP2008109760A (en) 2008-05-08
JP2008109760A5 JP2008109760A5 (en) 2009-05-14
JP4953758B2 true JP4953758B2 (en) 2012-06-13

Family

ID=39442675

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006288960A Expired - Fee Related JP4953758B2 (en) 2006-10-24 2006-10-24 Signal output device and washing machine

Country Status (1)

Country Link
JP (1) JP4953758B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10087567B2 (en) 2016-07-06 2018-10-02 Haier Us Appliance Solutions, Inc. Control panel for a washing machine appliance

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6810999B2 (en) * 2016-11-18 2021-01-13 東芝ライフスタイル株式会社 Washing machine

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0271190A (en) * 1988-09-06 1990-03-09 Toshiba Corp Method for time calibration of computer system
JPH0479782A (en) * 1990-07-20 1992-03-13 Hitachi Ltd Periodic component compensation control system
JPH0739674A (en) * 1993-07-27 1995-02-10 Matsushita Electric Ind Co Ltd Dehydrating/washing machine
JPH10323492A (en) * 1997-05-26 1998-12-08 Toshiba Corp Washing machine
JP4103247B2 (en) * 1999-06-11 2008-06-18 松下電器産業株式会社 Washing machine
JP2004258045A (en) * 2004-05-27 2004-09-16 Seiko Epson Corp Clock signal supply device, and its control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10087567B2 (en) 2016-07-06 2018-10-02 Haier Us Appliance Solutions, Inc. Control panel for a washing machine appliance

Also Published As

Publication number Publication date
JP2008109760A (en) 2008-05-08

Similar Documents

Publication Publication Date Title
KR101513036B1 (en) Control methed of washing machine
CA2769868C (en) Washer, such as a dishwasher or a washing machine, and method for operating a washer
CN100456895C (en) Water supply control method of high frequency heating equipment and high frequency heating equipment
WO2010143678A1 (en) Vapor cooker
EP3236590A2 (en) Appliance for wireless power and data transfer
AU2010281009A1 (en) Washer such as a dishwasher or a washing machine and method for operating such a washer
JP4953758B2 (en) Signal output device and washing machine
KR101067059B1 (en) Washing machine
JP5025599B2 (en) Capacitor deterioration detection device and home appliance
JP2017093536A (en) Washing machine
EP1236824B1 (en) Drum type washing machine
TWI327612B (en)
JP4950788B2 (en) Drum type washer / dryer
JP2010035953A (en) Washing machine
KR20090063372A (en) Washing machine and method for indicating a water level
CN111962254A (en) Control method of washing machine and washing machine
KR102012455B1 (en) Clothing dryer and blockage detection method thereof
US6593766B1 (en) Method for estimating the duration of the interruptions in the supply from the electric mains in an electric apparatus having an electronic control
JP4999779B2 (en) Capacitor deterioration detection device and home appliance
JP4769843B2 (en) Dishwasher and its index adjustment method
JP3026650B2 (en) Washing machine
JP4812789B2 (en) Washing machine
WO2018206949A1 (en) Detecting appliance conformity
JP2023036170A (en) heating cooker
JP2007325725A (en) Washing machine

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090327

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090327

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110629

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110726

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110920

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120306

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120313

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150323

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees