I can't get FHT.h to work with the ESP8266.

I can’t get FHT.h to work with the ESP8266.

\Documents\Arduino\libraries\FHT/FHT.h:72:26: fatal error: avr/pgmspace.h: No such file or directory

when I change #include <avr/pgmspace.h> to #include <pgmspace.h>
I just get a large amount of more errors,

even with this

#if defined ( ESP8266 )
#include <pgmspace.h>
#else
#include <avr/pgmspace.h>
#endif

Anyone have a working Implementation of Fourier transformations with fastled?

I am trying to get 15 meters of WS2812B to be sound reactive with a 3 pin Mic

That fht library is almost entirely AVR assembler code - it won’t work on the esp8266

any suggestions on how I should go about making the LED strips sound reactive if not with that FHT library?

Look into getting/using the MSGEQ7 - it’s a bit of hardware that does 7 channel spectrum analysis on audio signals :slight_smile:

I know about it, but I am trying to do it where it picks up sound in the room from a microphone/ untethered to the thing sending out the signal so I don’t have to run a chord , I am guessing that this might be my only option though. unless theres a way to send the mic signal to the aux line of the msgeq7

Yeah, you can feed a mic into the input of the msgeq7.

word thanks, Ill have to grab one

I tried this as well recently, did not realize it was for AVR. I also purchased a whole bunch of msgeq7 from several different vendors(ebay, aliexpress) and NONE of the ICs worked! So frustrating

I haven’t had any issues with the MSGEQ7 boards from the eBay seller that Jason Coon linked to. If you want one with a mic already attached you could buy one of these. It was designed for some LED shades but will work with any board. http://macetech.com/store/index.php?main_page=product_info&cPath=15&products_id=61&zenid=8db131f6c17d1de944cbd295c1157b66
http://macetech.com/store/index.php?main_page=product_info&cPath=15&products_id=61&zenid=8db131f6c17d1de944cbd295c1157b66

I had a few minutes to try this out last night, and had some issues. The same MSGEQ7 breakout works fine on a Teensy, but I got really noisy/erratic results on an ESP8266. I assume it’s because the analog pin on the ESP8266 strangely has a max of 1 volt. I haven’t had time to try hooking it up to a voltage divider or potentiometer.

@Jason_Coon Which ESP board are you using? I haven’t had any issues with the D1 mini and it’s pinout diagram states 3.3V max for its analog pin.

I was using an Adafruit Huzzah, but will try a D1 mini, thanks!

D1 mini has already voltage decider on board, so you have 0 to 3.3V instead of 0 to 1V.
I love the D1 mini <3