You are currently viewing a new version of our website. To view the old version click .
Applied Sciences
  • Article
  • Open Access

26 November 2024

Design and Implementation of the Python-Driven Digital Horn System: A Novel Approach for Electric Vehicle Sound Systems

,
and
1
Seger Ses ve Elektrikli Gereçler San. A.Ş., 16110 Bursa, Türkiye
2
Power Electronics Center of Electrical and Electronics Engineering Research Laboratories, Bursa Technical University, Yıldırım, 16310 Bursa, Türkiye
*
Author to whom correspondence should be addressed.
This article belongs to the Special Issue Application of New Technology and New Ideas in Intelligent Transportation System

Abstract

Electric and hybrid vehicles are known for their significant reduction in road noise. However, concerns have emerged regarding their silent operation, potentially increasing risks for other road users. To mitigate this, the Acoustic Vehicle Alert System (AVAS) has been mandated by regulations such as R138 by UNECE in the USA and Europe. This regulation dictates the generation of sound in electric vehicles of categories M and N1 during normal, reverse, and forward motion without the internal combustion engine engaged. Compliance involves meeting specific sound requirements based on vehicle mode and condition. This paper introduces a Python-based approach to designing digital horn sounds, leveraging music theory and signal processing techniques to replace traditional mechanical horns in electric vehicles equipped with AVAS devices. The aim is to offer a practical and efficient means of generating digital horn sounds using this software. The software includes an application capable of producing and customizing horn sounds, with the HornSoundGeneratorGUI class providing a user-friendly interface built with the Tkinter library. To validate the digital horn produced sounds by the software and ensure compliance with AVAS regulations, comprehensive electrical and acoustic tests were conducted in a fully equipped quality laboratory. The results demonstrated that the sound levels achieved met the required 105–107 dB/2 m standard specified by the regulation.

1. Introduction

Cities face significant acoustic pollution primarily stemming from traffic, affecting a large portion of the population [1]. The widespread adoption of electric and hybrid vehicles globally, attributed to their environmental benefits such as reduced carbon emissions [2], has notably reduced environmental noise due to their quieter operation, especially evident at lower speeds compared to traditional gasoline-powered vehicles [3]. However, the absence of engine noise, once considered advantageous, now poses challenges, particularly at speeds below 10 km/h, where the disparity in noise levels becomes apparent [4]. This absence not only contributes to an increase in accidents involving silently operating electric or hybrid vehicles but also obscures the limited noise they emit, presenting risks to pedestrians who rely on auditory cues [5].
Acknowledging these risks, efforts have been made to enhance the detectability of electric and hybrid vehicles [6]. Sekine et al. found in their study involving 40 participants, including 15 visually impaired individuals, that the majority were unable to detect the presence of silent vehicles traveling below 10 km/h [7]. To address these safety concerns, Japan introduced the initial guidelines for silent vehicles in 2011 [8]. These guidelines underwent revisions and updates, ultimately leading to the publication of the CEPE No. 138 regulation in 2017, coinciding with the development of various warning systems [9]. This regulation mandates the installation of an Acoustic Vehicle Alert System (AVAS), which generates sound to alert pedestrians of approaching vehicles within the 0–20 km/h speed range, with specific criteria outlining sound levels and frequency ranges.
The preference for natural and clear sounds stems from their pleasing acoustic qualities. However, these sounds often do not align with vehicle characteristics and require customization. It is advisable to construct the sound concept based on layout-oriented sound components, allowing for adjustments in the driving sound frequency based on the current vehicle or engine speed. In the development of Acoustic Vehicle Alert Systems (AVAS), appealing sounds need to be crafted and integrated into an in-car application. This necessitates finding a suitable software and hardware solution, such as an Electronic Control Unit (ECU) equipped with adequate resources and interfaces like CAN-bus and audio output.
Once the sound design phase is finalized, the desired sound profile is integrated into the in-car application, and appropriate adjustments are made within the vehicle. The primary purpose of the designed system is to enable real-time control of driving sound, reverse gear sound, and horn sound based on control parameters communicated via the CAN-bus. These parameters, transmitted from the vehicle through the CAN-bus protocol, include ignition status, driving mode (e.g., drive, park, reverse), and speed information. The ECU processes these inputs using a microcontroller (MCU), generates the corresponding sound file, and sends it to the amplifier. The amplifier then boosts the sound and projects it through a speaker. Additionally, while generating the driving sound, the system employs a pitch shift technique to incorporate acceleration and deceleration effects based on the vehicle’s speed.
The flexibility in the AVAS development process allows for additional functionalities, such as modifying the sound during vehicle startup, system initialization, or when the battery level reaches a critical threshold. By utilizing such parameters, the ECU dynamically adjusts the sound settings to reflect the vehicle’s condition, and the sound is emitted through external and/or internal speakers [10].
The implementation of Acoustic Vehicle Alert Systems (AVAS) in electric and hybrid vehicles serves not only to alert pedestrians and other road users of impending danger but also to provide clear indications of the vehicle’s driving status and its approach, presence, and departure [10]. Consequently, the artificial engine sound’s frequency should dynamically shift in correlation with the vehicle’s speed, replicating the characteristic change in noise levels associated with speed. However, the emitted sound should maintain a minimum level to ensure audibility, particularly in high-noise environments. According to ISO 10844 standards, this minimum level is defined as 50 dBA at 10 km/h and 56 dBA at 20 km/h, measured 2 m from the vehicle’s longitudinal center line to the microphone positions [9]. Moreover, the sound emitted by a vehicle equipped with AVAS should not exceed 75 dBA under these test conditions.
Research on AVAS and warning sounds has explored various angles, including strategies to minimize noise pollution through directional guidance and assessing the environmental impact of generated sounds [11,12,13]. Redirecting warning sounds has been investigated as a means to control noise pollution, with techniques such as directing sound propagation towards the vehicle’s direction of movement or pedestrian areas showing promise in reducing audibility while lowering noise levels. Several methods, including highly directional parametric speakers, low-cost speakers, and speaker arrays capable of targeted sound direction, have been proposed [14,15,16,17,18]. However, the adoption of more sophisticated sound direction solutions has been hindered by high production and maintenance costs.
Another consideration is the susceptibility of sensitive speakers to adverse environmental conditions like wind, dust, water, and temperature fluctuations [19]. To address this, conventional speakers can be replaced with inertial actuators, which vibrate attached structures to emit sound. Actuator-based systems can match the directivity performance of traditional speaker arrays without requiring structural modifications, as they can be connected to existing vehicle panels. However, systems using actuators may exhibit erratic frequency responses.
The automotive industry’s growing reliance on Electronic Control Units (ECUs) and integrated systems has led vehicle manufacturers to seek more sophisticated warning sounds. Consequently, there is a shift towards employing algorithms capable of generating programmable sound waves to enhance and optimize in-car audio systems.
This paper delves into the development of a graphical user interface (GUI) utilizing the Python-based HornSoundGeneratorGUI class and the Tkinter library. Moreover, it explores the design and testing of warning sounds to ensure compliance with regulations, notably ECE R28 [20]. Through the practical and user-friendly designs facilitated by Python libraries, users can craft distinctive sounds by manipulating fundamental frequencies, harmonic value ranges, and amplitude parameters. The software offers features such as visualizing the frequency spectrum with FFT (Fast Fourier Transform) graphs, audio playback, and saving in WAV (Waveform Audio File Format) format. With its intuitive interface and flexibility in sound design, this software emerges as a valuable tool for individuals seeking to create original horn sounds.
To date, there seems to be a lack of research in the literature specifically focused on the production of digital horn sounds. Additionally, studies examining digital horn sounds generated by AVAS devices are scarce. In current AVAS products with digital horn sounds, sound production is usually managed by sound engineers who apply traditional music theory and mathematical principles. This study presents a new approach, utilizing software with oscillator and equalizer functions to generate digital horn sounds while still following traditional methods. This innovative approach is one of the main contributions of this research.
Section 2 provides a detailed explanation of the proposed structure, operational principles, and the designed interface. Section 3 presents simulation and experimental results concerning the design and validation of sounds with frequency values of 400 and 500 Hz. Finally, Section 4 presents the conclusion and findings of the study.

3. Simulation and Experimental Results

The horn sound utilized in passenger vehicles typically comprises two variants: the thick horn sound (300–400 Hz) and the thin horn sound (400–500 Hz). These are associated with two types of horns: The Disc Horn and the Snail Horn. Disc Horns emit sound in the frequency range of Thick 300–320 Hz and Thin 400–420 Hz, while Snail Horns produce sound in the Thick 380–420 Hz and Thin 480–520 Hz range. Given that Digital Sounds are artificially constructed rather than derived from a natural source and possess an artificial structure, maintaining clarity at low frequencies presents a challenge. Therefore, the product design was inspired by the Snail Horn structure, and the sound structure was devised to mimic this mechanical design.
In traditional horn setups, low and high sounds are emitted by two distinct horns.
Hence, prominent digital sound arranging techniques were employed to replicate this arrangement within a Digital Mono channel sound. As shown in Figure 8, horn sounds were generated as two distinct sounds through the Sound Control Unit program. These sounds are tailored to be 400 Hz for the Low Tone Horn and 500 Hz for the High Tone Horn.
In typical horn setups, high and low sounds are emitted by separate horns. Therefore, advanced digital sound arranging techniques were employed to replicate this arrangement within a Digital Mono channel sound. Horn sounds are generated as two distinct sounds using the SEGER Sound Control Unit program. Specifically, the sounds are tuned to be 400 Hz for the Low Tone Horn and 500 Hz for the High Tone Horn. The results are shown in Figure 10a,b.
Figure 10. The stage of producing sounds for the Sound Unit through the program: (a) creation of 400 Hz horn sound; (b) creation of 500 Hz horn sound.
To mitigate interference during sound production, harmonics at specific frequencies (such as 1500 Hz and 2000 Hz) that coincide with or might clash with the harmonics of 400 Hz and 500 Hz have been attenuated. Given the preference for the deep sound to be predominant in the created sound, the attenuation process was primarily focused on the low-frequency components.
As depicted in Figure 11, when two audio files are combined and transmitted in a single channel without any editing, the resulting signal may exhibit interference at various frequencies. Moreover, the signal in the . w a v file may exceed saturation in certain regions, leading to disruption in the system. To mitigate these issues, a technique called “Channel Mixing” in digital arrangement methods was employed. Additionally, the room opening technique was utilized to impart a stereo effect to the sound within the mono channel.
Figure 11. The 400–500 Merge signal, which is created by combining two signals without editing and Downmixing. This merge signal has undergone various mixing processes, including the Downmixing process.
By segregating the sound into two distinct tones—namely, a low-frequency tone and a high-frequency tone—based on their fundamental frequency values ( t h i c k _ f r e q , t h i n _ f r e q ) , it becomes feasible to edit the two sounds in separate channels using the Downmixing method [23]. Subsequently, these edited sounds can be merged into a single channel, as illustrated in Figure 12 and Figure 13.
Figure 12. Block diagram of the Downmixing Method [23].
Figure 13. Performing Downmixing editing on the audio file using Vectorscope.
In Figure 14a, first of all, adjustments were made in the frequency plane with the help of an EQ Graphic, and notch filters at a rate of 48 dB/oct were applied to the inter-harmonic regions. The aim here is to increase the dynamism of the sound by making the areas that are desired to be heard more distinct, as shown in Figure 14b.
Figure 14. (a) Notch filter applications; (b) simulated result of the notch filter application.
Following the configuration of settings in the Frequency plane within the audio file, adjustments were made to the dB difference between the peaks in the Significant Frequencies and the peak levels in the non-obvious range. This adjustment was carried out using a technique called Compression in Digital Arrangement processes. By employing this process, the dynamic range within the structure was regulated. Furthermore, by rendering the peaks at specific frequencies in the audio file distinguishable from one another, the sound was ensured to evoke a consistent sensation across all systems, as depicted in Figure 15.
Figure 15. Using the compression technique to adjust dynamic range.
In Figure 16, the single-channel audio file resulting from the arrangement operations conducted on the audio file exhibits a structurally smoother profile, effectively resolving the out-clipping problem observed in the Merge state. This arrangement guarantees that the audio file can be played as loudly and cleanly as possible across multiple systems.
Figure 16. “Downmixing Merge” file represents the audio signal after arranging operations, and the “400–500 Merge” file represents the audio signal converted to a single channel without arranging.
Figure 17 displays the results of computer simulations alongside the FFT graph. Furthermore, acoustic and electrical tests were conducted in a fully equipped quality laboratory to corroborate the simulation outcomes. The AVAS device, as illustrated in Figure 18a, was connected to a DC voltage source and a calibrated acoustic test device. In Figure 18b, the placement of the AVAS device and the measurement microphone in the sound-isolated acoustic room is depicted, maintaining a distance of 2 m, as stipulated in the regulation. Measurements were taken from this distance, revealing values ranging from 105 to 118 dB/2 m.
Figure 17. Computer-based simulation of the audio file.
Figure 18. (a) The proposed AVAS test setup, (b) the acoustic room test environment (b), and (c) the real-time FFT graph of the designed sound obtained during experimentation.
In Figure 18c, the FFT graph of the AVAS system utilizing the designed digital horn sound is measured in an anechoic chamber approved by The Scientific and Technical Research Council of Türkiye, National Metrology Institute (TUBİTAK UME). It is evident from this graph that the results obtained from the simulation were also validated experimentally. Furthermore, the designed sound falls within the range specified in the regulation (106.1 dB), indicating successful compliance.
The digital horn sound obtained as a result of this study, which was tested and approved in both the simulation environment and the laboratory, is shared as a Supplementary File under the name “Horn_Sound.wav”. The file named “Horn_Sound.wav” represents the audio output generated by the suggested program in this study, while the file named AVAS_Sound.wav corresponds to the standard AVAS sound.
The audio signal illustrated in Figure 19a exhibits peaks at specific frequencies with a more uniform distribution and a well-balanced tonal structure. This design ensures a cleaner and more effective sound experience, particularly in scenarios where a distinct tone is required, akin to a mechanical horn. Moreover, reduced fluctuation and noise in low-frequency regions enhance the signal’s clarity and purity, minimizing unnecessary frequency interference. The sharpness and prominence of the frequency peaks emphasize the signal’s strengths in certain frequencies, reinforcing its harmonic structure. While the audio signal in Figure 19a benefits from careful digital design, higher dB levels, and controlled characteristics, the signal in Figure 19b demonstrates unnecessary frequency fluctuations at lower dB levels. Consequently, the superior tonal quality and controlled structure of the signal in Figure 19a make it the preferred choice for high-quality horn sound.
Figure 19. (a) FFT output of the digital horn sound signal of the proposed AVAS device; (b) FFT output of the digital horn sound signal of the AVAS device used in one of the other suppliers.
To date, there appears to be no more research in the literature specifically focused on the production of digital horn sounds. Furthermore, studies addressing digital horn sounds generated by AVAS devices are limited. In existing AVAS products featuring digital horn sounds, sound production is typically handled by sound engineers relying on traditional music theory and mathematical principles. This study introduces a novel approach, producing digital horn sounds using software equipped with oscillator and equalizer functions that adhere to traditional methods. This innovative methodology represents one of the key contributions of this study.

4. Conclusions

In traditional systems, three separate devices are required to generate the horn sound, driving sound, and reverse gear sound. This approach increases costs, vehicle volume, and weight while also complicating controllability. In contrast, the proposed system consolidates these three sound functions into a single unit, significantly reducing costs and volume. By utilizing a single ECU, the system simplifies controllability and minimizes cable complexity and power consumption on the vehicle, enhancing overall efficiency and integration. Managing warning sounds, which simulate both horn and engine sounds, through a single device offers several advantages, such as prolonged lifespan, cost-effectiveness, and easy controllability. To realize such a system, the production of digital warning sounds becomes essential.
The digital audio production software recommended in this article effectively serves the desired purpose, providing practicality and quick results with its versatile features and user-friendly interface. As horn sounds inherently possess fundamental frequencies between 300 Hz and 500 Hz, the software can generate sound within the required frequency ranges (300–500 Hz) and amplitude levels (100–107 dB). Additionally, post-production adjustments in dB/frequency can be made on the produced digital sound, and the software facilitates the conversion of sound format (Wav) into a file format (Bin) suitable for the AVAS software, ensuring easy installation.
Moreover, in this study, a theoretical sound synthesis presented via the software can be printed out and uploaded to the AVAS Electronic Control Unit (ECU), subsequently being recorded in real-time in the acoustic measurement laboratory. Successful results were obtained in tests conducted in accordance with Regulation 138 (Reg. 138), demonstrating compliance with the requirements outlined in Regulation 28 (R28). According to R28 requirements, the dB level of a horn should range between 105 dB and 118 dB when measured from a distance of 2 m, with the lower threshold reduced to 100 dB for alarm horns. In the measurements conducted, the horn sound produced by the software was measured at 106.4 dB/2 m.
In this study, the proposed AVAS system and the designed sound files were tested exclusively in a simulation environment and a quality laboratory. Conducting tests in real road conditions is crucial for validating the results and ensuring practical applicability. However, the system has limitations, particularly regarding the cost and durability of the speakers used. Exploring more cost-effective and durable alternatives capable of producing higher sound levels would be beneficial for future research and development efforts.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/app142310977/s1.

Author Contributions

Conceptualization, D.E.; methodology, H.K. and H.T.; software H.K. and H.T.; validation, D.E.; formal analysis, H.K. and H.T.; investigation, H.K., H.T. and D.E.; resources, H.K. and H.T.; data curation, H.K. and H.T.; writing—original draft preparation, H.K. and H.T.; writing—review and editing, D.E.; visualization, H.K. and H.T.; supervision, D.E.; project administration, H.K.; funding acquisition, H.K. and H.T. All authors have read and agreed to the published version of the manuscript.

Funding

This study was conducted under the framework of an industry—university project development agreement established between Bursa Technical University, Faculty of Engineering and Natural Sciences and Seger A.Ş. The project reached its successful conclusion with the collaboration of two researchers from the R&D department of Seger A.Ş., under the supervision of Associate Professor Davut Ertekin. Gratitude is extended to all employees and contributors who played a part in the project.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Data are contained within the article and Supplementary Materials.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. National Highway Traffic Safety Administration (US Department of Transportation), Hybrid-Electric, Plug-in Hybrid-Electric and Electric Vehicle Sales. Available online: https://www.bts.gov/content/gasoline-hybrid-and-electric-vehicle-sales (accessed on 19 October 2021).
  2. Misdariis, N.; Padro, L.-F. The sound of silence of electric vehicles: Issues and answers. In Proceedings of the Inter-Noise 2017, Hong Kong, China, 27–30 August 2017. [Google Scholar]
  3. Next Generation Vehicle Promotion Center, Japan Promotes Electrified Vehicle (xEV) Strategy Ahead of 2050. Available online: http://www.cev-pc.or.jp/english/ev-strategy.html (accessed on 19 October 2021).
  4. Fabra-Rodriguez, M.; Peral-Orts, R.; Campello-Vicente, H.; Campillo-Davo, N. Gear sound model for an approach of a Mechanical Acoustic Vehicle Alerting System (MAVAS) to increase EV’s detectability. Appl. Acoust. 2021, 184, 108345. [Google Scholar] [CrossRef]
  5. Poveda-Martínez, P.; Peral-Orts, R.; Campillo-Davo, N.; Nescolarde-Selva, J.; Lloret-Climent, M.; Ramis-Soriano, J. Study of the effectiveness of electric vehicle warning sounds depending on the urban environment. Appl. Acoust. 2017, 116, 317–328. [Google Scholar] [CrossRef]
  6. Lisa Steinbach, M. Ercan Altinsoy, Influence of an artificially produced stationary sound of electrically powered vehicles on the safety of visually impaired pedestrians. Appl. Acoust. 2020, 165, 107290. [Google Scholar] [CrossRef]
  7. Sekine, M.; Tanaka, T.; Sakamoto, I.; Morita, K. Progress report on examination of quiet-car measures for hybrid and other vehicles: The work of the National Traffic Safety and Environment Laboratory. IATTS Rev. 2011, 36, 41–49. (In Japanese) [Google Scholar]
  8. Ministry of Land, Infrastructure, Transport and Tourism, About the Compilation etc. of “Guidelines for the Measure Against the Quietness Problem”, Press Releases. Available online: http://www.mlit.go.jp/common/000057372.pdf (accessed on 19 October 2021). (In Japanese).
  9. Regulation, No. 138, Uniform Provisions Concerning the Approval of Quiet Road Transport Vehicles with Regard to Their Reduced Audibility; Official Journal of the European Union: Luxembourg, 2017.
  10. Tsuruta-Hamamura, M.; Kobayashi, T.; Kosuge, T.; Hasegawa, H. The Effect of a “Design-of-Awareness” Process on Recognition of AVAS Sound of Quiet Vehicles. Appl. Sci. 2022, 12, 157. [Google Scholar] [CrossRef]
  11. Calloni, M.; Hadjit, R.; Salvekar, P.; Musser, C. Harmonizing Safety Regulations and Perception: A Simulation Methodology for AVAS System Design; SAE Technical Paper 2024-01-2915; SAE International: Warrendale, PA, USA, 2024. [Google Scholar] [CrossRef]
  12. Mocholí Belenguer, F.; Martínez-Millana, A.; Castells Ramón, F.S.; Mocholí-Salcedo, A. The Effectiveness of Alert Sounds for Electric Vehicles Based on Pedestrians’ Perception. IEEE Trans. Intell. Transp. Syst. 2022, 23, 2956–2965. [Google Scholar] [CrossRef]
  13. Steinbach, L.; Altinsoy, M.E. Prediction of annoyance evaluations of electric vehicle noise by using artificial neural networks. Appl. Acoust. 2019, 145, 149–158. [Google Scholar] [CrossRef]
  14. Pompei, F.J. Directional Acoustic Alerting System. U.S. Patent 7106180, 12 September 2006. [Google Scholar]
  15. Cheer, J.; Birchall, T.; Clark, P.; Moran, J.; Elliott, S.J.; Fazi, F.M. Design and implementation of a directive electric car warning sound. Proc. Inst. Acoust. 2013, 35, 352922. [Google Scholar]
  16. Kim, G.H.; Moon, Y.S. Apparatus for Warning Pedestrians of Oncoming Vehicle. U.S. Patent 8,854,229, 7 October 2014. [Google Scholar]
  17. Quinn, D.; Mitchell, J.; Clark, P. Development of a next-generation audible pedestrian alert system for EVs having minimal impact on environmental noise levels—Project eVADER. In Proceedings of the 43rd International Congress on Noise Control Engineering, Melbourne, Australia, 16–19 November 2014. [Google Scholar]
  18. van der Rots, R.; Berkhoff, A. Directional loudspeaker arrays for acoustic warning systems with minimised noise pollution. Appl. Acoust. 2015, 89, 345–354. [Google Scholar] [CrossRef]
  19. Kournoutos, N.; Cheer, J. Investigation of a directional warning sound system for electric vehicles based on structural vibration. J. Acoust. Soc. Am. 2020, 148, 588–598. [Google Scholar] [CrossRef] [PubMed]
  20. Regulation, UNECE. Uniform Provisions Concerning the Approval of Audible Warning Devices and of Motor Vehicles with Regard to Their Audible Warning Signals; UN Regulation No. 28; Regulation, UNECE: Geneva, Switzerland, 2001. [Google Scholar]
  21. Müller, M. Fundamentals of Music Processing; Springer: Cham, Switzerland, 2015. [Google Scholar]
  22. Valimaki, V. Discrete-time synthesis of the sawtooth waveform with reduced aliasing. IEEE Signal Process. Lett. 2005, 12, 214–217. [Google Scholar] [CrossRef]
  23. Bai, M.; Shih, G. Upmixing and Downmixing Two-channel Stereo Audio for Consumer Electronics. IEEE Trans. Consum. Electron. 2007, 53, 1011–1019. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.