Arduino ADXL345 Accelerometer - How to read out the Arduino ADXL345

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 มิ.ย. 2024
  • The Arduino ADXL345 Accelerometer is a great sensor for measuring all your accelerating needs. With the tiny Arduino ADXL345 sensor you are able to receive the XYZ axis values and it's corresponding G force. In this video we will take a closer look on how to read out these values from the get go.
    If you would like to support my Patreon page and enable me to keep creating this kind of videos, that would be awesome:
    / 48660547
    www.patreon.com/asali
    Credits:
    Music:
    Classique - Francis Preve
    Video icons:
    Licensed by creativecommons.org/licenses/b...
    XYZ axis icon by www.flaticon.com/authors/curs...
    Falling apple icon by www.flaticon.com/authors/freepik
    Phone icon by www.flaticon.com/authors/freepik
    Arrow icon by www.flaticon.com/authors/lyolya
    Line icon by www.flaticon.com/authors/becris
    Background photo by Henry & Co. from Pexels

ความคิดเห็น • 8

  • @vantasy5335
    @vantasy5335 3 ปีที่แล้ว +4

    Saaaaaay whaaat!!! He's alive!!!

  • @tcurdt
    @tcurdt ปีที่แล้ว

    There are different versions of the module out there. It seems like the most common ones don't have a level shifter which means the IO lines should be limited to 3.3V. So a direct connection to a 5V Arduino might not be the best idea.

  • @awihamzahrambe3012
    @awihamzahrambe3012 2 ปีที่แล้ว

    Hello, sir. If we want the reading only for the Y axis, what is the form of the coding, sir?

  • @Darkshar13
    @Darkshar13 ปีที่แล้ว +4

    #include

    int ADXL345=0x53;
    String x,y,z;
    void setup()
    {
    Serial.begin(9600);
    Serial.println("Iniciar");
    Serial.println();
    Wire.begin() ;

    }
    void loop()
    {
    //leer los valores e imprimirlos
    Wire.beginTransmission(ADXL345);
    Wire.write(0x32);
    Wire.endTransmission(false);
    Wire.requestFrom(ADXL345, 6 ,true);
    x =getWireRead();
    y =getWireRead();
    z =getWireRead();
    Serial.println(" X : " + x + "g Y : " + y + "g Z : " + z + " g " );
    delay(100);
    }

    float getWireRead(){
    float value = ( Wire.read () | Wire.read()

  • @alienpredator1973
    @alienpredator1973 2 ปีที่แล้ว +1

    but can i use for positional tracking

  • @jan7641
    @jan7641 3 ปีที่แล้ว

    Will you ever do a face reveal?