Greetings AAC community!
I am attempting to construct a simple hearing test using a FRDM-KL25Z and am having some issues getting started.
I would like for the audio to output to
The device will feature two inputs, one by the individual administering the test, a second for the person being tested and two outputs. The first input will be a button to start the test and send a frequency to the headphones to either the left or right ear one at a time. Five different frequencies (ranging from 250-8000 Hertz, the range of an average person's hearing) will be sent to each ear. After each frequency is sent, the person being tested inputs whether the noise was heard or not, lighting an LED corresponding to that frequency if it was. Once all 10 frequencies have been tested, the user can tell the range of hearing in each ear.
A breakdown of how I would like it to function:
Input 1 - Button Starts the program
Frequency 1 is sent to the left ear of the headphones
Input 2 - The tested user presses a button to confirm hearing the tone, lighting the LED corresponding to it. No input if it was not heard.
Frequency 1 is sent the right ear of the headphones after a 5 second delay (to allow Input 2 time to respond)
Input 2 - The tested user presses a button to confirm hearing the tone, lighting the LED corresponding to it. No input if it was not heard.
Frequency 2 is sent to the ear of the headphones after a 5 second delay
…..
After all 5 frequencies have been sent to each ear the user can see their range of hearing for each ear from the lit LED's.
Input 1 - The button stops the program, turning off all LED's
I would greatly appreciate any and all help I can receive for this such as practical products/coding to use. I thank anyone in advance who is willing to assist me!
I am attempting to construct a simple hearing test using a FRDM-KL25Z and am having some issues getting started.
I would like for the audio to output to
each respective ear on
headphones using a breadboard. I am using Keil uVision version 5.0 but the coding can be either main.c or asm_main.sThe device will feature two inputs, one by the individual administering the test, a second for the person being tested and two outputs. The first input will be a button to start the test and send a frequency to the headphones to either the left or right ear one at a time. Five different frequencies (ranging from 250-8000 Hertz, the range of an average person's hearing) will be sent to each ear. After each frequency is sent, the person being tested inputs whether the noise was heard or not, lighting an LED corresponding to that frequency if it was. Once all 10 frequencies have been tested, the user can tell the range of hearing in each ear.
A breakdown of how I would like it to function:
Input 1 - Button Starts the program
Frequency 1 is sent to the left ear of the headphones
Input 2 - The tested user presses a button to confirm hearing the tone, lighting the LED corresponding to it. No input if it was not heard.
Frequency 1 is sent the right ear of the headphones after a 5 second delay (to allow Input 2 time to respond)
Input 2 - The tested user presses a button to confirm hearing the tone, lighting the LED corresponding to it. No input if it was not heard.
Frequency 2 is sent to the ear of the headphones after a 5 second delay
…..
After all 5 frequencies have been sent to each ear the user can see their range of hearing for each ear from the lit LED's.
Input 1 - The button stops the program, turning off all LED's
I would greatly appreciate any and all help I can receive for this such as practical products/coding to use. I thank anyone in advance who is willing to assist me!
