JP5533795B2 - Vehicle approach notification device - Google Patents

Vehicle approach notification device Download PDF

Info

Publication number
JP5533795B2
JP5533795B2 JP2011145456A JP2011145456A JP5533795B2 JP 5533795 B2 JP5533795 B2 JP 5533795B2 JP 2011145456 A JP2011145456 A JP 2011145456A JP 2011145456 A JP2011145456 A JP 2011145456A JP 5533795 B2 JP5533795 B2 JP 5533795B2
Authority
JP
Japan
Prior art keywords
pwm
pitch
sound
sound pressure
vehicle
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.)
Active
Application number
JP2011145456A
Other languages
Japanese (ja)
Other versions
JP2013010465A (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.)
Denso Electronics Corp
Original Assignee
Anden Co Ltd
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 Anden Co Ltd filed Critical Anden Co Ltd
Priority to JP2011145456A priority Critical patent/JP5533795B2/en
Publication of JP2013010465A publication Critical patent/JP2013010465A/en
Application granted granted Critical
Publication of JP5533795B2 publication Critical patent/JP5533795B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)

Description

本発明は、車両から音声を発生させることにより、車両が接近していることを周囲に通報する車両接近通報装置に関するものである。   The present invention relates to a vehicle approach notification device that notifies the surroundings that a vehicle is approaching by generating sound from the vehicle.

近年、電気自動車(EV車)やハイブリッド車(HV車)などでは、その構造的に発生騒音が小さく、これらの車両の接近を歩行者が気付き難いということから、歩行者など周囲に車両が近くにいるという認知度を上げるために擬似走行音を発生させる車両接近通報装置が搭載されつつある(例えば、特許文献1〜3参照)。この車両接近通報装置では、発音方法として、マイコンのメモリに格納したPCM(パルス符号変調)などのデータ、つまり音声の大きさをデータコードに変換して符号化したものをそのサンプリング周期毎にD/A変換器やPWM出力器にセットして発音するという方法が用いられている。また、車両接近通報装置では、ロードノイズが小さな低速走行時に擬似走行音を発生させているが、車両の走行状態や運転者のアクセル操作状態によって発音する音程や音圧を変化させるなどの加工を加えることで、より歩行者に車両の走行状態が想起できるようにしている。   In recent years, electric vehicles (EV cars), hybrid cars (HV cars), etc. have structurally low noise, and it is difficult for pedestrians to notice the approach of these vehicles. In order to raise the recognition level that the vehicle is in the vehicle, a vehicle approach notification device that generates a simulated running sound is being installed (see, for example, Patent Documents 1 to 3). In this vehicle approach notification device, as a sound generation method, data such as PCM (Pulse Code Modulation) stored in the memory of a microcomputer, that is, a voice code converted into a data code, is encoded for each sampling period. A method is used in which sound is generated by being set in a / A converter or PWM output device. In addition, the vehicle approach notification device generates a simulated running sound when driving at low speed with low road noise. However, processing such as changing the pitch and sound pressure generated depending on the running state of the vehicle and the accelerator operation state of the driver is performed. In addition, it enables the pedestrian to recall the running state of the vehicle.

特開2005−215544号公報JP 2005-215544 A 特開2007−38937号公報JP 2007-38937 A 特開2009−101895号公報JP 2009-101895 A

上記のような従来の手法によって発音する音程を高くするには、マイコンのメモリに格納したPCMデータをD/A変換器やPWM出力器にセットする周期をサンプリング周期より短くすることで実現できる。しかしながら、この周期の中でPCMデータの大きさを増減させる演算を実行する必要があり、マイコンの処理負荷がマイコンの処理能力を超えてしまい、音質を低下させるという問題を発生させる。また、マイコンに内蔵されたPWM出力器を使用して音程を高くする場合、PWMのキャリア周期を短くする必要があるが、PWMのLSB(PWM周期の最小単位)の要因で、PWMデータのビット分解能を低下させることになり、その結果、発音品質を低下させるという問題がある。   Increasing the pitch produced by the conventional method as described above can be realized by making the period for setting the PCM data stored in the memory of the microcomputer in the D / A converter or the PWM output unit shorter than the sampling period. However, it is necessary to execute an operation for increasing / decreasing the size of the PCM data in this period, and the processing load of the microcomputer exceeds the processing capacity of the microcomputer, which causes a problem that sound quality is deteriorated. Also, when using the PWM output device built in the microcomputer to increase the pitch, it is necessary to shorten the PWM carrier cycle. However, the PWM data bit is a factor of PWM LSB (minimum unit of PWM cycle). There is a problem that the resolution is lowered, and as a result, the sound quality is lowered.

以下、この問題について図を参照して説明する。図9(a)、(b)は、従来のPWM方式における音程アップしないとき(基準音程時)と音程アップするときのPWM波形と可変幅との関係を示した図であり、図9(c)、(d)は、図9(a)、(b)の部分拡大図である。実際のPWM方式では、PWM分解能が10bit(1024段階)のように、高い分解能で制御されるが、ここでは説明を簡略化するために、PWM分解能を5bit(32段階)で表現してあり、また音圧についても一定の所定音圧とされている場合として示してある。また、音程アップ量としては、基準音程時に対して50%アップする場合を示してある。   Hereinafter, this problem will be described with reference to the drawings. FIGS. 9A and 9B are diagrams showing the relationship between the PWM waveform and the variable width when the pitch is not increased (during the reference pitch) and when the pitch is increased in the conventional PWM method. (D) is the elements on larger scale of Drawing 9 (a) and (b). In the actual PWM system, the PWM resolution is controlled at a high resolution such as 10 bits (1024 steps), but here, for the sake of simplicity of explanation, the PWM resolution is expressed by 5 bits (32 steps), Further, the sound pressure is also shown as a case where the sound pressure is constant. In addition, as the pitch up amount, a case where the pitch is increased by 50% with respect to the reference pitch is shown.

音程アップを行わないときには、キャリア周期がPWMのLSBの32倍に設定され、PWMのパルス幅(デューティ)をLSBの1倍から32倍に段階的に変化させることで、PCMデータの振幅の大きさに合せたPWM出力を発生させるようにしている。したがって、基準音程時には、32段階の可変幅を実現できる。   When the pitch is not increased, the carrier cycle is set to 32 times the PWM LSB, and the PWM pulse width (duty) is changed stepwise from 1 to 32 times the LSB to increase the amplitude of the PCM data. A PWM output that matches this is generated. Therefore, a variable range of 32 steps can be realized at the reference pitch.

一方、音程アップを行うときには、音程アップ量に合せてキャリア周期が基準音程時のキャリア周期より短い時間に設定される。例えば、音程アップ量が50%の場合には、基準音程時のキャリア周期100%に対して100/150倍した時間がおよその音程アップ時のキャリア周期となる。このため、基準音程時のキャリア周期がPWMのLSBの32倍であったのに対して、音程アップ時のキャリア周波数はその100/150倍した値(=21.33・・)となり、それに近似させた例えばPWMのLSBの20倍に設定されることになる。このため、50%の音程アップを行う場合には、PWMのパルス幅をPWMのLSBの1倍から20倍に段階的に変化させた分でしか変化させられない。   On the other hand, when the pitch is increased, the carrier cycle is set to a time shorter than the carrier cycle at the reference pitch according to the pitch increase amount. For example, when the pitch increase amount is 50%, a time obtained by multiplying 100/150 times the carrier cycle 100% at the reference pitch is an approximate carrier cycle at the time of the pitch increase. For this reason, the carrier frequency at the reference pitch is 32 times the LSB of PWM, whereas the carrier frequency at the time of pitch up is a value multiplied by 100/150 (= 21.33...) For example, it is set to 20 times the LSB of PWM. For this reason, when the pitch is increased by 50%, the PWM pulse width can be changed only by a stepwise change from 1 to 20 times the PWM LSB.

さらに、32段階でPWMのパルス幅を設定していたものを20段階に変更することになり、表現できる可変幅が1対1で対応しないため、音程アップ時には、およそのパルス幅にしか設定できなくなる。具体的には、図9(c)に示すように、32段階でPWMのパルス幅が1段階ずつ変化しているのに対して、20段階で同じパルス幅を表現すると、図9(d)に示すように段階が変化しない場合が発生する。これがPWMデータのビット分解能を低下させることに繋がり、発音音質を低下させることになる。さらに、上記したように、音程アップの割合に応じてキャリア周期を設定する際に、音程アップの割合丁度のキャリア周期に設定できるわけではない。例えば、上記したように、音程アップ量を50%とする場合には、本来であればキャリア周期はPWMのLSBの21、33・・・倍となるが、それに近似する20倍に設定される。このため、キャリア周期も正確に設定されている訳ではないため、これも発音音質の低下の要因となる。   Furthermore, the PWM pulse width that was set in 32 steps will be changed to 20 steps, and the variable width that can be expressed does not correspond one-to-one, so when the pitch is raised, it can only be set to an approximate pulse width. Disappear. Specifically, as shown in FIG. 9C, the PWM pulse width changes by one step in 32 steps, whereas the same pulse width is expressed in 20 steps. As shown in the figure, there are cases where the stage does not change. This leads to a reduction in the bit resolution of the PWM data, resulting in a reduction in sound quality. Furthermore, as described above, when the carrier period is set in accordance with the pitch up rate, it cannot be set to the carrier cycle at the exact pitch up rate. For example, as described above, when the pitch-up amount is 50%, the carrier period is originally 21, 33... Times the PWM LSB, but is set to 20 times approximate to it. . For this reason, since the carrier period is not set accurately, this also causes a decrease in sound quality.

また、このようなPWM方式による音程可変制御は、次のような制御処理を実行することにより行われることになるが、本制御処理において演算ルーチンが存在するために、マイコンでの処理負荷が大きくなり、制御処理周期中に処理できず、発音音質に影響が出るという問題も発生し得る。   In addition, such a pitch variable control by the PWM method is performed by executing the following control processing. However, since there is an arithmetic routine in this control processing, the processing load on the microcomputer is large. Therefore, there is a problem that the sound quality cannot be processed during the control processing cycle, and the sound quality is affected.

図10は、従来のPWM方式での音程可変制御および音圧可変制御を含む発音制御処理のフローチャートである。なお、上記では音圧可変制御については説明していないが、ここでは音圧可変制御も実行する場合について説明する。本発音制御処理は、車両が走行し始め車速が所定速度以下のときに、本処理中に設定される所定のキャリア周期毎に実行される。   FIG. 10 is a flowchart of a sound generation control process including a pitch variable control and a sound pressure variable control in the conventional PWM method. In addition, although sound pressure variable control is not demonstrated above, the case where sound pressure variable control is also performed here is demonstrated. The sound generation control process is executed for each predetermined carrier period set during the process when the vehicle starts to travel and the vehicle speed is equal to or lower than the predetermined speed.

まず、ステップ400では、車速から音程アップ量に相当するキャリア周波数を換算する。キャリア周波数は、PWM出力のDuty比を更新する周波数であり、音程アップ量に対応する値である。このキャリア周波数の逆数(1/キャリア周期)がキャリア周期であり、PWM出力のDuty比を更新する時間となる。キャリア周波数(音程アップ量)については、予め車速に対する音程アップ量の関係を示したテーブルをマイコンに記憶しておき、そのテーブルを用いて、検出された車速に対応するキャリア周波数を取得することにより求めている。   First, in step 400, the carrier frequency corresponding to the pitch increase amount is converted from the vehicle speed. The carrier frequency is a frequency for updating the duty ratio of the PWM output, and is a value corresponding to the amount of pitch increase. The reciprocal of the carrier frequency (1 / carrier cycle) is the carrier cycle, which is the time for updating the duty ratio of the PWM output. Regarding the carrier frequency (pitch increase amount), a table showing the relationship of the pitch increase amount with respect to the vehicle speed is stored in the microcomputer in advance, and the carrier frequency corresponding to the detected vehicle speed is obtained using the table. Looking for.

次に、ステップ410では、車速(もしくはそれに対応する音程アップ量)から、PWM分解能比(段数比)を換算する。具体的には、基準音程時のPWMデータのビットの分解能(32段数)に対して、音程アップを行うときのPWMデータのビットの分解能(段数)を演算する。上記したように、音程アップ量を50%とする場合には、20段となる。   Next, in step 410, the PWM resolution ratio (stage number ratio) is converted from the vehicle speed (or the corresponding pitch increase amount). Specifically, the bit resolution (number of stages) of the PWM data when the pitch is increased is calculated with respect to the resolution (32 stages) of the PWM data bits at the reference pitch. As described above, when the pitch-up amount is 50%, the number of steps is 20 steps.

続いて、ステップ420では、発音するPWMデータの読み出しを行う。この処理は、マイコンのメモリに格納したPCMデータを読み出すことにより行われる。そして、ステップ430では、発音データPWM値を演算し、今回演算した発音データPWM値にPWMデータを更新する。具体的には、ステップ420で読み出したPWMデータに対してステップ410で演算したPWM分解能比を乗算することにより、発音データPWM値を演算している。この発音データPWM値が、音程アップを加味してPWMのキャリア周期を変化させたときのPWMデータとなる。このため、この発音データPWM値にPWMデータを更新することで、車速に応じた音程アップを加味したPWMデータとすることができる。   Subsequently, in step 420, the PWM data to be generated is read. This process is performed by reading PCM data stored in the memory of the microcomputer. In step 430, the sounding data PWM value is calculated, and the PWM data is updated to the sounding data PWM value calculated this time. Specifically, the sounding data PWM value is calculated by multiplying the PWM data read out in step 420 by the PWM resolution ratio calculated in step 410. This sounding data PWM value becomes PWM data when the carrier period of PWM is changed in consideration of pitch up. For this reason, by updating the PWM data to this sound generation data PWM value, it is possible to obtain PWM data that takes into account a pitch increase in accordance with the vehicle speed.

さらに、ステップ440では、アクセル開度から音圧アップ量(PWM倍率)を換算する。音圧アップ量については、予めアクセル開度に対する音圧アップ量の関係を示したテーブルをマイコンに記憶しておき、そのテーブルを用いて、検出されたアクセル開度に対応する音圧アップ量を取得することにより求めている。   Further, in step 440, the sound pressure increase amount (PWM magnification) is converted from the accelerator opening. For the sound pressure increase amount, a table showing the relationship of the sound pressure increase amount with respect to the accelerator opening degree is stored in advance in the microcomputer, and the sound pressure increase amount corresponding to the detected accelerator opening amount is stored using the table. Seeking by acquiring.

次に、ステップ450では、ステップ430で更新されたPWMデータに対してステップ440で演算した音圧アップ量(PWM倍率)を乗算することにより、出力すべきPWM値を演算し、前回の制御周期の際に演算されたPWM値を今回演算された値に更新する。そして、ステップ460では、ステップ450で演算されたPWM値をPWM出力器にセットし、発音出力として出力する。この後、ステップ470において、現在のキャリア周期をステップ400で演算されたキャリア周期に更新し、次回のキャリア周期として用いる。このようにして、PWM方式による音程可変制御が実行される。   Next, in step 450, the PWM value to be output is calculated by multiplying the PWM data updated in step 430 by the sound pressure increase amount (PWM magnification) calculated in step 440, and the previous control cycle is calculated. The PWM value calculated at this time is updated to the value calculated this time. In step 460, the PWM value calculated in step 450 is set in the PWM output device and output as a sound output. Thereafter, in step 470, the current carrier cycle is updated to the carrier cycle calculated in step 400 and used as the next carrier cycle. Thus, the pitch variable control by the PWM method is executed.

以上のようなPWM方式による音程可変制御の手法では、ステップ430やステップ450において、演算ルーチンが存在するため、マイコンでの処理負荷が大きくなり、制御処理周期中に処理できず、発音音質に影響が出るという問題も発生し得るのである。   In the method of variable pitch control by the PWM method as described above, since a calculation routine exists in step 430 and step 450, the processing load on the microcomputer increases, and processing cannot be performed during the control processing cycle, which affects the sound quality. The problem of the occurrence of a problem can also occur.

本発明は上記点に鑑みて、発音音質の低下を軽減することが可能な車両接近通報装置を提供することを目的とする。   In view of the above points, an object of the present invention is to provide a vehicle approach notification device capable of reducing deterioration in sound quality.

上記目的を達成するため、請求項1ないし3に記載の発明では、車両に搭載された発音体(3)からの発音の音程を制御することで、車両の接近を通報する車両接近通報装置において、車速と音程に対応するキャリア周期との関係および発音データを記憶する手段、車速を示す検知信号を入力すると共に、該検知信号が示す車速に対応するキャリア周期を記憶された車速と音程に対応するキャリア周期との関係から取得したのち、取得したキャリア周期毎に発音データを読み出し、該読み出した発音データをPWM値として発音データバッファに格納する処理を実行する手段(100〜130)、および、固定周期とされたリサンプリング周期毎に、発音データバッファに格納されたPWM値を読み出すと共にPWM値をPWM出力として出力させる処理を実行する手段(200、210)と、PWM出力を出力するPWM出力器(21b)と、を有するマイコン(21)と、マイコン(21)から発生させられたPWM出力と対応する電流を発音体(3)に流すことで、発音体(3)にて車速と対応する音程の発音を行わせるアンプ(24)とを備えていることを特徴としている。   In order to achieve the above object, according to the first to third aspects of the present invention, in the vehicle approach notification device for reporting the approach of the vehicle by controlling the pitch of the sound from the sound generator (3) mounted on the vehicle. The means for storing the relationship between the vehicle speed and the carrier cycle corresponding to the pitch and the sound generation data, the detection signal indicating the vehicle speed being input, and the carrier cycle corresponding to the vehicle speed indicated by the detection signal corresponding to the stored vehicle speed and pitch Means (100 to 130) for executing a process of reading sound generation data for each acquired carrier period and storing the read sound data as a PWM value in a sound data buffer after acquiring from the relationship with the carrier cycle At each re-sampling period set to a fixed period, the PWM value stored in the sound data buffer is read and the PWM value is output as a PWM output. A microcomputer (21) having a means (200, 210) for executing processing and a PWM output device (21b) for outputting a PWM output, and a current corresponding to the PWM output generated from the microcomputer (21). The sound generator (3) is provided with an amplifier (24) that causes the sound generator (3) to generate a sound having a pitch corresponding to the vehicle speed.

このように、発音データを読み出して発音データバッファに記憶し、この発音データバッファに記憶された発音データを短いリサンプリング周期毎に読み出すことで車速に対応する音程に応じたPWM値を生成している。したがって、音程アップを行っても、PWM分解能を変化させることなく、PWM値を設定することが可能となる。   As described above, the sound generation data is read out and stored in the sound generation data buffer, and the sound generation data stored in the sound generation data buffer is read at every short resampling cycle to generate a PWM value corresponding to the pitch corresponding to the vehicle speed. Yes. Therefore, even if the pitch is increased, the PWM value can be set without changing the PWM resolution.

また、発音データを読み出すときのキャリア周期が変わるため、PWM出力のDuty比を更新する時間が変化するが、PWM値のデータを読み込むときのリサンプリング周期は固定であるため、単に発音データバッファに格納されたPWM値を読み出せば良い。したがって、従来のように発音データにPWM分解能比を乗算するなどの処理を全く行わなくても、車速に応じた音程可変制御を実行することができる。このため、マイコン(21)での処理負荷を小さくすることが可能となり、制御処理周期中に確実に処理が完了するようにでき、発音音質が低下することを防止することが可能となる。   In addition, since the carrier cycle when reading the sounding data changes, the time for updating the duty ratio of the PWM output changes. However, since the resampling cycle when reading the PWM value data is fixed, it is simply stored in the sounding data buffer. What is necessary is just to read the stored PWM value. Therefore, the variable pitch control according to the vehicle speed can be executed without performing any processing such as multiplying the sound generation data by the PWM resolution ratio as in the prior art. For this reason, the processing load on the microcomputer (21) can be reduced, the processing can be surely completed during the control processing cycle, and the sound quality can be prevented from deteriorating.

請求項2に記載の発明では、マイコン(21)には、アクセル開度に対応付けて、該アクセル開度と音圧量との関係を記憶する手段と、アクセル開度を示す検知信号を入力すると共に、一定周期毎に該検知信号が示すアクセル開度に対応する音圧量をアクセル開度と音圧量との関係から取得したのち、該音圧量に対応する制御信号を出力させる処理を実行する手段(300、310)と、制御信号を出力する制御信号出力部(21a)と、が備えられ、当該マイコン(21)から発生させられた制御信号に基づいて、PWM出力器(21b)からのPWM出力の電圧レベルを調整して出力する電圧制御部(22)を有し、アンプ(24)は、電圧制御部(22)にて電圧レベルが調整された後のPWM出力に基づいて発音体(3)による発音を行わせることを特徴としている。   According to the second aspect of the present invention, the microcomputer (21) receives a means for storing the relationship between the accelerator opening and the sound pressure amount in association with the accelerator opening, and a detection signal indicating the accelerator opening. In addition, after obtaining the sound pressure amount corresponding to the accelerator opening indicated by the detection signal for each fixed period from the relationship between the accelerator opening and the sound pressure amount, a process of outputting a control signal corresponding to the sound pressure amount And a control signal output unit (21a) for outputting a control signal. Based on a control signal generated from the microcomputer (21), a PWM output device (21b) is provided. The voltage control unit (22) that adjusts and outputs the voltage level of the PWM output from the amplifier (24), and the amplifier (24) is based on the PWM output after the voltage level is adjusted by the voltage control unit (22). Pronunciation by sound generator (3) It is characterized in that to perform.

このように、電圧制御部(22)にてPWM出力の電圧レベルを調整することで、発音体(3)での発音の音圧をアクセル開度に対応して変化させることが可能となる。そして、音圧量についても、アクセル開度に対する音圧量の関係から取得できる。このため、マイコン(21)での処理負荷を小さくすることが可能となり、制御処理周期中に確実に処理が完了するようにでき、発音音質が低下することを防止することが可能となる。   Thus, by adjusting the voltage level of the PWM output by the voltage control unit (22), the sound pressure of the sound produced by the sound producing body (3) can be changed corresponding to the accelerator opening. The sound pressure amount can also be acquired from the relationship of the sound pressure amount with respect to the accelerator opening. For this reason, the processing load on the microcomputer (21) can be reduced, the processing can be surely completed during the control processing cycle, and the sound quality can be prevented from deteriorating.

なお、上記各手段の括弧内の符号は、後述する実施形態に記載の具体的手段との対応関係を示すものである。   In addition, the code | symbol in the bracket | parenthesis of each said means shows the correspondence with the specific means as described in embodiment mentioned later.

本発明の第1実施形態にかかる車両接近通報装置を含む車両接近通報システムのブロック図である。1 is a block diagram of a vehicle approach notification system including a vehicle approach notification device according to a first embodiment of the present invention. 車両接近通報装置2の具体的なブロック構成および回路構成の一例を示した車両接近通報システムの全体図である。1 is an overall view of a vehicle approach notification system showing an example of a specific block configuration and circuit configuration of a vehicle approach notification device 2. FIG. 音程可変制御部21dが音程可変制御処理として実行するタイマ制御ルーチンの詳細を示したフローチャートである。It is the flowchart which showed the detail of the timer control routine which 21d of pitch variable control parts perform as a pitch variable control process. 音程可変制御部21dが音程可変制御処理として実行するタイマ制御ルーチンの詳細を示したフローチャートである。It is the flowchart which showed the detail of the timer control routine which 21d of pitch variable control parts perform as a pitch variable control process. 音圧可変制御部21cが実行するタイマ制御ルーチンの詳細を示したフローチャートである。It is the flowchart which showed the detail of the timer control routine which the sound pressure variable control part 21c performs. 音程可変制御に基づくPWM出力波形の生成の様子を示した図でる。It is the figure which showed the mode of the production | generation of the PWM output waveform based on a pitch variable control. (a)、(b)は、音圧可変制御において音程アップしないとき(基準音程時)と音程アップするときのPWM波形と可変幅との関係を示した図であり、(c)、(d)は、(a)、(b)の部分拡大図である。(A), (b) is the figure which showed the relationship between the PWM waveform when a pitch does not rise in the sound pressure variable control (at the time of a reference pitch), and a pitch up, and a variable width, (c), (d) ) Is a partially enlarged view of (a) and (b). 従来のPWM方式で音程可変制御行ったときのPWM出力波形の生成の様子を示した図である。It is the figure which showed the mode of the production | generation of the PWM output waveform when performing pitch variable control by the conventional PWM system. (a)、(b)は、従来のPWM方式における音程アップしないとき(基準音程時)と音程アップするときのPWM波形と可変幅との関係を示した図であり、(c)、(d)は、(a)、(b)の部分拡大図である。(A), (b) is the figure which showed the relationship between the PWM waveform when a pitch does not rise in the conventional PWM system (at the time of a reference pitch), and a pitch up, and a variable width, (c), (d) ) Is a partially enlarged view of (a) and (b). 従来のPWM方式での音程可変制御および音圧可変制御を含む発音制御処理のフローチャートである。It is a flowchart of a sound generation control process including a pitch variable control and a sound pressure variable control in a conventional PWM system.

以下、本発明の実施形態について図に基づいて説明する。なお、以下の各実施形態相互において、互いに同一もしくは均等である部分には、図中、同一符号を付してある。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following embodiments, the same or equivalent parts are denoted by the same reference numerals in the drawings.

(第1実施形態)
図1は、本実施形態にかかる車両接近通報装置を含む車両接近通報システムのブロック図である。この図を参照して、本実施形態にかかる車両用接近通報装置を含む車両接近通報システムについて説明する。
(First embodiment)
FIG. 1 is a block diagram of a vehicle approach notification system including a vehicle approach notification device according to the present embodiment. With reference to this figure, the vehicle approach notification system including the vehicle approach notification apparatus according to the present embodiment will be described.

図1に示すように、車両接近通報システムは、各種センサ1a、1bと車両接近通報装置2およびスピーカ3とを有した構成とされている。車両接近通報システムでは、車両接近通報装置2が各種センサ1a、1bから伝えられる走行状態検知信号に基づいて、発音体であるスピーカ3からの発音を行うことで、車両の接近を周囲の歩行者などに通報する。なお、ここでは、車両接近通報装置2をスピーカ3と別体としているが、スピーカ3を車両接近通報装置2と一体化した構成としても良い。   As shown in FIG. 1, the vehicle approach notification system includes various sensors 1 a and 1 b, a vehicle approach notification device 2, and a speaker 3. In the vehicle approach notification system, the vehicle approach notification device 2 generates a sound from the speaker 3 that is a sounding body based on the driving state detection signals transmitted from the various sensors 1a and 1b, thereby indicating the approach of the vehicle to the surrounding pedestrian. Report to Here, the vehicle approach notification device 2 is separated from the speaker 3, but the speaker 3 may be integrated with the vehicle approach notification device 2.

各種センサ1a、1bは、車両の走行状態取得手段を構成するものである、各種センサ1a、1bとしては、車速センサ1aやアクセル開度センサ1bが備えられている。車速センサ1aは、車両の走行状態検知信号として車速を示す検知信号を出力し、アクセル開度センサ1bは、車両の走行状態検知信号としてアクセル開度を示す検知信号を出力している。このため、車両接近通報装置2は、これら車速やアクセル開度を示す検知信号を走行状態検知信号として入力し、車速やアクセル開度などの車両の走行状態に応じて発音の音程や音圧を制御する発音制御を行う。   The various sensors 1a and 1b constitute vehicle running state acquisition means. As the various sensors 1a and 1b, a vehicle speed sensor 1a and an accelerator opening sensor 1b are provided. The vehicle speed sensor 1a outputs a detection signal indicating the vehicle speed as a vehicle traveling state detection signal, and the accelerator opening sensor 1b outputs a detection signal indicating the accelerator opening as a vehicle traveling state detection signal. For this reason, the vehicle approach notification device 2 inputs a detection signal indicating the vehicle speed and the accelerator opening as a traveling state detection signal, and generates a sounding pitch and a sound pressure according to the traveling state of the vehicle such as the vehicle speed and the accelerator opening. Perform sound control to control.

車両接近通報装置2は、マイコン21と電圧制御部22とローパスフィルタ(以下、LPFという)23およびパワーアンプ(以下、AMPという)24を有している。   The vehicle approach notification device 2 includes a microcomputer 21, a voltage control unit 22, a low-pass filter (hereinafter referred to as LPF) 23, and a power amplifier (hereinafter referred to as AMP) 24.

マイコン21は、図示しないメモリを有していると共に、デジタルアナログコンバータ(以下、DACという)21aおよびPWM出力器21bを有した構成とされている。メモリには、発音の制御プログラムやPCMデータなどの発音データ、走行状態検知信号が示す車両の走行状態に対応付けた音程アップ量や音圧量のテーブルなどが記憶されている。この記憶内容を用いて、マイコン21は、走行状態検知信号が示す車速に対応する音程アップ量およびアクセル開度に対応する音圧量とするための出力をDAC21aおよびPWM出力器21bから出力する。具体的には、アクセル開度に対応する音圧量とするための制御信号をDAC21aから出力すると共に、車速に対応する音程レベルとされたPWM出力をPWM出力器21bから出力させている。基本的には、音程アップ量は、車速が早くなるほど高くなるように設定され、音圧量は、アクセル開度が大きくなるほど高くなるように設定される。つまり、車両が歩行者などに接近するのがより速くなるほど音程アップ量が大きくなり、ドライバの操作量が大きいほど音圧量を高めることで、歩行者などに車両の接近が近づいていることが感知し易くなるようにしている。   The microcomputer 21 has a memory (not shown) and a digital / analog converter (hereinafter referred to as DAC) 21a and a PWM output device 21b. The memory stores a sound generation control program, sound generation data such as PCM data, a pitch up amount and sound pressure amount table associated with the vehicle running state indicated by the running state detection signal, and the like. Using this stored content, the microcomputer 21 outputs, from the DAC 21a and the PWM output device 21b, an output for setting a sound volume amount corresponding to the vehicle speed indicated by the traveling state detection signal and a sound pressure amount corresponding to the accelerator opening. Specifically, a control signal for setting the sound pressure amount corresponding to the accelerator opening is output from the DAC 21a, and a PWM output having a pitch level corresponding to the vehicle speed is output from the PWM output device 21b. Basically, the pitch-up amount is set to increase as the vehicle speed increases, and the sound pressure amount is set to increase as the accelerator opening increases. In other words, the faster the vehicle approaches a pedestrian or the like, the greater the amount of pitch increase, and the greater the driver's operation amount, the higher the sound pressure level, so that the vehicle approaches the pedestrian or the like. It makes it easy to detect.

電圧制御部22は、DAC21aから伝えられる制御信号に基づいてPWM出力の電圧レベルを調整するもので、制御信号が指示する電圧レベルにPWM出力の電圧レベルを変化させる。具体的には、DAC21aから音圧量に応じた制御信号が発生させられており、発音する音圧量が上昇していくと電圧制御部22で発生させる電圧レベルが高くなり、発音する音圧量が低下していくと電圧制御部22で発生させる電圧レベルが小さくなるように、DAC21aの制御信号が変化させられる。したがって、電圧制御部22は、発音する音圧量が小さくなるほどPWM出力の電圧レベルを小さくし、音圧量が大きくなる程PWM出力の電圧レベルを大きくして出力する。   The voltage control unit 22 adjusts the voltage level of the PWM output based on the control signal transmitted from the DAC 21a, and changes the voltage level of the PWM output to the voltage level indicated by the control signal. Specifically, a control signal corresponding to the amount of sound pressure is generated from the DAC 21a, and when the sound pressure amount to be generated increases, the voltage level generated by the voltage control unit 22 increases, and the sound pressure to be generated is increased. As the amount decreases, the control signal of the DAC 21a is changed so that the voltage level generated by the voltage control unit 22 decreases. Therefore, the voltage control unit 22 decreases the voltage level of the PWM output as the sound pressure amount to be generated decreases, and increases the voltage level of the PWM output as the sound pressure amount increases.

LPF23は、フィルタ手段に相当し、高周波のノイズ成分を除去して電圧制御部22を介して伝えられるPWM出力器21bの出力に対応する出力を発生させる。例えば、LPF23は、内蔵のコンデンサに電圧制御部22の出力に対応する電圧を蓄え、それをAMP24に出力している。   The LPF 23 corresponds to filter means, and removes high frequency noise components and generates an output corresponding to the output of the PWM output device 21 b transmitted via the voltage control unit 22. For example, the LPF 23 stores a voltage corresponding to the output of the voltage control unit 22 in a built-in capacitor and outputs it to the AMP 24.

AMP24は、図示しない定電圧源からの電圧印加に基づいてLPF23の出力と対応する電流をスピーカ3に流す。スピーカ3が発音する音圧は、AMP24から供給される電流の大きさ(振幅)に応じて決まり、AMP24から供給される電流の大きさは、PWM出力に対応するLPF23の出力波形によって決まる。このため、電圧制御部22での電圧レベルの調整に基づいてAMP24が流す電流が変化させられる。このとき、電圧制御部22による電圧レベルの調整が無ければ、PWM出力器21bのPWM出力のパルス幅のみによってAMP24が流す電流を変化させることになるため、その電流が小さい場合にはPWM出力のパルス幅が極端に小さくなり過ぎる。しかしながら、電圧制御部22によってPWM出力の電圧レベルを可変にしているため、AMP24が流す電流が小さい場合にも、PWM出力のパルス幅を極端に小さくしなくても済むようになる。   The AMP 24 supplies a current corresponding to the output of the LPF 23 to the speaker 3 based on voltage application from a constant voltage source (not shown). The sound pressure generated by the speaker 3 is determined according to the magnitude (amplitude) of the current supplied from the AMP 24, and the magnitude of the current supplied from the AMP 24 is determined by the output waveform of the LPF 23 corresponding to the PWM output. For this reason, the current flowing through the AMP 24 is changed based on the adjustment of the voltage level in the voltage control unit 22. At this time, if the voltage control unit 22 does not adjust the voltage level, the current flowing through the AMP 24 is changed only by the pulse width of the PWM output of the PWM output device 21b. The pulse width becomes too small. However, since the voltage level of the PWM output is made variable by the voltage control unit 22, even when the current flowing through the AMP 24 is small, the pulse width of the PWM output does not need to be extremely reduced.

図2は、車両接近通報装置2の具体的なブロック構成および回路構成の一例を示した車両接近通報システムの全体図である。   FIG. 2 is an overall view of a vehicle approach notification system showing an example of a specific block configuration and circuit configuration of the vehicle approach notification device 2.

マイコン21には、例えば、マイコンクロックが周期0.03125μs、周波数32MHzのものが用いられており、PWMクロックには周期0.09375μs、周波数10.67MHz、8bitPWM周期[×256クロック]には周期24μs、周波数41.67kHzが用いられている。PWMクロックは、マイコンクロックの逓倍からなる周波数とされる。従来のPWM方式では、マイコンクロックが周期0.03125μs、周波数32MHzのものが用いられており、PWMクロックには周期0.03125μs、周波数32MHz、10bitPWM周期[×1024クロック]には周期32μs、周波数31.25kHz、10bitPWM周期[×682クロック]には周期21.3125μs、周波数46.92kHzが用いられていた。このように、本実施形態では従来の10bitPWM周期を用いずに8bitPWM周期を用いているが、これは、後述するように発音制御処理として音圧可変制御処理や音程可変制御処理を行っているが、これらが別々に実行されるようにすることで、PWM周期を8bitにでき、10bitの場合と比較してゆっくりクロックが回せるようにしている。   As the microcomputer 21, for example, a microcomputer clock having a period of 0.03125 μs and a frequency of 32 MHz is used. A PWM clock has a period of 0.09375 μs, a frequency of 10.67 MHz, and an 8-bit PWM period [× 256 clocks] has a period of 24 μs. A frequency of 41.67 kHz is used. The PWM clock has a frequency obtained by multiplying the microcomputer clock. In the conventional PWM system, a microcomputer clock having a period of 0.03125 μs and a frequency of 32 MHz is used. A PWM clock has a period of 0.03125 μs, a frequency of 32 MHz, and a 10-bit PWM period [× 1024 clock] has a period of 32 μs and a frequency of 31. A cycle of 21.3125 μs and a frequency of 46.92 kHz were used for .25 kHz, 10-bit PWM cycle [× 682 clocks]. As described above, in the present embodiment, the 8-bit PWM cycle is used instead of the conventional 10-bit PWM cycle, but this performs sound pressure variable control processing and pitch variable control processing as sound generation control processing as will be described later. By executing these separately, the PWM cycle can be set to 8 bits, and the clock can be rotated more slowly than in the case of 10 bits.

具体的には、マイコン21は、図2に示すように、音圧可変制御処理を実行する音圧可変制御部21cおよび音程可変制御処理を実行する音程可変制御部21dを有した構成とされている。   Specifically, as shown in FIG. 2, the microcomputer 21 includes a sound pressure variable control unit 21c that executes a sound pressure variable control process and a pitch variable control unit 21d that executes a pitch variable control process. Yes.

音圧可変制御部21cは、アクセル開度に基づいて音圧量を換算し、この音圧量に対応する出力をDAC21aから出力させる。例えば、音圧可変制御部21cは、DAC21aから制御信号として音圧量に対応する電圧を出力させることで電圧制御部22の出力する電圧レベルを制御している。この音圧可変制御部21cが実行する音圧可変制御処理の詳細については後述する。   The sound pressure variable control unit 21c converts the sound pressure amount based on the accelerator opening, and outputs an output corresponding to the sound pressure amount from the DAC 21a. For example, the sound pressure variable control unit 21c controls the voltage level output from the voltage control unit 22 by outputting a voltage corresponding to the amount of sound pressure as a control signal from the DAC 21a. Details of the sound pressure variable control process executed by the sound pressure variable control unit 21c will be described later.

音程可変制御部21dは、タイマ制御時間データの更新、タイマ制御タイマの設定を行い、タイマ制御ルーチンとして設定された各ルーチンを実行することで音程アップ量の更新を行うと共に、音程アップ量に応じたPWM出力をPWM出力器21bから出力させる。例えば、音程可変制御部21dは、車速に応じて音程アップ量に対応するキャリア周波数を求め、このキャリア周波数に対応するタイマ制御時間を設定したり、タイマ制御タイマのカウント値をタイマ制御時間に設定して計測を行うなどの処理を行う。また、音程可変制御部21dは、タイマ制御ルーチンの1つとして、発音するPWMデータの読み出しを行うと共に読み出したPWMデータのPWM値を発音データバッファに格納する処理を行い、タイマ制御ルーチンのもう1つとして、発音データバッファに格納されたPWM値を読み出してそのPWM値に対応するPWM出力を発生させる処理を行う。この音程可変制御部21dで実行される音程可変制御処理の詳細については後述する。   The pitch variable control unit 21d updates the timer control time data, sets the timer control timer, updates the pitch up amount by executing each routine set as the timer control routine, and according to the pitch up amount. The PWM output is output from the PWM output device 21b. For example, the pitch variable control unit 21d obtains a carrier frequency corresponding to the pitch increase amount according to the vehicle speed, and sets a timer control time corresponding to the carrier frequency, or sets a count value of the timer control timer as the timer control time. And perform processing such as measurement. In addition, as one of the timer control routines, the variable pitch control unit 21d performs the process of reading the sounding PWM data and storing the PWM value of the read PWM data in the sounding data buffer. Then, a process for reading the PWM value stored in the sound data buffer and generating a PWM output corresponding to the PWM value is performed. Details of the pitch variable control process executed by the pitch variable control unit 21d will be described later.

電圧制御部22は、例えば図2に示すようにバッファ22aとスイッチ部22bなどを有した構成とされる。バッファ22aは、DAC21aの出力する電圧に応じた出力電圧を発生させる。スイッチ部22bは、NPNトランジスタ22ba、入力抵抗22bbおよびベース−エミッタ間に備えられた抵抗22bcによって構成され、PWM出力器21bの出力に基づいてNPNトランジスタ22baがオンオフされることで、バッファ22aの出力電圧をLPF23に入力する。   For example, as shown in FIG. 2, the voltage control unit 22 includes a buffer 22a and a switch unit 22b. The buffer 22a generates an output voltage corresponding to the voltage output from the DAC 21a. The switch unit 22b includes an NPN transistor 22ba, an input resistor 22bb, and a resistor 22bc provided between the base and the emitter. The NPN transistor 22ba is turned on / off based on the output of the PWM output device 21b, whereby the output of the buffer 22a. A voltage is input to the LPF 23.

これにより、LPF23で電圧制御部22の出力から高周波のノイズ成分が除去されたのち、そのノイズ成分除去後の信号がAMP24に入力される。これにより、所望の音程および音圧の発音を行わせるための電流がAMP24からスピーカ3に供給され、スピーカ3からその音程および音圧の発音が行われる。   Thus, after the high frequency noise component is removed from the output of the voltage control unit 22 by the LPF 23, the signal after the noise component removal is input to the AMP 24. As a result, a current for generating a desired pitch and sound pressure is supplied from the AMP 24 to the speaker 3, and the pitch and sound pressure are generated from the speaker 3.

次に、発音制御処理、つまり音程可変制御処理および音圧可変制御処理について説明する。発音制御処理のうち音程可変制御処理が上記した音程可変制御部21dにて実行され、音圧可変制御処理が音圧可変制御部21cにて実行される。   Next, the sound generation control process, that is, the pitch variable control process and the sound pressure variable control process will be described. Of the sound generation control processes, the pitch variable control process is executed by the above-described pitch variable control part 21d, and the sound pressure variable control process is executed by the sound pressure variable control part 21c.

図3および図4は、音程可変制御部21dが音程可変制御処理として実行するタイマ制御ルーチンの詳細を示したフローチャートである。図3に示すタイマ制御ルーチンは、キャリア周期毎に実行される。本ルーチンの実行毎にキャリア周期が更新とされることから、本ルーチンの制御周期は更新されるキャリア周期に対応して変動する。例えば、キャリア周波数(=1/キャリア周期)が15.626〜23.4375kHzで変動し、本ルーチンの制御周期もそれに対応して変動する。図4に示すタイマ制御ルーチンの制御周期は固定周期としてある。例えば、本ルーチンの制御周期は1/41.67kHzの固定周期に設定してある。また、図5は、音圧可変制御部21cが実行するタイマ制御ルーチンの詳細を示したフローチャートである。この図に示すタイマ制御ルーチンの制御周期も固定周期としてある。例えば、本ルーチンの制御周期は1/50Hzの固定周期にしてある。この制御周期は、音程可変制御に用いている制御周期と比較して長いが、音圧については急激に変化させる必要がないため、このような長い周期にしてある。   3 and 4 are flowcharts showing details of a timer control routine executed by the pitch variable control unit 21d as a pitch variable control process. The timer control routine shown in FIG. 3 is executed for each carrier cycle. Since the carrier cycle is updated every time this routine is executed, the control cycle of this routine varies corresponding to the updated carrier cycle. For example, the carrier frequency (= 1 / carrier cycle) varies between 15.626 and 23.4375 kHz, and the control cycle of this routine also varies correspondingly. The control cycle of the timer control routine shown in FIG. 4 is a fixed cycle. For example, the control cycle of this routine is set to a fixed cycle of 1 / 41.67 kHz. FIG. 5 is a flowchart showing details of a timer control routine executed by the sound pressure variable control unit 21c. The control cycle of the timer control routine shown in this figure is also a fixed cycle. For example, the control cycle of this routine is a fixed cycle of 1/50 Hz. Although this control cycle is longer than the control cycle used for the variable pitch control, it is not necessary to change the sound pressure abruptly.

まず、音程可変制御部21dが実行する2つのタイマ制御ルーチンについて説明する。図3に示すように、ステップ100では、車速から音程アップ量に相当するキャリア周波数を換算する。音程アップ量は、予め車速に対するキャリア周波数(音程アップ量)の関係を示したテーブルをマイコン21に記憶しておき、そのテーブルを用いて、検出された車速に対応するキャリア周波数を取得することにより求めている。   First, two timer control routines executed by the pitch variable control unit 21d will be described. As shown in FIG. 3, in step 100, the carrier frequency corresponding to the pitch increase amount is converted from the vehicle speed. For the pitch up amount, a table showing the relationship of the carrier frequency (pitch up amount) with respect to the vehicle speed is stored in the microcomputer 21 in advance, and the carrier frequency corresponding to the detected vehicle speed is obtained using the table. Looking for.

続いて、ステップ110では、発音するPWMデータの読み出しを行う。PWMデータの読み出しは、マイコン21のメモリに格納したPCMデータを本ルーチンの制御周期毎に読み出すことにより行われる。例えばPCMデータは、8bitデータとして記憶されており、このPCMデータを制御周期毎に順次読み出している。読み出した値は、その制御周期でのPWM値となる。   Subsequently, in step 110, the PWM data to be generated is read. The PWM data is read by reading the PCM data stored in the memory of the microcomputer 21 at every control cycle of this routine. For example, PCM data is stored as 8-bit data, and the PCM data is sequentially read for each control period. The read value becomes a PWM value in the control cycle.

そして、ステップ120では、このPWM値をPWMデータとして発音データバッファに格納する。すなわち、PWMデータの読み出しは、本ルーチンの制御周期毎、つまりキャリア周期毎に実行されることになる。そして、ステップ100で求められたキャリア周期は、音程アップ量に対応する時間に設定されていることから、そのキャリア周期毎にPWM値を順次読み出して発音データバッファに記憶すれば、発音データバッファに記憶されたPWM値はキャリア周期毎に更新されることになるため、音程変化に対応して変化した値になる。   In step 120, the PWM value is stored as PWM data in the sound generation data buffer. That is, the PWM data is read out every control cycle of this routine, that is, every carrier cycle. Since the carrier period obtained in step 100 is set to a time corresponding to the pitch-up amount, if the PWM value is sequentially read and stored in the sounding data buffer for each carrier period, the sounding data buffer Since the stored PWM value is updated every carrier period, the value is changed in accordance with the change in pitch.

この後、ステップ130では、現在のキャリア周期をステップ100で演算されたキャリア周期に更新する。このとき更新されたキャリア周期が次回の制御周期の際にキャリア周期として用いられる。このようにして、図3に示すタイマ制御ルーチンが実行される。   Thereafter, in step 130, the current carrier cycle is updated to the carrier cycle calculated in step 100. At this time, the updated carrier period is used as the carrier period in the next control period. In this way, the timer control routine shown in FIG. 3 is executed.

また、図4に示すタイマ制御ルーチンではPWM値のリサンプリングを行う。具体的には、上記した固定周期の制御周期をリサンプリング周期として、そのリサンプリング周期毎にステップ200、210の各処理を実行する。まず、ステップ200では、発音データバッファからPWM値を読み出す。すなわち、上記した図3のステップ120において発音データバッファにPWM値を記憶してあるため、この記憶されているPWM値を読み出す。このときのPWM値は、既に音程変化に対応して変化した値となっている。そして、図4に示すルーチンの制御周期が図3に示すルーチンの制御周期よりも短い時間に設定されていることから、図3に示すルーチンにて記憶されるPWM値を、それよりも細かい制御周期で読み出すことができる。そして、ステップ210では、ステップ200で読み出したPWM値をPWM出力器21bにセットし、発音出力として出力する。このようにして、図4に示すタイマ制御ルーチンが実行される。以上により、音程可変制御部21dが実行する2つのタイマ制御ルーチンが完了する。   In the timer control routine shown in FIG. 4, the PWM value is resampled. Specifically, the processing of steps 200 and 210 is executed for each resampling cycle, with the above-described fixed cycle control cycle as the resampling cycle. First, in step 200, the PWM value is read from the sound generation data buffer. That is, since the PWM value is stored in the sound generation data buffer in step 120 of FIG. 3, the stored PWM value is read out. The PWM value at this time has already changed in response to the pitch change. Since the control cycle of the routine shown in FIG. 4 is set to a time shorter than the control cycle of the routine shown in FIG. 3, the PWM value stored in the routine shown in FIG. It can be read out periodically. In step 210, the PWM value read in step 200 is set in the PWM output device 21b and output as a sound output. In this way, the timer control routine shown in FIG. 4 is executed. Thus, the two timer control routines executed by the pitch variable control unit 21d are completed.

続いて、音圧可変制御部21cが音圧可変制御処理として実行するタイマ制御ルーチンについて説明する。まず、ステップ300では、アクセル開度から音圧アップ量に相当するDAC量、つまりDAC21aから出力する制御信号の出力値、例えば図2に示す構成であれば出力する電圧値を換算する。DAC量(音圧アップ量)は、予めアクセル開度に対するDAC量の関係を示したテーブルをマイコンに記憶しておき、そのテーブルを用いて、検出されたアクセル開度に対応するDAC量を取得することにより求めている。そして、ステップ310では、DAC21aからステップ300で取得したDAC量に対応する制御信号を出力する。これにより、電圧制御部22にて、PWM出力器21bから出力されるPWM出力をDAC21aの制御信号に応じた電圧レベルに変化させることができる。これにより、スピーカ3での発音の音圧をアクセル開度に対応して変化させることが可能となる。このようにして、図5に示すタイマ制御ルーチンが実行され、音圧可変制御部21cが実行するタイマ制御ルーチンが完了する。   Next, a timer control routine executed by the sound pressure variable control unit 21c as the sound pressure variable control process will be described. First, in step 300, the DAC amount corresponding to the sound pressure increase amount from the accelerator opening, that is, the output value of the control signal output from the DAC 21a, for example, the output voltage value in the configuration shown in FIG. For the DAC amount (sound pressure increase amount), a table indicating the relationship of the DAC amount to the accelerator opening is stored in advance in the microcomputer, and the DAC amount corresponding to the detected accelerator opening is obtained using the table. By seeking. In step 310, a control signal corresponding to the DAC amount acquired in step 300 from the DAC 21a is output. Accordingly, the voltage control unit 22 can change the PWM output output from the PWM output device 21b to a voltage level corresponding to the control signal of the DAC 21a. Thereby, the sound pressure of the sound produced by the speaker 3 can be changed corresponding to the accelerator opening. In this way, the timer control routine shown in FIG. 5 is executed, and the timer control routine executed by the sound pressure variable control unit 21c is completed.

以上のようにして、発音制御処理、つまり音程可変制御および音圧可変制御が行われる。このような手法によって発音制御処理を実行する場合、以下の効果を得ることができる。この効果について、図6を参照して説明する。   As described above, the sound generation control process, that is, the pitch variable control and the sound pressure variable control are performed. When the sound generation control process is executed by such a method, the following effects can be obtained. This effect will be described with reference to FIG.

図6は、音程可変制御に基づくPWM出力波形の生成の様子を示した図であり、PCMデータ等で記憶された発音データ、発音データバッファ格納値(格納されたPWM値)、PWM出力値(出力されるPWM値)を示している。   FIG. 6 is a diagram showing how the PWM output waveform is generated based on the pitch variable control. The sounding data stored as PCM data, the sounding data buffer stored value (stored PWM value), the PWM output value ( PWM value to be output).

図6(a)は、音程100%、つまり音程アップ量が0%のときの様子を示している。図6(a)に示すPCMデータ(発音データ)がキャリア周期毎に読み出され、そのデータが発音データバッファに格納される。このとき、音程100%で、音程アップが無いため、キャリア周期は64μs(キャリア周波数15.625kHz)となる。そして、発音データバッファからPWM値の読み出しは、固定周期のリサンプリング周期毎に実行され、リサンプリング周期24μs(リサンプリング周波数41.67kHz)で発音データバッファに記憶されているPWM値を読み出す。これにより、PCMデータの読み出しよりも短い時間のリサンプリング周期によって発音データバッファからの読み出しを行うことができる。   FIG. 6A shows a state where the pitch is 100%, that is, the pitch-up amount is 0%. The PCM data (sound generation data) shown in FIG. 6A is read for each carrier cycle, and the data is stored in the sound generation data buffer. At this time, since the pitch is 100% and there is no pitch increase, the carrier period is 64 μs (carrier frequency 15.625 kHz). Then, the PWM value is read from the sounding data buffer at every fixed resampling period, and the PWM value stored in the sounding data buffer is read at a resampling period of 24 μs (resampling frequency 41.67 kHz). As a result, it is possible to read from the sound generation data buffer with a resampling period that is shorter than the reading of the PCM data.

図6(b)は、音程120%、つまり音程アップ量が20%のときの様子を示している。この場合にも、PCMデータがキャリア周期毎に読み出され、そのデータが発音データバッファに格納される。このとき、音程120%で、音程アップが20%であるため、キャリア周期は53.33μs(キャリア周波数18.75kHz)となる。そして、発音データバッファからPWM値の読み出しは、固定周期のリサンプリング周期毎に実行され、リサンプリング周期24μs(リサンプリング周波数41.67kHz)で発音データバッファに記憶されているPWM値を読み出す。   FIG. 6B shows a state where the pitch is 120%, that is, the pitch-up amount is 20%. Also in this case, the PCM data is read for each carrier period, and the data is stored in the sound generation data buffer. At this time, since the pitch is 120% and the pitch increase is 20%, the carrier period is 53.33 μs (carrier frequency 18.75 kHz). Then, the PWM value is read from the sounding data buffer at every fixed resampling period, and the PWM value stored in the sounding data buffer is read at a resampling period of 24 μs (resampling frequency 41.67 kHz).

図6(c)は、音程150%、つまり音程アップ量が50%のときの様子を示している。この場合にも、PCMデータがキャリア周期毎に読み出され、そのデータが発音データバッファに格納される。このとき、音程150%で、音程アップが50%であるため、キャリア周期は42.67μs(キャリア周波数23.4375kHz)となる。そして、発音データバッファからPWM値の読み出しは、固定周期のリサンプリング周期毎に実行され、リサンプリング周期24μs(リサンプリング周波数41.67kHz)で発音データバッファに記憶されているPWM値を読み出す。   FIG. 6C shows a state in which the pitch is 150%, that is, the pitch increase amount is 50%. Also in this case, the PCM data is read for each carrier period, and the data is stored in the sound generation data buffer. At this time, since the pitch is 150% and the pitch increase is 50%, the carrier period is 42.67 μs (carrier frequency 23.4375 kHz). Then, the PWM value is read from the sounding data buffer at every fixed resampling period, and the PWM value stored in the sounding data buffer is read at a resampling period of 24 μs (resampling frequency 41.67 kHz).

このように、PCMデータを読み出して発音データバッファに記憶し、この発音データバッファに記憶されたPCMデータを短いリサンプリング周期毎に読み出すことで音程アップ量に応じたPWM値を生成している。したがって、音程100%(音程アップ量=0%)のときも、音程120%、150%(音程アップ量=20%、50%)のときにも、PWM分解能を変化させることなく、PWM値を設定することが可能となる。   In this way, the PCM data is read out and stored in the sound generation data buffer, and the PCM data stored in the sound generation data buffer is read out every short resampling period, thereby generating a PWM value corresponding to the pitch increase amount. Therefore, when the pitch is 100% (pitch increase amount = 0%), and when the pitch is 120%, 150% (pitch increase amount = 20%, 50%), the PWM value is changed without changing the PWM resolution. It becomes possible to set.

図7(a)、(b)は、本実施形態の音圧可変制御において音程アップしないとき(基準音程時)と音程アップするときのPWM波形と可変幅との関係を示した図であり、図7(c)、(d)は、図7(a)、(b)の部分拡大図である。実際のPWM方式では、PWM分解能が8bit(256段階)のように、高い分解能で制御されるが、ここでは説明を簡略化するために、PWM分解能を5bit(32段階)で表現してあり、また音圧についても一定の所定音圧とされている場合として示してある。また、音程アップ量としては、基準音程時に対して50%アップする場合を示してある。   FIGS. 7A and 7B are diagrams showing the relationship between the PWM waveform and the variable width when the pitch is not increased (during the reference pitch) and when the pitch is increased in the sound pressure variable control of the present embodiment. 7C and 7D are partial enlarged views of FIGS. 7A and 7B. In the actual PWM system, the PWM resolution is controlled at a high resolution such as 8 bits (256 levels), but here, for the sake of simplicity of explanation, the PWM resolution is expressed by 5 bits (32 levels). Further, the sound pressure is also shown as a case where the sound pressure is constant. In addition, as the pitch up amount, a case where the pitch is increased by 50% with respect to the reference pitch is shown.

本実施形態では、基準音程時にPCMデータを読み出すときのキャリア周波数を15.625kHz、リサンプリングの周波数を41.67kHzとしているため、リサンプリングの周波数がキャリア周波数の約2.7倍となる。したがって、基準音程時のときには、キャリア周波数が15.625kHzに設定されてPCMデータからの読み出しが行われ、それをリサンプリングすると同じPWM値のデータの約3周期分続けて読み出されることになる。また、音程アップ量が50%とされるときには、PCMデータを読み出すときのキャリア周波数が23.4375kHzに設定され、リサンプリングの周波数が41.67kHzであるため、リサンプリングの周波数がキャリア周波数の約1.8倍となる。したがって、基準音程時のときには、キャリア周波数が15.625kHzに設定されてPCMデータからの読み出しが行われ、それをリサンプリングすると同じPWM値のデータの約2周期分続けて読み出されることになる。   In the present embodiment, the carrier frequency for reading PCM data at the reference pitch is 15.625 kHz, and the resampling frequency is 41.67 kHz. Therefore, the resampling frequency is about 2.7 times the carrier frequency. Therefore, at the time of the reference pitch, the carrier frequency is set to 15.625 kHz and reading from the PCM data is performed, and when it is resampled, data of the same PWM value is continuously read for about three cycles. When the pitch increase amount is 50%, the carrier frequency for reading PCM data is set to 23.4375 kHz, and the resampling frequency is 41.67 kHz. Therefore, the resampling frequency is about the carrier frequency. 1.8 times. Therefore, at the time of the reference pitch, the carrier frequency is set to 15.625 kHz and reading from the PCM data is performed, and when it is resampled, data of the same PWM value is continuously read for about two cycles.

このように、音程アップにより、PCMデータを読み出すときのキャリア周期が変わるが、PWM値のデータを読み込むときのリサンプリング周期は固定であるため、単に発音データバッファに格納されたPWM値を読み出せば良く、PWM分解能も5bit(32段階)のままで済む。また、キャリア周期についてもPWMのLSBに合わせた値に設定しなくても良いため、キャリア周期を正確に設定することも可能となる。したがって、これらに基づく発音音質の低下を防止できる。   In this way, the carrier period when PCM data is read changes due to the pitch increase, but the resampling period when PWM value data is read is fixed, so the PWM value stored in the sound data buffer can be simply read. The PWM resolution may be 5 bits (32 steps). Also, since the carrier cycle does not have to be set to a value that matches the PWM LSB, the carrier cycle can be set accurately. Therefore, it is possible to prevent a decrease in sound quality based on these.

また、図6中には反映していないが、音圧アップ量についても、アクセル開度に対する音圧量(DAC量)の関係を示したテーブルを用いて換算するだけで設定できる。したがって、従来のようにPCMデータにPWM分解能比を乗算したり(図9のステップ430)、PWMデータに対して音圧アップ量(PWM倍率)を乗算するなどの処理を全く行わなくても、車速およびアクセル開度に応じた音程可変制御や音圧可変制御を実行することができる。このため、マイコン21での処理負荷を小さくすることが可能となり、制御処理周期中に確実に処理が完了するようにでき、発音音質が低下することを防止することが可能となる。   Although not reflected in FIG. 6, the sound pressure increase amount can also be set simply by conversion using a table showing the relationship of the sound pressure amount (DAC amount) to the accelerator opening. Therefore, even if the processing such as multiplying the PCM data by the PWM resolution ratio (step 430 in FIG. 9) or multiplying the PWM data by the sound pressure increase amount (PWM magnification) as in the prior art is not performed. It is possible to execute variable pitch control and variable sound pressure control according to the vehicle speed and the accelerator opening. For this reason, the processing load on the microcomputer 21 can be reduced, the processing can be surely completed during the control processing cycle, and the sound quality can be prevented from being deteriorated.

参考として、図8に、従来のPWM方式で音程可変制御行ったときのPWM出力波形の生成の様子を示し、PCMデータ等で記憶された発音データとPWM出力値(出力されるPWM値)を示す。   For reference, FIG. 8 shows how a PWM output waveform is generated when variable pitch control is performed using the conventional PWM method. The sound output data and PWM output values (output PWM values) stored as PCM data and the like are shown. Show.

図8(a)は、音程100%、つまり音程アップ量が0%のときの様子を示している。図(a)に示すように、音程100%のときには、キャリア周期がLSBの32倍に設定され、PWM分解能が5bit(32段階)のままであるため、本実施形態と同様に正確なPWM値を設定できる。一方、図8(b)、(c)は、音程120%、150%(音程アップ量20%、50%)のときの様子を示している。これらの場合には、車速から分解能比を換算すると共に、PCMデータに対してPWM分解能比を乗算してPWMデータを更新するようにしているため、分解能が低下すると共にキャリア周期も正確に設定されなくなる。このため、図中ドットで示した出力したい理想的なPWM出力値に対して、実際に出力されるPWM出力値の値にズレが生じる。このため、発音音質に影響が出る。   FIG. 8A shows a state where the pitch is 100%, that is, the pitch-up amount is 0%. As shown in FIG. 5A, when the pitch is 100%, the carrier period is set to 32 times the LSB, and the PWM resolution remains at 5 bits (32 steps). Can be set. On the other hand, FIGS. 8B and 8C show a state in which the pitch is 120% and 150% (pitch increase amount is 20% and 50%). In these cases, since the resolution ratio is converted from the vehicle speed and the PWM data is updated by multiplying the PCM data by the PWM resolution ratio, the resolution is lowered and the carrier period is also accurately set. Disappear. For this reason, a deviation occurs in the value of the actually output PWM output value with respect to the ideal PWM output value to be output indicated by dots in the figure. This affects the sound quality of pronunciation.

これに対して、図6に示したように、本願の音程可変制御によれば、図中ドットで示した出力したい理想的なPWM出力値に対して、実際に出力されるPWM出力値の値が一致する。このため、発音音質が低下することを防止することが可能となる。   On the other hand, as shown in FIG. 6, according to the pitch variable control of the present application, the value of the PWM output value that is actually output with respect to the ideal PWM output value that is desired to be output indicated by the dots in the figure. Match. For this reason, it is possible to prevent the sound quality from being deteriorated.

(他の実施形態)
上記実施形態では、アクセル開度に応じて音圧を変化させ、車速に応じて音程を変化させるようにしているが、これらは単なる一例を示したに過ぎない。例えば、車速もしくはアクセル開度に応じて音圧と発音のピッチの両方を変化させるようにしても良い。この場合、車速もしくはアクセル開度が大きくなるほど、音圧アップ量や音程アップ量を大きくすることができる。
(Other embodiments)
In the above embodiment, the sound pressure is changed according to the accelerator opening, and the pitch is changed according to the vehicle speed. However, these are merely examples. For example, both the sound pressure and the sound generation pitch may be changed according to the vehicle speed or the accelerator opening. In this case, as the vehicle speed or accelerator opening increases, the sound pressure increase amount and the pitch increase amount can be increased.

また、マイコン21では、制御信号出力部としてDAC21aを用い、DAC21aから音圧を変化させるためのDAC出力を発生させることで電圧制御部22の電圧制御を行うようにしているが、PWM制御器を用いて電圧制御部22の電圧制御を行うようにしても良い。PWM制御器を用いる場合において、車速やアクセル開度に応じて音圧を変化させるときには、例えば、車速やアクセル開度に応じてPWM出力のオンオフのデューティ比を変化させると共にPWM出力のサンプリング周期を変化させるようにすれば良い。   In the microcomputer 21, the DAC 21a is used as the control signal output unit, and the voltage control of the voltage control unit 22 is performed by generating a DAC output for changing the sound pressure from the DAC 21a. The voltage control unit 22 may be used to control the voltage. When using the PWM controller and changing the sound pressure according to the vehicle speed or the accelerator opening, for example, changing the on / off duty ratio of the PWM output according to the vehicle speed or the accelerator opening, and changing the sampling period of the PWM output Change it.

1a 車速センサ
1b アクセル開度センサ
2 車両接近通報装置
3 スピーカ
21 マイコン
21a DAC
21b PWM出力器
21c 音圧可変制御部
21d 音程可変制御部
22 電圧制御部
23 LPF
24 AMP
DESCRIPTION OF SYMBOLS 1a Vehicle speed sensor 1b Accelerator opening sensor 2 Vehicle approach notification apparatus 3 Speaker 21 Microcomputer 21a DAC
21b PWM output device 21c sound pressure variable control unit 21d pitch variable control unit 22 voltage control unit 23 LPF
24 AMP

Claims (3)

車両に搭載された発音体(3)からの発音の音程を制御することで、前記車両の接近を通報する車両接近通報装置において、
車速と音程に対応するキャリア周期との関係および発音データを記憶する手段、前記車速を示す検知信号を入力すると共に、該検知信号が示す車速に対応するキャリア周期を記憶された車速と音程に対応するキャリア周期との関係から取得したのち、取得したキャリア周期毎に前記発音データを読み出し、該読み出した前記発音データをPWM値として発音データバッファに格納する処理を実行する手段(100〜130)、および、固定周期とされたリサンプリング周期毎に、前記発音データバッファに格納されたPWM値を読み出すと共に前記PWM値をPWM出力として出力させる処理を実行する手段(200、210)と、前記PWM出力を出力するPWM出力器(21b)と、を有するマイコン(21)と、
前記マイコン(21)から発生させられたPWM出力と対応する電流を前記発音体(3)に流すことで、前記発音体(3)にて前記車速と対応する音程の発音を行わせるアンプ(24)とを備えていることを特徴とする車両接近通報装置。
In the vehicle approach notification device for reporting the approach of the vehicle by controlling the pitch of the sound from the sound generator (3) mounted on the vehicle,
The means for storing the relationship between the vehicle speed and the carrier cycle corresponding to the pitch and the sound generation data, the detection signal indicating the vehicle speed being input, and the carrier cycle corresponding to the vehicle speed indicated by the detection signal corresponding to the stored vehicle speed and pitch Means (100 to 130) for executing the process of reading the sounding data for each acquired carrier period and storing the read sounding data in the sounding data buffer as a PWM value after acquiring from the relationship with the carrier period And means (200, 210) for executing a process of reading out the PWM value stored in the sound generation data buffer and outputting the PWM value as a PWM output at every re-sampling period set as a fixed period, and the PWM output A microcomputer (21) having a PWM output device (21b) for outputting
An amplifier (24) which causes the sounding body (3) to generate a sound corresponding to the vehicle speed by causing a current corresponding to the PWM output generated from the microcomputer (21) to flow through the sounding body (3). And a vehicle approach notification device.
前記マイコン(21)には、アクセル開度に対応付けて、該アクセル開度と音圧との関係を記憶する手段と、前記アクセル開度を示す検知信号を入力すると共に、一定周期毎に該検知信号が示すアクセル開度に対応する音圧量を前記アクセル開度と前記音圧量との関係から取得したのち、該音圧量に対応する制御信号を出力させる処理を実行する手段(300、310)と、前記制御信号を出力する制御信号出力部(21a)と、が備えられ、
当該マイコン(21)から発生させられた前記制御信号に基づいて、前記PWM出力器(21b)からのPWM出力の電圧レベルを調整して出力する電圧制御部(22)を有し、
前記アンプ(24)は、前記電圧制御部(22)にて電圧レベルが調整された後の前記PWM出力に基づいて前記発音体(3)による発音を行わせることを特徴とする請求項1に記載の車両接近通報装置。
The microcomputer (21) is input with means for storing the relationship between the accelerator opening and the sound pressure in association with the accelerator opening, and a detection signal indicating the accelerator opening, and at regular intervals. Means (300) for obtaining a sound pressure amount corresponding to the accelerator opening degree indicated by the detection signal from the relationship between the accelerator opening degree and the sound pressure amount and outputting a control signal corresponding to the sound pressure amount (300) 310) and a control signal output unit (21a) for outputting the control signal,
Based on the control signal generated from the microcomputer (21), a voltage control unit (22) for adjusting and outputting the voltage level of the PWM output from the PWM output device (21b),
The amplifier (24) causes the sounding body (3) to perform sound generation based on the PWM output after the voltage level is adjusted by the voltage control unit (22). The vehicle approach notification device described.
前記キャリア周期よりも前記リサンプリング周期の方が短くされていることを特徴とする請求項1または2に記載の車両接近通報装置。   The vehicle approach notification device according to claim 1, wherein the resampling period is shorter than the carrier period.
JP2011145456A 2011-06-30 2011-06-30 Vehicle approach notification device Active JP5533795B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011145456A JP5533795B2 (en) 2011-06-30 2011-06-30 Vehicle approach notification device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011145456A JP5533795B2 (en) 2011-06-30 2011-06-30 Vehicle approach notification device

Publications (2)

Publication Number Publication Date
JP2013010465A JP2013010465A (en) 2013-01-17
JP5533795B2 true JP5533795B2 (en) 2014-06-25

Family

ID=47684751

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011145456A Active JP5533795B2 (en) 2011-06-30 2011-06-30 Vehicle approach notification device

Country Status (1)

Country Link
JP (1) JP5533795B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112013007075B4 (en) 2013-05-16 2020-10-08 Anden Co., Ltd. Vehicle proximity alarm device
CN110285331A (en) * 2019-06-20 2019-09-27 天津科技大学 A kind of natural gas line safety monitoring velocity of sound compensation technique based on resampling methods
CN110920513B (en) * 2019-11-19 2021-03-26 清华大学苏州汽车研究院(相城) Variable time scale implementation method of pedestrian warning tone of electric automobile

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4489659B2 (en) * 2005-08-04 2010-06-23 太平洋精工株式会社 Horn system for automobile
JP4468982B2 (en) * 2007-10-24 2010-05-26 三菱電機株式会社 In-vehicle buzzer sound pressure controller

Also Published As

Publication number Publication date
JP2013010465A (en) 2013-01-17

Similar Documents

Publication Publication Date Title
CN104395955B (en) Active type denoising device, the active type noise reduction system using it, mobile body device and active type noise-reduction method
WO2014184827A1 (en) Vehicle approach alert device
US9073477B2 (en) Vehicle approach notification device
US20130038435A1 (en) Vehicle running warning device
JP5533795B2 (en) Vehicle approach notification device
CN111976591B (en) AVAS audio control device of pedestrian warning sound system of electric automobile
JP6288053B2 (en) Vehicle approach notification device
JP5531939B2 (en) Vehicle approach notification device
JP5609751B2 (en) Vehicle approach warning device
AU2012397669B2 (en) Power conversion device and power conversion method
WO2014184828A1 (en) Vehicle approach alert device
JP5678877B2 (en) Vehicle approach notification device
JP5573766B2 (en) Vehicle approach warning device
JP5522081B2 (en) Vehicle approach warning device
JP5754403B2 (en) Vehicle approach notification device
JP4089394B2 (en) Electric power steering device
JP5678878B2 (en) Vehicle approach notification device
JP5617751B2 (en) Vehicle approach warning device
KR20180045672A (en) Vehicle type virtual engine sound system for modulation of amplitude without the amplifier
JP5704022B2 (en) Vehicle approach notification device
JP5716651B2 (en) Vehicle approach notification device
JP6203482B2 (en) Vehicle approach notification device
JP2007081845A (en) Sinusoidal signal generator
JP2005020831A (en) Driving force controller at level difference passing time by electric motor vehicle
CN114506267B (en) Control method and system of vehicle atmosphere lamp and vehicle

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130913

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140317

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: 20140401

R150 Certificate of patent or registration of utility model

Ref document number: 5533795

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140414

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250