I have the ESP32Feather and Adafruit Lis3DH. I have got the led lights working now using the WLED app, but now I need to work out a way to get the accelerometer to work to make the leds activate when the drum is hit. I have made a drum for my brother and want the lights to activate when the drum is struck.
What do you mean by ‘not worked’? Did you have a problem installing the librarires or the code, did the code compile, did it download to the device correctly, did the MCU run, did the lights turn on, or was it just that the flashing did not synchronise with the drum beats?
With the sound one wouldn’t this pick up the other drums going off and the guitar amps etc?
Yes, it would, you’d need to perform some form of (likely very basic) noise filtering on the sensor in order to only detect the signals that you’re intending to receive. Just ignoring anything under a certain signal strength should be enough imo.
Once you’ve gotten back to Jeff’s questions we should have a much better idea as to what else you can try and fix to get this working.
Did you wait 30s for demo mode to start? If it didn’t start after 30s then you should comment out everything in the main loop and insert
demoMode();
If the lights don’t work then either they aren’t wired correctly of the code isn’t getting as far as the main loop. To see if the code is executing the main loop insert a debug print statement at the start of the demoMode() function. If the code gets that far then there is a problem with the lights. If the code doesn’t get that far then there is a problem during setup.
To find the problem during setup insert debug statements liberally throughout the setup code. The problem will be some point between the last debug statement that prints and the first one that doesn’t. Change that last debug statement to show all the values of the variables that are relevant to the subsequent code and run it again. The values that print out should indicate what the problem with the code is.