Tagged: VU Meter music microphone
February 20, 2016 at 6:20 pm #2272Matt AlmarazParticipant
Brainstorm: What do you guys think the feasibility would be of adding a mic input via the GPIO to display a VU meter of ambient sounds and music via custom firmware?
Appealing to the creatively ambitious programmer types with this one as I have no experience with programming myself.
Thanks.February 20, 2016 at 10:39 pm #2273
I was thinking this myself, I will have a look when mine comes through.
Would be a nice additionFebruary 20, 2016 at 11:11 pm #2274
I’ve wanted to try this for some time and am happy to collaborate here. For starters, let’s assume we’re working with the Game Frame V2 (2016 version) and I’d also suggest upgrading the microcontroller to a Teensy 3.2 for more Flash and gain access to the Teensy audio library. I’m traveling right now, but in a week I can verify there’s enough SRAM to compile on Teensy 3.2 w/ the audio library.
I’ve posted the new Game Frame source on GitHub if anyone wants to get a jump on it.
There is a FFT library for Teensy LC (converts microphone signals to frequency values) if you want to hack…February 21, 2016 at 1:03 am #2276
Looking at that picture of the main board. Would I just need to solder the pins to the new teensy? No need to do any soldering on the game frame, that would make me much more comfortable upgrading it.February 21, 2016 at 1:19 am #2277
The Teensy 3.2 and LC are the same size and pin-compatible. The 3.2 is just more powerful.February 21, 2016 at 1:26 am #2278
I should have asked, does the gameframe board have female headers, like most arduino boards do. And the teensy can just be un plugged, as it were, as though it is a shield.
Which would mean I could just solder the male header pins to the teensy 3.2 if I bought one.
Or am I seeing it wrong and the teensy is soldered to the board?February 21, 2016 at 1:28 am #2279
Yeah, Game Frame has female headers. And you can buy Teensy 3.2 with male headers already soldered. Easy swap.February 22, 2016 at 12:09 am #2280
Took me a while but found one with the pins pre-soldered. Seem less readily available here.
Got teensyduino installed and got the source code compiled when set for the 3.2 but fails when set to compile for the LC
get “.text’ will not fit in region `FLASH'”
and “ld.exe: region `FLASH’ overflowed by 868 bytes”
Which I guess means it’s too large, which stumps me, could I be using the wrong version of something?February 22, 2016 at 12:43 am #2281
Also, thats the stock source from the link above, not edited anything yet.February 22, 2016 at 12:54 am #2282
Hm… I’ll take a look when I’m back from traveling late next week. Could be some libraries have been updated and use more Fladh.February 23, 2016 at 12:33 am #2284
Had a play with the code.
Horrendously butchered it by removing the breakout code, which means it can compile for the LC now. Seems to have freed up ~3k of memory, seems a little excessive for a breakout game.
Shall dig a little deeper.April 3, 2016 at 4:43 am #2526twuelfingParticipant
Anyone have any luck making this work?April 3, 2016 at 8:48 pm #2528twuelfingParticipant
Here are some references.
Once I get the basic unit working I will start experimenting with this, but it may be some weeks as i am making my game frame from scratch so I can learn as much as possible as I go. Seems the thing that makes the most sense would be to split up the frequencies
from between 50hz and 20khz(seems to be the response of the adafruit mic) to make the 16 bands.
Lets do this! it will be a ton of fun!
- You must be logged in to reply to this topic.