How to use the ADXL335 Accelerometer

Поділитися
Вставка
  • Опубліковано 20 жов 2024
  • How to use the ADXL335 Accelerometer
    In this video we hook up the ADXL335 to the Arduino UNO and read analog values for each of the 3 axis of the unit.
    ~-~~-~~~-~~-~
    Please watch: "Arduino Power Monitor"
    • Arduino Power Monitor
    ~-~~-~~~-~~-~

КОМЕНТАРІ • 67

  • @cruznestorrodriguez6412
    @cruznestorrodriguez6412 Рік тому

    Thank you, this has helped me for a signal acquisition job.

  • @iceman1st1
    @iceman1st1 3 роки тому +1

    Hi, could I use this on a vehicle to activate the brake light's when it senses the vehicle slowing down

  • @johnlestercedalla9230
    @johnlestercedalla9230 4 роки тому +3

    Is there a way to adjust the sensitivity of the sensor?

  • @hari97ravk
    @hari97ravk 7 років тому +1

    Hello!
    Is it possible to measure the spin rate of an object by incorporating accelerometer in it?
    Also how could we possibly use the acceleration values to convert them to display as useful information, like velocity, distance covered, force experienced??

  • @danielapetroaie8217
    @danielapetroaie8217 3 роки тому

    Can you help me please?
    I did the same but it gives me other higher values example x 1741 y2101
    z 1520 why?

  • @dangata3358
    @dangata3358 Рік тому

    Where can I find ADXL335 library for proteus sir

  • @scottwilson1896
    @scottwilson1896 8 місяців тому

    Can this accelerometer be used standalone without the arduino? For instance, the analog outputs simply turn on a led for a brakelight when decelerating?

  • @gilberagaton3624
    @gilberagaton3624 6 років тому

    excelente la explicación, muy buen vídeo. gracias.

  • @dineshperumal1265
    @dineshperumal1265 4 роки тому

    Where gave the input to accelerometer sensor
    It means have u place ur hands on accelerometer for readings

  • @rramirezx8738
    @rramirezx8738 6 років тому +1

    because if I did it as you explained, the same values appear on the arduino screen, it does not change as I move the accelerometer

  • @tareksaid5096
    @tareksaid5096 5 років тому

    what are these values in the following code?
    float x1=(((float)x - 331.5)/65*9.8);

  • @muhammadzakariahossain2447
    @muhammadzakariahossain2447 5 років тому +5

    How can I get acceleration data in m/s2 from this output value? Thanks.

    • @migueldominguez3543
      @migueldominguez3543 5 років тому

      It's already in m/s2, isn't it ?
      Have you checked the data sheet ?

  • @rohinsingh6210
    @rohinsingh6210 2 роки тому

    does it work with Arduino NANO

  • @mr.poggersfronteras6952
    @mr.poggersfronteras6952 4 роки тому

    Why does the axis’ value wouldn’t turn to 0 even though it wasn’t tilted or moved?

  • @dewdunidealwis6859
    @dewdunidealwis6859 7 років тому

    Hello sir!
    Does ADXL335 accelerometer act as a gyroscope ? Because you have been tilting this sensor at certain angles with respect to x,y,z planes to get different readings on the serial monitor. Is it possible to use this sensor and tilt it in different angles to give different conditions or is it only used for movement measurement?

    • @learnelectronics
      @learnelectronics  7 років тому

      dewduni dealwis no it just measures acceleration in 3 axies. a gyroscope measures angular displacement.

    • @miatawil
      @miatawil 5 років тому

      @@learnelectronics hello what are your recommendations for a gyro sensor on a microcontroller (PIC)?

  • @MahmoudEltobgyMego
    @MahmoudEltobgyMego 7 років тому

    are these values the actual acceleration or we need to multiply the value of each coordinate into a factor to get the actual acceleration in this direction ? thanks

    • @learnelectronics
      @learnelectronics  7 років тому

      Mahmoud Eltobgy those are just arbitrary values showing movent in one of the directions.

    • @Mattiaeragiapreso
      @Mattiaeragiapreso 7 років тому +1

      Hi! first of all, thanks for the tutorial! Can you explain how to convert those values in real acceleration?

  • @wk.tucker8803
    @wk.tucker8803 7 років тому

    I'm programming a gimbal system with a Arduino and ADXL335 accelerometer and I need to balance the camera. How would I read the values from the accelerometer to get servos to respond to it.

    • @learnelectronics
      @learnelectronics  7 років тому +1

      Tuxedo1001 WKT well you will need to look at each axis individually. So start with the x axis, and when the value increases you would increase the angle or degree of the servo movement comma and when the value decreases you would decrease the angle or degree of the servo movement. You would do that with each of the three axises.

    • @wk.tucker8803
      @wk.tucker8803 7 років тому

      Thanks

  • @sayantanmaiti2513
    @sayantanmaiti2513 7 років тому

    please demonstrate something using this so that it can be used as a motion sensor.....like swinging hand and turning on/off LED

    • @lilphredd1453
      @lilphredd1453 7 років тому

      this is exactly what i want to use mine for

  • @miatawil
    @miatawil 5 років тому

    Hello! How does this sensor work with a micro controller (PIC) ? And do you have an idea about the assembly code?

    • @learnelectronics
      @learnelectronics  5 років тому

      It sends analog values for each Axis. I don't do assembly code sorry.

    • @sunilkumar-ls2yb
      @sunilkumar-ls2yb 4 роки тому

      you can get assembly code from me (whatsapp;+916239465569)

  • @kunalgupta457
    @kunalgupta457 6 років тому +1

    My understanding from the video is that the sensor can be used to detect tilt of an object containing the sensor, which is what a gyro does. Can someone please tell how to measure acceleration of an object having the sensor or else please tell me why is it called an accelerometer?

    • @shadyengineer1988
      @shadyengineer1988 6 років тому +1

      The accelerometer measures acceleration indeed. If the object is static (not moving) it will measure the gravitational acceleration g=9.81 m/s2 in the downward direction and this is how it can be used to calculate tilt angles for static object by measuring the components of g in both x and y directions and get the inverse tan based on these components.

  • @monikae602
    @monikae602 6 років тому

    I am doing my project based on gesture control.this will be useful for my project.can you give any examples regarding these x, y and z values??

  • @CanalianInc
    @CanalianInc 7 років тому

    Thanks for the video!
    I was wondering why the output is always an integer? I tried changing it to a float but I always get .00. The integer values it gives is only a difference of 2 over about 30 degrees. I.e. A0= 410 at 180 degrees A0 = 408 at 150 degrees. Is it normally that inaccurate?
    Thanks again

    • @learnelectronics
      @learnelectronics  7 років тому

      No I usually see values that differ between 50 and 100 units.

    • @CanalianInc
      @CanalianInc 7 років тому

      Ok thanks I would say it broken, Appreciate you taking the time.

    • @learnelectronics
      @learnelectronics  7 років тому

      Nicholas Muir no problem

  • @michaelpadovani9566
    @michaelpadovani9566 7 років тому

    For a new line, isn't it true that Serial.println() is exactly the same as Serial.print("
    ")? No advantage of using one over the other, correct?

  • @sameenashaikh_29
    @sameenashaikh_29 7 років тому

    how can i use the accelerometer with the stm32f4 discovery board to read and display its analog values???

    • @farrukh4303
      @farrukh4303 6 років тому

      i did with stm32f4, there is mbed library for that.

  • @prasannadeshpande4435
    @prasannadeshpande4435 7 років тому

    Thanks a lot. Video helped.

  • @mohammedzaman1937
    @mohammedzaman1937 5 років тому +2

    can it be used as a speedometer?

  • @rajeswariboggavarapu5571
    @rajeswariboggavarapu5571 4 роки тому

    how i can get the accelorometer readings in matlab ... please help me with that

    • @arnoldc1724
      @arnoldc1724 4 роки тому

      Rajeswari Boggavarapu There are a couple ways to do this. MATLAB has an Arduino library which you can use to interface with it but using it does introduce lag if you were planning on plotting real time data. Another way, if real time plotting doesn't matter to you, is to store the data in an EEPROM module and access the data later. You can find SD Chip Arduino adapters online.

    • @sunilkumar-ls2yb
      @sunilkumar-ls2yb 4 роки тому

      hey ihave solution ; u can use mpu6050 here if u need acceleration and gyro value

  • @efratmarciano7650
    @efratmarciano7650 5 років тому

    is this stuff can used in car crash detection project?

  • @zenmirae93
    @zenmirae93 5 років тому

    Hi. Can this sensor measure the vibration?

  • @vijraw5744
    @vijraw5744 4 роки тому

    Good video

  • @balajiv476
    @balajiv476 7 років тому

    what actually does that data values indicates?? what is the unit

    • @learnelectronics
      @learnelectronics  7 років тому

      Balaji V the data values are arbitrary. but their trend, either up or down shows movement on that axis.

  • @2ntenz
    @2ntenz 5 років тому +1

    Subbed

  • @Hudaif007
    @Hudaif007 7 років тому

    I am making a simple project where I just placed my accelerometer on inclined plane to measure the angle but accelerometer is giving lot of variations and is not stable what are the possibilities for this behaviour??

    • @learnelectronics
      @learnelectronics  7 років тому +2

      abdul hudaif Abdul, you are using the wrong tool for this job. An accelerometer measures movement. what you want is a gyroscope that measures angular displacement.

  • @FARIS__KHAN
    @FARIS__KHAN 7 років тому

    possible to convert it into a graphical representation?

    • @TimurIskhodzhanov
      @TimurIskhodzhanov 7 років тому

      Faris Khan Arduino IDE has a graph plotter that uses Arduino's serial output as input values

    • @learnelectronics
      @learnelectronics  7 років тому

      Faris Khan Faris, yes it is. I'll do that in a future project.

  • @ytkdmr
    @ytkdmr 4 роки тому +1

    Thoose numbera are meaningless. Why dont you tell how to read real world metric values ( m/s^2 )

  • @karimbenzema611
    @karimbenzema611 6 років тому

    puije utiliser cette accelerometre en ligue des champions svp

  • @ameliabuns4058
    @ameliabuns4058 3 роки тому

    *it doesn't require any libraries to use* technically nothing does

  • @juriytrembach421
    @juriytrembach421 7 років тому

    Without any wires............
    const int VCC = A0; // VCC pin
    const int GND = A4; // GND pin
    const int xPin = A1; // x axis pin
    const int yPin = A2; // y axis pin
    const int zPin = A3; // z axis pin
    void setup() {
    pinMode (VCC, OUTPUT);
    digitalWrite (VCC, HIGH);
    pinMode (GND, OUTPUT);
    digitalWrite (GND, LOW);
    }