I have a Lilypad Accelerometer ADXL355 and a Lilypad ATmega 328. I have written some code to get LEDs to fade in and out according to tilt on the x and y axis.
My next challenge is go calculate acceleration. I want to create an outfit for a dancer and when they move fast I want red lights to come on. When they are going at a medium speed, I want green lights to come on. When they are moving slowly I want blue lights to come on.
I am a real newbie and don't really know where to start in order to calculate the acceleration. I figure I need a formula for translating the analog values into g force and another for calculating the difference in g force between stationary and movement at different speeds.