Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

Arm movement

$
0
0

Hi, I have to do a project who simulates the arm movement and save the positions maybe anyone can help me I am attaching the complete instructions is for a university final project :

You will have to implement an application to record the arm movements through the use of the accelerometer of an Android mobile device. The phone will capture data and send them to a PC through a wireless connexion. The programming will be in Processing/Java. The system will require to install oscP5, netP5 and Ketai libraries for communication and data exchange.

Calibration

After finding the appropriate position to locate the phone on the body limb (typically above the wrist), the first part of the program will consist in calibrating the inertial sensor for each spatial plan (frontal and sagittal) and subject tested. Take a look to figure 3 in order to (i) facilitate the identification of each axis of a smartphone and (ii) see a typical position of a subject that has to perform the task in the frontal position.

Process to calibrate the system: 1) Record value for the relevant axis when the arm is in the vertical-down position. Call this variable minAcc.

2) Record value for the relevant axis when the arm is in the horizontal position. Call this variable maxAcc.

3) Repeat this process 3 times and make the average for the maximal and minimal values.

4) Update the map function as follows: degrees = map(currentAcc, minAcc, maxAcc, 0, 90);

Test

Subjects have to execute the movements at 2 different speeds (normal and fast) and according to 2 spatial plans (frontal and sagittal).

Subjects must perform calibration and test (i) with the back against a wall for the frontal plan trials and (ii) with the arm against the wall for the sagittal trials. For each of them, 3 angles of movement will be recorded: 30º, 60º and 90º.

The experiment will be repeated twice (2 trials). Thus, the experimental plan will be as follows: 2 trials * 2 velocities * 2 plans * 3 angles = 24 files for each subject

Data management

1) A TSV or CSV file must be created to store on the PC the result of each experimental condition. This file must contain data (in this specific order) as follows: time, degree, X, Y, Z. To do so, a timer should be implemented.

2) Display on the PC screen a real-time animated stickman according to the degree values recorded by the phone.

  • Data recording that automatically stop when the desired angle is reached (and a visual and/or audio feedback are/is emitted).
  • Implementation of a metronome to help subjects executing the movement at 2 different speeds.
  • Recording the movement through a high resolution webcam for future comparison between wearable inertial and remote visual motion capture. In this case the subject should wear clothing that sticks to the skin and markers

thanks


Viewing all articles
Browse latest Browse all 941

Trending Articles