Arduino Hearing Test

About: My hobbies are electronics and photography. I have an Arduino which I like to program, and I make stop motion videos with my camera. I also have a great interest in DIY.

Wanted to know how high you can hear? You can find out by programming an Arduino. It generates a tone from low to so high, only a few people can hear.

Step 1: Parts

Step 2: Programming

Type, copy, or download.

void setup() {
pinMode(10, OUTPUT); }

void loop() {for(int hertz = 0; hertz <= 20000; hertz++){ tone(10, hertz); delay(10); } }

Step 3: The Circuit

Connect the wire from pin 10 to the breadboard. Connect the passive buzzer to the breadboard and another wire to ground. Connect the Arduino and upload the program. You should hear a rising tone that gets higher. When you can't really hear it anymore, That is approximately your hearing limit.

Share

    Recommendations

    • Make it Glow Contest 2018

      Make it Glow Contest 2018
    • Plastics Contest

      Plastics Contest
    • Optics Contest

      Optics Contest

    2 Discussions

    0
    None
    Omnivent

    5 months ago

    Hi,

    Unfortunately, this buzzer will not reveal your hearing limit, as it has got a very limited frequency span and isn't even linear in the range that it covers.

    If only... Truckloads of cash could be saved on audiology equipment ;)

    .

    One way to get a whole lot more linear, would be to add a precise measuring microphone covering the typical audible spectrum (typically set to 20Hz to 20kHz) and, in the program adjust the output amplitude to a certain SPL. Your buzzer will likely not go lower than say 100Hz and not higher than 8kHz (and that is probably being very optimistic :)

    .

    Still , the buzzer will have resonances and harmonics that are hard to correct (sine waves and a full tone speaker would be better), even with this method and further, you don't have a magic brick wall limit. For most, the interesting thing is how much loss at which frequencies - multiple frequencies at multiple amplitudes are used to characterize a persons hearing.

    .

    Have a nice day :)

    1 reply
    0
    None
    Techno_Bot01Omnivent

    Reply 5 months ago

    Guess what, The buzzer I had didn't even work, so I didn't know what this would sound like. I found an old speaker from an old snap circuits I had a while back. The program works fine, but I think you're right. The buzzers I have don't really work at frequencies above 8khz. It began fritzing out and making weird noises. This program is meant to replicate this hearing test at http://onlinetonegenerator.com/ with things at home like an Arduino. Thanks for telling me.