Categorías
Ref. AKC-108.KS0012
Adxl345 modulo acelerometro 3 ejes para arduino/funduino
Stock: 10 Ref. AKC-108.KS0012
Precio (IVA inc.) 7,90 €


Envío Rápido
en 14h o 24/48h

Pago Seguro
Tarjeta, Bizum...

Garantía
Calidad asegurada

Especialistas
Consulta tus dudas
Especificaciones
Especificaciones:
2.0-3.6VDC Supply Voltage
Ultra Low Power: 40uA in measurement mode, 0.1uA in standby@ 2.5V
Tap/Double Tap Detection
Free-Fall Detection
SPI and I2C interfaces
Size: 30*20mm
Weight: 3g
Sample Code
/*
The circuit:
VCC: 5V
GND: ground
SCL: UNO SLC
SDA: UNO SDA
This example code is in the public domain.
*/
#include
// Registers for ADXL345
#define ADXL345_ADDRESS (0xA6 >> 1) // address for device is 8 bit but shift to the
// right by 1 bit to make it 7 bit because the
// wire library only takes in 7 bit addresses
#define ADXL345_REGISTER_XLSB (0x32)
int accelerometer_data[3];
// void because this only tells the cip to send data to its output register
// writes data to the slave's buffer
void i2c_write(int address, byte reg, byte data) {
// Send output register address
Wire.beginTransmission(address);
// Connect to device
Wire.write(reg);
// Send data
Wire.write(data); //low byte
Wire.endTransmission();
}
// void because using pointers
// microcontroller reads data from the sensor's input register
void i2c_read(int address, byte reg, int count, byte* data) {
// Used to read the number of data received
int i = 0;
// Send input register address
Wire.beginTransmission(address);
// Connect to device
Wire.write(reg);
Wire.endTransmission();
// Connect to device
Wire.beginTransmission(address);
// Request data from slave
// Count stands for number of bytes to request
Wire.requestFrom(address, count);
while(Wire.available()) // slave may send less than requested
{
char c = Wire.read(); // receive a byte as character
data[i] = c;
i++;
}
Wire.endTransmission();
}
void init_adxl345() {
byte data = 0;
i2c_write(ADXL345_ADDRESS, 0x31, 0x0B); // 13-bit mode +_ 16g
i2c_write(ADXL345_ADDRESS, 0x2D, 0x08); // Power register
i2c_write(ADXL345_ADDRESS, 0x1E, 0x00); // x
i2c_write(ADXL345_ADDRESS, 0x1F, 0x00); // Y
i2c_write(ADXL345_ADDRESS, 0x20, 0x05); // Z
// Check to see if it worked!
i2c_read(ADXL345_ADDRESS, 0X00, 1, &data);
if(data==0xE5)
Serial.println("it work Success");
else
Serial.println("it work Fail");
}
void read_adxl345()
{
byte bytes[6];
memset(bytes,0,6);
// Read 6 bytes from the ADXL345
i2c_read(ADXL345_ADDRESS, ADXL345_REGISTER_XLSB, 6, bytes);
// Unpack data
for (int i=0;i accelerometer_data[i] = (int)bytes[2*i] + (((int)bytes[2*i + 1]) }
}
// initialise and start everything
void setup() {
Wire.begin();
Serial.begin(9600);
for(int i=0; i accelerometer_data[i] = 0;
}
init_adxl345();
}
void loop() {
read_adxl345();
Serial.print("ACCEL: ");
Serial.print(float(accelerometer_data[0])*3.9/1000);//3.9mg/LSB scale factor in 13-bit mode
Serial.print("\t");
Serial.print(float(accelerometer_data[1])*3.9/1000);
Serial.print("\t");
Serial.print(float(accelerometer_data[2])*3.9/1000);
Serial.print("\n");
delay(100);
}
Link: http://wiki.keyestudio.com/index.php/Ks0012_keyestudio_ADXL345_Three_Axis_Acceleration_Module
Datos técnicos
- Alimentación: 2.0-3.6 VDC
- Consumo: 40 µA (medición)
- Interfaces: SPI, I2C
- Características: Tap, doble tap, caída libre
- Tamaño: 30x20 mm
- Peso: 3 g
Preguntas frecuentes
¿Qué es el módulo ADXL345?
Un acelerómetro de 3 ejes para proyectos Arduino.
¿Cuál es el rango de voltaje de alimentación?
Funciona entre 2.0 y 3.6 VDC.
¿Qué interfaces de comunicación soporta?
Soporta SPI y I2C.
¿Cuánto consume en modo medición?
Consume 40 µA.
¿Qué características especiales tiene el módulo?
Detección de tap, doble tap y caída libre.
OTROS PRODUCTOS RELACIONADOS
- Ref.: AKC-108.MD9079Max3232 rs232 a ttl serial port converter moduleStock: 1Precio (IVA inc.) 1,525 €
Unidades ≥ 10 ≥ 20 ≥ 30 ≥ 50 DescuentoDescuentoprecio -3%-0,051,48 -5%-0,081,45 -7%-0,111,42 -10%-0,151,37 - Ref.: AKC-108.MD9022Joystick biaxial de 10k con salida analogica y digital 9pinStock: 90Precio (IVA inc.) 1,936 €
Unidades ≥ 5 ≥ 10 ≥ 20 ≥ 30 DescuentoDescuentoprecio -3%-0,061,88 -5%-0,101,84 -7%-0,141,80 -10%-0,191,74 - Ref.: AKC-108.KS0027Modulo transmisor ir digital para arduino/funduinoStock: 84Precio (IVA inc.) 0,908 €
Unidades ≥ 25 ≥ 40 ≥ 50 ≥ 60 DescuentoDescuentoprecio -3%-0,030,88 -5%-0,050,86 -8%-0,070,83 -10%-0,090,82 - Ref.: AKC-108.MD9201/MModulo conector macho usb-c 3.1 24pinStock: 37Precio (IVA inc.) 2,372 €
Unidades ≥ 5 ≥ 10 ≥ 15 ≥ 20 DescuentoDescuentoprecio -3%-0,072,30 -5%-0,122,25 -7%-0,172,21 -10%-0,242,13 - Ref.: AKC-108.MD0121Modulo mp3 con microfono en placa vs1003 para arduino/funduinoStock: 10Precio (IVA inc.) 17,424 €
- Ref.: AKC-108.MD9115Ads1115 12c módulo adc de 16 bits y 4 canales con amplificador de ganancia prog. de 2.0v a 5.5vStock: 110Precio (IVA inc.) 3,388 €
Unidades ≥ 5 ≥ 10 ≥ 15 ≥ 20 DescuentoDescuentoprecio -3%-0,103,29 -5%-0,173,22 -7%-0,243,15 -10%-0,343,05 - Ref.: AKC-108.MD0738/24VStc-3028 sensor controlador de temperatura y humedad 24vdcStock: 22Precio (IVA inc.) 19,058 €
Unidades ≥ 2 ≥ 5 DescuentoDescuentoprecio -3%-0,5718,49 -5%-0,9518,10 - Ref.: AKC-108.MD0738/12VStc-3028 sensor controlador de temperatura y humedad, 12vdcStock: 9Precio (IVA inc.) 21,429 €
Unidades ≥ 1 ≥ 2 ≥ 3 ≥ 4 DescuentoDescuentoprecio -3%-0,6420,79 -5%-1,0720,36 -7%-1,5019,93 -10%-2,1419,29 - Ref.: AKC-108.MD9019Ft232rl ftdi usb a serial modulo ttlStock: 0Precio (IVA inc.) 4,864 €
Unidades ≥ 5 ≥ 10 ≥ 15 ≥ 20 DescuentoDescuentoprecio -3%-0,154,72 -5%-0,244,62 -7%-0,344,52 -10%-0,494,38













