Arduino ADXL345 Accelerometer - How to read out the Arduino ADXL345

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024

Комментарии • 9

  • @vantasy5335
    @vantasy5335 3 года назад +4

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

  • @Darkshar13
    @Darkshar13 Год назад +7

    #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()

  • @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.

  • @BasitKhan-te4ls
    @BasitKhan-te4ls 2 месяца назад

    Can you please provide this code?

  • @alienpredator1973
    @alienpredator1973 2 года назад +1

    but can i use for positional tracking

  • @awihamzahrambe3012
    @awihamzahrambe3012 2 года назад

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

  • @jan7641
    @jan7641 3 года назад

    Will you ever do a face reveal?