Hello all.
I have a pet project I have been working on (mostly off) for a while now.
I have heard that students will self-regulate noise levels if they can see a display of sound levels - a 'noise traffic light'.
I have an electret microphone amplified by a 741 op-amp being read by the adc pin of a picaxe 14m chip. The outputs are three bulbs - red, yellow and green. So far so good. The code for analogue sensor reading from manual 3 works to a point and proves the system works.
As you might imagine, the lights react to sound, but too briefly to be of use in my project. I would like them to remain on - hold at peak level - for a time, but the code must continue to run in the background to check for higher levels.
Using 'pause' is too crude and holds regardless of changes in volume.
Please point me in the right direction, hardware or software, or stop me now if I'm on the wrong track. Thank you.
I have a pet project I have been working on (mostly off) for a while now.
I have heard that students will self-regulate noise levels if they can see a display of sound levels - a 'noise traffic light'.
I have an electret microphone amplified by a 741 op-amp being read by the adc pin of a picaxe 14m chip. The outputs are three bulbs - red, yellow and green. So far so good. The code for analogue sensor reading from manual 3 works to a point and proves the system works.
As you might imagine, the lights react to sound, but too briefly to be of use in my project. I would like them to remain on - hold at peak level - for a time, but the code must continue to run in the background to check for higher levels.
Using 'pause' is too crude and holds regardless of changes in volume.
Please point me in the right direction, hardware or software, or stop me now if I'm on the wrong track. Thank you.