zhujisheng / audio-reactive-led-strip

🎵 🌈 Real-time LED strip music visualization running on ESP32 based on Arduino or ESPHome platform
GNU General Public License v3.0
142 stars 18 forks source link

Microphone #1

Closed Anothermetrial closed 5 years ago

Anothermetrial commented 5 years ago

Hi,

Very nice project I want to build it, but kind of noob in electronics. I have this microphone: https://www.robofun.ro/senzori/sunet/senzor-sunet-LM393 Will it work with your code?

Thank you

zhujisheng commented 5 years ago

It may work, but you have to modify the program. you can use the original source with a digital PDM microphone module, without any program modification.

Anothermetrial commented 5 years ago

I understand is a lot to ask, but I will try: Would you consider modifying the code to work with this very common microphone module? If would be very helpful for a lot of other enthuziasts out there (including myself).

Thank you for considering this. Regards.

zhujisheng commented 5 years ago

I think the digital microphone is the trends. I have no plan to modify the code to work with analog microphone. You can buy the module at: https://lw.hachina.io/

phdelodder commented 5 years ago

I also have an LM393, might look in to changing the code to work with it.

This line: unsigned int read_num; i2s_read(I2S_NUM_0, l, BUFFER_SIZE * 2, &read_num, portMAX_DELAY); needs to change to use an analog read.

When I have all the parts I'll look in to it.

Anothermetrial commented 5 years ago

Hi. I used this microphone - is it correct? https://www.optimusdigital.ro/ro/audio-altele/4774-modul-microfon-pdm-mems-adafruit.html

HA+Esphome - all libraries included, working with rainbow and plain color, but when choosing music effects the leds are playing even if silence in the room. Pls let me know what am I doing wrong. Regards

phdelodder commented 5 years ago

I just bought this module on https://nl.aliexpress.com/item/33011018502.html?spm=a2g0s.9042311.0.0.55544c4dmq8hL1 do you think it will work?

Anothermetrial commented 5 years ago

phdelodder - have you succeed with the mentioned microphone?

phdelodder commented 5 years ago

@Anothermetrial Changes for the I2S mircophone: https://github.com/phdelodder/audio-reactive-led-strip

Anothermetrial commented 5 years ago

Thank you! Great job! Congrats!

phdelodder commented 5 years ago

@Anothermetrial you got it all working?

Anothermetrial commented 5 years ago

Hi, I got it to work with the PDM as (stupid me) had a cold welding on the mic's data pin. But i will redo the project with is2 microphone as the PDM is too sensitive - even walking in the room is lighting my leds. I see that is2 mic (from my first link) has a screw to reduce the sensitivity. I will let you know the outcome first hand.

Regards

On Fri, Sep 27, 2019, 14:09 Philippe Delodder notifications@github.com wrote:

@Anothermetrial https://github.com/Anothermetrial you got it all working?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zhujisheng/audio-reactive-led-strip/issues/1?email_source=notifications&email_token=ALMRYTR4KR7CEDSMGQKU2NLQLXSVPA5CNFSM4IIG72U2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7YR76A#issuecomment-535896056, or mute the thread https://github.com/notifications/unsubscribe-auth/ALMRYTRQ46DESWNZRV4OIODQLXSVPANCNFSM4IIG72UQ .