Description
What is the GY-291 ADXL345 Module? The GY-291 ADXL345 is a three-axis sensor that measures acceleration and magnetic direction. This device offers data transmission via IIC or SPI, making it versatile for various electronics and robotics projects. Features Three-axis ADXL345 Sensor IIC/SPI Interface Measures acceleration and magnetic direction Use Cases The GY-291 ADXL345 modules are useful for navigation, robotics, and mobile device projects. They are compatible with Arduino and ESP. Tutorial: How to Use the GY-291 ADXL345 Digital Compass Module The GY-291 ADXL345 is a three-axis sensor that measures acceleration and magnetic direction. Ideal for navigation, robotics, and mobile device projects. What You Need Arduino or compatible microcontroller USB cable Power supply 3V-5V Steps Connect VCC to +5V of the microcontroller Connect GND to the ground of the microcontroller Connect SDA and SCL to the I2C pins of the microcontroller Install the Adafruit_ADXL345.h library Initialise the sensor in the setup() Read acceleration data in the loop() Example Code Adafruit_ADXL345 adxl; void setup(){ adxl.begin(I2C);} void loop(){ float x, y, z; adxl.getAcceleration(&x, &y, &z); Serial.print(x); Serial.print(








Reviews
There are no reviews yet.