Is using ADXL 335 sufficient?

Hi all,

Recently i undertake this project on making use of lilypad to sense the motion/movement if the user is doing an exercise and “Count” the no of movement the user move his hand.
I have a number of lilypad with me like the Accelerometer ADXL335 , main board and so on given.

How am i going to combine the accelerometer with the main board in this situation and is there any open source for the motion taking code?? can anyone please help me... I am very New to this?
Thanks!
:-/

Are you trying to figure out how to physically connect the lilypad and accelerometer?

There are 5 connections that need to be made - +5V and Gnd should be pretty obvious. The other 3 are for measuring X, Y, and Z motion. They get connected to 3 analog pins.

Once you have the accelerometer and lilypad connected, you'll need to read the X, Y, and Z pins (analogRead, that is) and see how the values you get correlate to the motion that produced them.

What are you going to do with the count? How will you reset the count? How will you control the orientation of the accelerometer, so that X, Y, and Z have meaning?

I am going to transfer the count into the database but first i need to build a hardware which is able to take the "Counting" (Eg 1 swing, 1 count).

There will be a reset button on the lilypad so after transferring, just press the reset button on the pad/ is it able to make it automatic once after transfering to the database the counter will go to 0?

As for How will you control the orientation of the accelerometer, so that X, Y, and Z have meaning? I need some advice :-[

How are you going to get the data from the lilypad to the database?

That part, my lecturer will do it.. He will convert it.

As for How will you control the orientation of the accelerometer, so that X, Y, and Z have meaning?

Is there any open source for the progamming..

I need some advice in these as i am green horn to these...