sticilface / Melvanimate

Melvanimate
60 stars 7 forks source link

Add microphone support for music synced led animations #10

Closed marksev1 closed 7 years ago

marksev1 commented 8 years ago

Please add microphone support for music synced led animations - like this: https://learn.adafruit.com/led-ampli-tie/overview

sticilface commented 8 years ago

This has been on the cards... just not sure what the best way is, or how good it would be.
The ADC on the ESP8266 only measures up to 1V so there are some hardware issues... Will try though

wutu commented 8 years ago

+1

marksev1 commented 8 years ago

Awesome :-)

sticilface commented 8 years ago

EQ support will arrive.. I have finally... got an MSGEQ7 chip working with an arduino, and now working beautifully with Melvanimate in the form of a graphic equaliser on ESP8266. so there will be more to come! The reason i struggled so much was that I had 3 faulty MSGEQ7 chips, which has been a total nightmare. I've been working or trying to work with this for over a year! Only debugging with an osillyscope solved everything.

Support for microphone might not happen... I've tried one, with integrated amp and it is rubbish. Line in though works like a treat. This has been an epic.. to get working.. i was concerned about time to acquire the signal too, but i've got it down to 600us, and that is entirely due to the time it takes to do 7 analoguereads.

file 07-04-2016

esp8266-msgeq7-first

marksev1 commented 8 years ago

So is this like very complicated to hook up :-)

sticilface commented 8 years ago

not particularly. An MSGEQ7 and some caps + resistor

screenshot 2016-04-10 16 56 21

marksev1 commented 8 years ago

Very cool, hopefully you'll make some demo video :D

marksev1 commented 8 years ago

sticilface whats that 74HCT245N used for?

sticilface commented 8 years ago

It's A logic level converter. That changes the esp 3.3V to 5V. Not found a smaller one that works, and this works perfectly so I've carried on using it.

probonopd commented 8 years ago

Is the logic level converter really needed given http://www.ba0sh1.com/2016/08/03/is-esp8266-io-really-5v-tolerant/?

sticilface commented 8 years ago

the logic level converter is for neopixels... i found that it made a huge difference especially at low brightness... i would get flashes... with the logic level converter it works perfectly. technically 3.3V is out of spec for the neopixels.

probonopd commented 8 years ago

I see

sticilface commented 7 years ago

this is done and working now