A change coming for my audio sensor: I’m thinking that I don’t need to know the amplitude of sounds from both sensors individually; rather, the most important thing is the timing of the sounds. So, I’m planning to add/change some circuitry to do the following:
-
Sum the two ‘ears’ into a single analog signal for relative amplitude measurement (so that when I yell at him, he knows that I’m mad!).
-
Add a comparator (probably LM339) to each of the audio channels, and use these two signals to drive digital inputs on the PIC (instead of the two A/D inputs I’m using now). When a signal is seen on either ear, then go do an A/D reading to find out the amplitude.
These changes will free up an A/D input (that’s good, because I was wanting another one). And, the digital comparator signals can trigger interrupts on the PIC, making it much easier to measure the time difference between the ears without having to poll the A/Ds. The LM339 will have 2 comparators left over to use for something else. Not having to poll the ears is really good, because I plan for this PIC to also handle IRPD scanning, which involves driving a servo and such.
Pete

