Maker Pro
Maker Pro

Impact activated LEDs

GregTaylor84

Sep 25, 2023
9
Joined
Sep 25, 2023
Messages
9
Hi all I'm struggling with this. I have the ESP32 and Adafruit Lis3DH however I'm struggling big time on the coding to get it to work. Can someone please help so I can finish this gift for my brother.

Impact is from drumsticks in a drum
 

Attachments

  • DrumLEDs-4.jpg
    DrumLEDs-4.jpg
    137.2 KB · Views: 16
  • IMG_20230922_145008.jpg
    IMG_20230922_145008.jpg
    146.6 KB · Views: 16

GregTaylor84

Sep 25, 2023
9
Joined
Sep 25, 2023
Messages
9
That has still left me in arms.
Is there anywhere or one that can write the code for me?
 

GregTaylor84

Sep 25, 2023
9
Joined
Sep 25, 2023
Messages
9
How much is your brother worth?
Well that's a pretty extreme question which has no relation to my question.
A more suitable question would of been how much are you wanting to spend? Well my answer to that would be if you know how to do it then send me a quote or your details and we can discuss further
 

Delta Prime

Jul 29, 2020
1,642
Joined
Jul 29, 2020
Messages
1,642
Well that's a pretty extreme question which has no relation to my question
I answered your question?
A more suitable question would of been how much are you wanting to spend?
You sound like my mother.
Well my answer to that would be if you know how to do it then send me a quote or your details and we can discuss further
They don't print enough money.
Which makes your brother priceless or worthless depends on how you look at it.
Don't quote me on this."I'll do it for free."
What do you want the LED to do?
 

GregTaylor84

Sep 25, 2023
9
Joined
Sep 25, 2023
Messages
9
When the drum gets hit I want the led to flash & light the drum up. If possible whenever he hits it for them to then change colour
 

Delta Prime

Jul 29, 2020
1,642
Joined
Jul 29, 2020
Messages
1,642
Thank you for not quoting me...
What color?
And who made that drum?
It's pretty cool looks like a stick is going to fall out.
 

GregTaylor84

Sep 25, 2023
9
Joined
Sep 25, 2023
Messages
9
I have RGB leds so random colours.

I made the drum, it's made from all my brothers broken drum sticks over the years. Definitely none will fall out as they are in epoxy resin
 

kellys_eye

Jun 25, 2010
6,230
Joined
Jun 25, 2010
Messages
6,230
Fantastic craftsmanship and I'm sure your brother would be thrilled to receive such a gift regardless of the 'fancies' you wish to add. That said, the coding shouldn't be much of an issue for some on here - and I hope they drop in to this thread to assist - but it's beyond my own skill set and I only wish I could help.

Just had to speak my admiration for your project.
 

danadak

Feb 19, 2021
677
Joined
Feb 19, 2021
Messages
677
Basically one would sample the accelerometer, measure / compute the acceleration,
detect an abrupt change of acceleration (a hit), and set pwms to control RGB LED
to convey energy and a pulse effect of some sort to indicate the hit. Even evaluation
of hit for waveshape, eg. did he hit rim or stick on stick or main drum surface.

You can hire a consultant to do the work. I would recommend another drummer who
can do the debugging/evaluation to do a more robust design. Many cpu vendors have
listings of certified designers one can contact. In this case/ESP32 take a stab at con-
tacting Adafruit first see if you can make any headway.


Regards, Dana.
 

Martaine2005

May 12, 2015
4,783
Joined
May 12, 2015
Messages
4,783
Fantastic craftsmanship and I'm sure your brother would be thrilled to receive such a gift regardless of the 'fancies' you wish to add. That said, the coding shouldn't be much of an issue for some on here - and I hope they drop in to this thread to assist - but it's beyond my own skill set and I only wish I could help.

Just had to speak my admiration for your project.
I have to agree. The mold making for a cylinder of a particular size is quite difficult. I’m sure there were many hours of sanding and polishing to get the rims and hardware to fit. Great inspiration using the old broken sticks!.
I’m also sure that the wall thickness has dramatically changed. This can ‘dull’ the resonance drastically. But, as an ex drummer, you made a one off, beautiful tom. Your brother will be delighted and probably never hit it!.

Martin
 

GregTaylor84

Sep 25, 2023
9
Joined
Sep 25, 2023
Messages
9
Fantastic craftsmanship and I'm sure your brother would be thrilled to receive such a gift regardless of the 'fancies' you wish to add. That said, the coding shouldn't be much of an issue for some on here - and I hope they drop in to this thread to assist - but it's beyond my own skill set and I only wish I could help.

Just had to speak my admiration for your project.
Thank you I'm sure he will too but would be cool if I can have the option for the fancies.
 

GregTaylor84

Sep 25, 2023
9
Joined
Sep 25, 2023
Messages
9
I
Basically one would sample the accelerometer, measure / compute the acceleration,
detect an abrupt change of acceleration (a hit), and set pwms to control RGB LED
to convey energy and a pulse effect of some sort to indicate the hit. Even evaluation
of hit for waveshape, eg. did he hit rim or stick on stick or main drum surface.

You can hire a consultant to do the work. I would recommend another drummer who
can do the debugging/evaluation to do a more robust design. Many cpu vendors have
listings of certified designers one can contact. In this case/ESP32 take a stab at con-
tacting Adafruit first see if you can make any headway.


Regards, Dana.
Will have a look into that thank you.
 

GregTaylor84

Sep 25, 2023
9
Joined
Sep 25, 2023
Messages
9
I have to agree. The mold making for a cylinder of a particular size is quite difficult. I’m sure there were many hours of sanding and polishing to get the rims and hardware to fit. Great inspiration using the old broken sticks!.
I’m also sure that the wall thickness has dramatically changed. This can ‘dull’ the resonance drastically. But, as an ex drummer, you made a one off, beautiful tom. Your brother will be delighted and probably never hit it!.

Martin
Thank you yes there was a few hours making the mold and sanding, finally got it to fit snug. The wall thickness is as thick as a drum stick. It actually has a pretty cool sound to it. He has a gig coming up so I hope he does hit it haha
 

danadak

Feb 19, 2021
677
Joined
Feb 19, 2021
Messages
677
Here is a dev board with a 3 axis accelerometer on it and a project associated
with the accelerometer.

1695950935155.png




Regards, Dana.
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,476
Joined
Nov 17, 2011
Messages
13,476
Imho using an accelerometer for this purpose is like taking a sledgehammer to crack a nut (although both are technically possible ;)).

May I suggest a different approach? Use a microphone to detect the sound pulse. Within the drum there should be a well discernible change in air pressure aka a sound when the drumstick hits the membrane. You can buy microphone modules with an integrated adjustable threshold detector which activates a digital output when the sound level passes the threshold. Imho exactly what you want. See this detailed explanation on how to use a microphone module with an Arduino board (works the same with your ESP32) where lights are activated by sound. Comes with a circuit description and complete code.Sounds familiar to your original request?

A single LED as in the example may not be enough to light up the drum. Consider using multiple LEDs, but then you will need a driver as the little microcontrollers can't deliver enough power. Here's an example of such a driver module.
 

Martaine2005

May 12, 2015
4,783
Joined
May 12, 2015
Messages
4,783
Imho using an accelerometer for this purpose is like taking a sledgehammer to crack a nut (although both are technically possible ;)).

May I suggest a different approach? Use a microphone to detect the sound pulse. Within the drum there should be a well discernible change in air pressure aka a sound when the drumstick hits the membrane. You can buy microphone modules with an integrated adjustable threshold detector which activates a digital output when the sound level passes the threshold. Imho exactly what you want. See this detailed explanation on how to use a microphone module with an Arduino board (works the same with your ESP32) where lights are activated by sound. Comes with a circuit description and complete code.Sounds familiar to your original request?

A single LED as in the example may not be enough to light up the drum. Consider using multiple LEDs, but then you will need a driver as the little microcontrollers can't deliver enough power. Here's an example of such a driver module.
Interesting, I have a few of those mic modules. I might have a play. I haven’t found time yet to play with the arduino.

Martin
 
Top