Tu devrais pouvoir mais galere, faut que t'etuduer les acceleration sur le temps pour donner une vitesse et ensuite analyser les 2 vitesses en meme temps pour trouver l'inclinaison, tu peut te mettre au C sur pic 
Bonne chance
A ce prix, t'aurais mieu fait de prendre le nunchuk (19€90)
A+
Bonne chance
A ce prix, t'aurais mieu fait de prendre le nunchuk (19€90)
A+
Euhh... Le Nunchuk est base sur la meme technologie..
Voici ce qu'on trouve dans WikiPedia sur la Nunchuk...
CITATION
Les accéléromètres utilisés sont des ADXL330 fournis par Analog Devices.
L'ADXL330 est un trois axe , le ADXL322 est un 2 axes... Or dans le simu , on ne gere pas le 3ieme axe...
A mon avis , on est fort proche dans l'idee...
Je pense donc que j'ai fait un bon choix... Meme si tu as raison , le Nunchuk est aussi un tres bon choix...
Pour ce qui est des calculs... C'est je pense plus simple que ce que tu imagines...
Voici comment calculer une inclinaison a partir d'un accelerometre :
CITATION
Voltage to tilt example:
“With a Vcc of 3V, and the accelerometer oriented flat and parallel to ground in my robot, Yout is 1.500V.
When my robot goes uphill, Yout increases to 1.582V. What is the slope of the hill?”
1.582V – 1.500 = +0.082V with respect to the 0g point.
With a sensitivity of 420mV/g, 0.082 / 0.420 = 0.195g
Sin-1(0.195) = 11.2º
The slope of the hill is 11.2º in the Y axis
“With a Vcc of 3V, and the accelerometer oriented flat and parallel to ground in my robot, Yout is 1.500V.
When my robot goes uphill, Yout increases to 1.582V. What is the slope of the hill?”
1.582V – 1.500 = +0.082V with respect to the 0g point.
With a sensitivity of 420mV/g, 0.082 / 0.420 = 0.195g
Sin-1(0.195) = 11.2º
The slope of the hill is 11.2º in the Y axis
Juste un petit ArcSin a appliquer sur le retour USB
Pour mon info... Que recuperes-tu de la Nunchuk et comment ?


















