Also read!
Home / All / Audio hardware for Arduino

Audio hardware for Arduino

As I bought a shovel of platelets for Arduino, in the coming months I will write a lot of articles on the topic. For those not familiar, Arduino is an open code and hardware platform designed to facilitate learning and development programming of projects using microprocessors.

The platelets purchased, or “shields” as they are usually called the optional for Arduino, are an audio level sensor (left) and a Buzzer (right).

wpid-20141216014432.jpg

There's the buzzer! Nothing very different from normal, a PIN for the mass (-), a for power supply (+) and one for the audio (S). There are buzzers called assets that have a tone generator and internal amplficador, but this is just a passive speaker even, IE, the audio needs to be fully generated with the Arduino. I used this program below to test, that raises a 440Hz tone:

void setup() {
// Initializes pin 8 as output.
pinMode(8, OUTPUT);
}

// Loop forever
void loop() {
digitalWrite(8, HIGH); // Push the speaker to front
delayMicroseconds(1136); // Wait 1136 microseconds (1/(2*1136u) = 440Hz)
digitalWrite(8, LOW); // Push the speaker back
delayMicroseconds(1136); // Wait 1136 microseconds (1/(2*1136u) = 440Hz)
}

wpid-20141216014443.jpg

Audio sensor already has a microphone and detects when the sound goes to certain limit, set potentiometer multivoltas.

wpid-20141216014501.jpg

The pinout is well explained, VCC (3 the 6V) GND (mass), The analog audio output and for the sensor, that's the high level while the audio volume is greater than the limit.

wpid-20141216014514.jpg

Are platelets very nice for projects with Arduino. I've seen on the internet play music at the buzzer, even the Mario Bros theme. For the audio sensor I imagine the possibility to connect a load to the clap near the circuit. Just make the program! I leave below the links to the products:

Buzzer – http://www.dx.com/p/arduino-diy-part-buzzer-module-black-138,322

Audio sensor – http://www.dx.com/p/3-6v-sound-sensor-module-for-arduino-153,949

Arduino UNO R3 – http://www.dx.com/p/development-board-w-data-cable-for-arduino-uno-r3-deep-blue-cable-52 cm-312,887

Another Arduino UNO R3 (a little better) – http://www.dx.com/p/development-board-w-data-cable-for-arduino-uno-r3-deep-blue-cable-52 cm-312,887

About Adriano

Professor, Engineer and buyer of products crazy China.

Leave a Reply

Your email address will not be published. Required fields are marked *

*