Mosaic
Well-Known Member
Hi all:
I'm using a 12F675
https://www.electro-tech-online.com/custompdfs/2012/01/131810.pdf
to flash an RGB LED when it senses a loud sound on this mic:
https://www.electro-tech-online.com/custompdfs/2012/01/25R0612.pdf
It's a novelty device that you can wear and it flashes different colors in time to a bass beat.
The challenge is maintaining tiny size, low parts count, and battery power consumption.
So far the design appears to consume 6 pins:
1 for ADC reading mic to 'trigger' flash.
3 for CA RGB LED.
1 for Interrupt on change (driven by a tactile switch to WAKE)
1 for providing power to the MIC (so that I can save power when SLEEPing)
Questions:
1) Do I have to select pins based on TTL or Schmitt operation?
2) For the Interrupt on Change pin, is an RC debouncer required, any suggested RC values if so?
3) Is a comparator input for the MIC preferable to the ADC sampling? Not sure about MIC output voltages yet.
4) Would using a buzzer as a sensor input instead of a mic be better for filtering out the non-percussion sounds?
https://www.newark.com/jsp/search/productdetail.jsp?sku=25R0777
I'm using a 12F675
https://www.electro-tech-online.com/custompdfs/2012/01/131810.pdf
to flash an RGB LED when it senses a loud sound on this mic:
https://www.electro-tech-online.com/custompdfs/2012/01/25R0612.pdf
It's a novelty device that you can wear and it flashes different colors in time to a bass beat.
The challenge is maintaining tiny size, low parts count, and battery power consumption.
So far the design appears to consume 6 pins:
1 for ADC reading mic to 'trigger' flash.
3 for CA RGB LED.
1 for Interrupt on change (driven by a tactile switch to WAKE)
1 for providing power to the MIC (so that I can save power when SLEEPing)
Questions:
1) Do I have to select pins based on TTL or Schmitt operation?
2) For the Interrupt on Change pin, is an RC debouncer required, any suggested RC values if so?
3) Is a comparator input for the MIC preferable to the ADC sampling? Not sure about MIC output voltages yet.
4) Would using a buzzer as a sensor input instead of a mic be better for filtering out the non-percussion sounds?
https://www.newark.com/jsp/search/productdetail.jsp?sku=25R0777