ADXL accelerometers
Greetings.
I must capture the accleration for the ADXL202, but I never use this type of dispositive.
For example, for the sensor SRF08 I had to use this source
[code]
import stamp.core.*;
import stamp.peripheral.io.I2C;
// Clase que programa el sonar SRF08
public class SRF08
{
final static char CLS = '\u0010';
final static char HOME = 0x01;
// Bus phillips i2c --> SDA en pin 14; SCL en pin 15
static I2C i2cBus = new I2C(CPU.pin15, CPU.pin14);
// Variable para direcci
I must capture the accleration for the ADXL202, but I never use this type of dispositive.
For example, for the sensor SRF08 I had to use this source
[code]
import stamp.core.*;
import stamp.peripheral.io.I2C;
// Clase que programa el sonar SRF08
public class SRF08
{
final static char CLS = '\u0010';
final static char HOME = 0x01;
// Bus phillips i2c --> SDA en pin 14; SCL en pin 15
static I2C i2cBus = new I2C(CPU.pin15, CPU.pin14);
// Variable para direcci
Comments
http://www.analog.com/UploadedFiles/Data_Sheets/ADXL202E.pdf
there are 2 dutycycle outputs (X and y).
Acceleration is proportional to the dutycycle T1/T2.
T2 is set by an external resistor and needs only to be measured at a low rate
to compensate for temperature.
You can get T1 (high pulse) and T2-T1 (low pulse) by using CPU.pulsIn().
Edit: see this application note
http://www.analog.com/UploadedFiles/Application_Notes/320058905AN604.pdf
more application notes (including basic stamp)
http://www.analog.com/en/prod/0,2877,ADXL202,00.html
click "Application notes"
regards peter
Post Edited (Peter Verkaik) : 5/13/2007 10:23:28 AM GMT