Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Micromite with microphone and RGB strip?
Author | Message | ||||
eightbitswide Newbie Joined: 29/12/2016 Location: United StatesPosts: 2 |
I'm using the Micromite and attempting to use both a "microphone" sensor to detect sounds. Nothing specific, but I'd like to trigger an LED if any sound is detected. Also I've acquired a programmable RGB strip. Is there any code examples I could read over for either of these? Thanks |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1421 |
If it is one of these sensors: There is a digital output on the sensor. This is a threshold output that is adjustable by the potentiometer on that board. That would be usable as an input to the Micromite. Micromites and Maximites! - Beginning Maximite |
||||
eightbitswide Newbie Joined: 29/12/2016 Location: United StatesPosts: 2 |
Mine doesn't have the adjustable pot. |
||||
RonnS Senior Member Joined: 16/07/2015 Location: GermanyPosts: 120 |
hi eightbitswide, interesting idea, I had this too, but did not do it, but you can see my code for the LED star .. that would be similar and also usable with a few changes or you can learn from first i would use an ADC input channel with a potentiometer ( adjustable resistor ) to test it Ron |
||||
CircuitGizmos Guru Joined: 08/09/2011 Location: United StatesPosts: 1421 |
You might sample the speaker signal (use an analog input), perhaps every 200mS, and look at the level of the signal over a specific threshold. You could even use another analog input and a potentiometer to make an adjustable threshold level. Micromites and Maximites! - Beginning Maximite |
||||
Bill.b Senior Member Joined: 25/06/2011 Location: AustraliaPosts: 225 |
What is the RGB Strip you are using? If they are apa 102 then have a look here http://www.thebackshed.com/forum/forum_posts.asp?TID=8311 Bill In the interests of the environment, this post has been constructed entirely from recycled electrons. |
||||
Print this page |