Beschleunigungssensor (ADXL345)

          Technische Daten: 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             #include <Wire.h> #define DEVICE (0x53) //ADXL345 device address #define TO_READ (6) //num of bytes we are going to read each time (two bytes for each axis) byte buff[TO_READ] ; //6 bytes buffer for saving data read from the device char str[512]; //string buffer to

Weiterlesen