Right so, im building a “hand orientation” controlled quadopter (handpiece image below) with an ADXL345 and I am running into a bit of trouble.
The problem is that, the Micro is taking a long enough time to go through the code so that the instructions (elevation and X&Y tilt) sent to the bird are a bit choppy and inconsistent, the particular problem being the long i2c code to read from the registers and bring back X&Y orientation variables. In fact if I remove the orientation code; elevation control is extremely smooth (elevation is controlled by two switches on the index finger for up and down)
Now, i have seen some analog accelerometers giving a voltage as an orientation reference; using those would make the code “oh so much shorter” using analogRead two times instead of going through the registers on the TWI.
i was wondering if someone could tell me what the difference is between an analog and an i2c based accelerometer in terms of accuracy, reliablity, and the major and minor differences between them, and if it would benefit me and help resolve my issue if i switch to an analog accelerometer.
Your help is much appreciated…