Arduino speaks with none particular {hardware}


Arduino speaks with none particular {hardware}

Arduino GroupAugust twenty fourth, 2023

We see many Arduino tasks that characteristic audio output, however they have a tendency to require a considerable quantity of further {hardware}. Audio recordsdata take up numerous cupboard space, so that they require one thing like an SD card adapter. Audio indicators are analog, so that they require a DAC (digital-to-analog converter) to get good high quality. After which, to make the audio sign highly effective sufficient for a speaker, these normally want amplifiers. However Scott W Harden discovered a strategy to make an Arduino UNO Rev3 speak with none further {hardware} past the speaker.

On this case, the Arduino can communicate any quantity, from zero to 9, out loud by the speaker. That is attainable as a result of these are very brief phrases (most solely a single syllable) which might be recognizable when the standard may be very low. This audio high quality wouldn’t be appropriate for music and even common language, however it’s sufficient for a sequence of numbers. By lowering the audio high quality as a lot as attainable and making the clips brief, Harden was in a position to create audio recordsdata sufficiently small to slot in the 32KB flash reminiscence of the UNO‘s ATmega328 microcontroller with room to spare for the sketch.

Harden began with regular MP3 recordings of the spoken numbers. He then carried out a 100Hz to 2.5kHz band-pass on the clips, resampled them to 5kHz, after which transformed the waveforms to eight-bit unsigned values to retailer in program reminiscence. The Arduino can then play these waveforms by PWM (pulse-width modulation). A low-pass filter, comprised of a capacitor and resistor, helps easy the PWM output into one thing nearer to a real analog waveform. An non-compulsory LM386 chip can amplify the output, however Harden discovered that he was in a position to drive a speaker immediately with out that.

You possibly can comply with any responses to this entry by the RSS 2.0 feed.
You possibly can depart a response, or trackback from your personal website.



Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles