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 €
| Unidades | ≥ 10 | ≥ 20 | ≥ 30 | ≥ 50 |
| DescuentoDescuentoprecio | -3%-0,051,48 | -5%-0,081,45 | -7%-0,111,42 | -10%-0,151,37 |


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
OTROS PRODUCTOS RELACIONADOS
- Ref.: AKC-108.MD0693Modulo cp2102 usb a ttl, high speed stc download, hard brushStock: 43Precio (IVA inc.) 4,465 €
Unidades ≥ 3 ≥ 5 ≥ 8 ≥ 10 DescuentoDescuentoprecio -3%-0,134,33 -5%-0,224,24 -7%-0,314,15 -10%-0,454,02 - Ref.: AKC-108.MD0121Modulo mp3 con microfono en placa vs1003 para arduino/funduinoStock: 10Precio (IVA inc.) 17,424 €
- 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.MD9095Modulo mini mp3 con salida de altavoz simple para arduinoStock: 108Precio (IVA inc.) 3,061 €
Unidades ≥ 10 ≥ 20 ≥ 30 ≥ 40 DescuentoDescuentoprecio -3%-0,092,97 -5%-0,152,91 -7%-0,212,85 -10%-0,312,76 - Ref.: AKC-108.MD9146Modulo de i/o expansion e/s pcf8574Stock: 37Precio (IVA inc.) 2,602 €
Unidades ≥ 5 ≥ 10 ≥ 15 ≥ 20 DescuentoDescuentoprecio -3%-0,082,52 -5%-0,132,47 -7%-0,182,42 -10%-0,262,34 - Ref.: AKC-108.MD0097Modulo reloj ds1302 para funduino/arduino (sin pila cr2032)Stock: 36Precio (IVA inc.) 1,246 €
Unidades ≥ 10 ≥ 20 ≥ 30 ≥ 40 DescuentoDescuentoprecio -3%-0,041,21 -5%-0,061,18 -7%-0,091,16 -10%-0,121,12 - Ref.: AKC-108.MD0095Ds1307 modulo reloj i2c/24c32 para arduino (pila no incluida)Stock: 3Precio (IVA inc.) 1,258 €
Unidades ≥ 20 ≥ 40 ≥ 60 ≥ 80 DescuentoDescuentoprecio -3%-0,041,22 -5%-0,061,20 -7%-0,091,17 -10%-0,131,13 - 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.MD9079Max3232 rs232 a ttl serial port converter moduleStock: 110Precio (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












