Arduino Hearing Test

Introduction: Arduino Hearing Test

About: My hobby is electronics. 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.

Be the First to Share


    • Puzzles Speed Challenge

      Puzzles Speed Challenge
    • "Can't Touch This" Family Contest

      "Can't Touch This" Family Contest
    • CNC Contest 2020

      CNC Contest 2020

    2 Discussions


    2 years ago


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


    Reply 2 years 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 with things at home like an Arduino. Thanks for telling me.