Professional Documents
Culture Documents
Acelerómetro: Profesor Cesar Hernán Rodríguez Garavito. Sistemas Digitales. Universidad de La Salle. 2017
Acelerómetro: Profesor Cesar Hernán Rodríguez Garavito. Sistemas Digitales. Universidad de La Salle. 2017
Features:
• Selectable Sensitivity (1.5g/2g/4g/6g)
• Low Current Consumption: 500 µA
• Sleep Mode: 3 µA
• Low Voltage Operation: 2.2 V – 3.6 V
• 6mm x 6mm x 1.45mm QFN
• High Sensitivity (800 mV/g @ 1.5g)
• Fast Turn On Time
• Integral Signal Conditioning with Low Pass Filter
• Robust Design, High Shocks Survivability
• Pb-Free Terminations
• Environmentally Preferred Package
• Low Cost
ACELERÓMETRO
Principle of Operation
ACELERÓMETRO
g-Select
• The g-Select feature allows for the selection among 4 sensitivities
present in the device.
Equation accel
∆𝑉
𝑉!"# = 𝑉$%% + 𝑔 sin 𝜃
∆𝑔
𝐴#
Θ= tan!"
𝐴$ % + 𝐴& %
ACELERÓMETRO #include <hidef.h> /* for
EnableInterrupts macro */
#include <math.h>
Lectura de Θ en C #include "derivative.h" /* include
peripheral declarations */
#define Config_ADC()
APCTL1=0b00000000;ADCCFG=0b00001000;
#define Config_ADC_Pin()
PTADD=0b00000000; PTAPE=0b11000000;
gTotal = acel.gx+acel.gy+acel.gz;
magnitudD = pow(acel.gy,(float)2);
magnitudD += pow(acel.gz,(float)2);
magnitudD= sqrt(magnitudD);
magnitudD = acel.gx/magnitudD;
anguloRad = atan(magnitudD);
anguloGrados = Radianes2Grados(anguloRad);
if(anguloGrados > 45){
Led1On();
}else{
Led1Off();
}
} /* loop forever */
}