Measuring & Plotting Acceleration values | Arduino - ADXL335 Accelerometer Tutorial

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

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

  • @Godshole
    @Godshole 3 года назад +2

    This is GOLD. Thank you so much for the simple to follow, step by step guide that has allowed me to be able to measure traffic vibration and road surface quality. Even if it is a bit rough and not super accurate it gives me a good indication. Thank YOU.

  • @AmishaSharma_1
    @AmishaSharma_1 3 года назад +1

    Very well explained sir.. Thank you..

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

    Wonderful. Helped a lot in PG Project. Keep up your good work

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

    Youu sirr deserverd a subscribe! thank you for the tutorial

  • @detectivejerry8488
    @detectivejerry8488 11 месяцев назад

    Thank you very much bro

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

    excellent tutorial...thank u

  • @maxofaolain4509
    @maxofaolain4509 Год назад

    What should I do if I’m using I2C connection? I don’t have 3 individual pins for x y z. I’m using the ADXL345

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

    Thanks for a very helpful video, sir. May I know why you use -100 and 100 as the mapping values and not -1000 and 1000? Thank you.

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

    thank you bro

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

    Thanks for your great video. I wondered in the section of obtaining mapping values and normalized acceleration values, why do you use 100 to divide by for z-axis, but -100 for x and y-axis?

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

      Its all sign conventions. You can take anything. I took -ve for Z-axis because I wanted gravitational acceleration to be displayed as positive. No other reason.

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

      @@MechStuff Oh thanks, got it.

  • @NoOne-mr3bk
    @NoOne-mr3bk 2 года назад +1

    This is really helpful! I just have a question. After the calibration and the attempt in using it as a sensor, can I have more decimal number results like 1.7364363 instead of 1.74?
    This doesn't happen by just increasing the number of decimals in the output it just adds zeroes (1.7400000) Thanks!

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

      Umm.. I think you could do it by changing the type from "int" to "long" or something like that. Haven't tried out. Let me know if it works out ;)

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

    thanks

  • @akshatp4861
    @akshatp4861 Год назад

    Can we connect wifimodule to sent sensor data to cloud

  • @user-ss2ex8jk4k
    @user-ss2ex8jk4k 9 месяцев назад

    i want to interface ADXL335 with esp8266, how can i do that??

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

    The adxl335 doesn't give stable readings. Values have wide range. What could be the issue?

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

    I am getting constant values like 0 682 681. There is no change in values. How to fix this problem ?? Please help.

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

    how can i get this to turn a light on when it detects deceleration

  • @rahulss545
    @rahulss545 8 месяцев назад

    Bro this code site showing error, can u fix it

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

    How many data points per second can you get on each axis? What do you think the fastest would be?

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

      Hello! I think it depends on the delay you give. For example, I have given 100 ms delay in this project, so it will read the values 10 times in a second. You can reduce the delay and fetch it more number of times.

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

    Vey nice ! how convert the measure from the sensor to g values ?

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

      Hello! That is what the whole video is about George. Check the video from 3:00

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

    Hey sir, is it possible to connect it to a ESP8266 i want to make it wireless if you have a code for it thank you!

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

    Do you know how to convert G units from ADXL335 to velocity units?
    I need to convert it so i can compare the velocity units with ISO 2372 for monitoring.
    Thank you..

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

      You can not convert acceleration into velocity because velocity is rate of change of acceleration , so you will need to have one more additional parameter, that is time.
      For example:
      At time t=0 , let us assume your vel is 0.
      Then at t=10 secs you have to find out your velocity. Now if you have maintained constant acceleration of 10m/s^2 then in 10 secs you would attain a velocity of 10*10= 100m/s velocity. So you can not depend on these values only.

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

    Hey just asking, is it possible to make it with a buzzer too? So when it shakes the buzzer turns on. I was planning to use a buzzer, but I don't know how to do it. If you can respond ill love that and can you make it with a buzzer? Sure do all of us love that :D

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

      Hello! Definitely you can! I don't see why you can't!
      I wonder for what application you need such set-up 😆

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

    Hi bro, did you know how can we convert from g unit to mm/s unit -> vibration velocity?

    • @abdeljalilbouallegui3776
      @abdeljalilbouallegui3776 Год назад

      G is an acceleration. It's different than velocity mm/s

    • @highcontroltech
      @highcontroltech Год назад

      @@abdeljalilbouallegui3776 so how can i grab the vibration velocity?

    • @abdeljalilbouallegui3776
      @abdeljalilbouallegui3776 Год назад

      @@highcontroltech V = A / (2 * pi * f),
      V , velocity
      A, acceleration,
      This is elementary physics rules

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

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

      Hello, have you given 5v supply? If yes, connect it to 3.3v.

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

    can i meassure vibration with ADXL345?

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

      Hello, what do you exactly mean by "measuring vibration"?

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

      Yes sir

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

    Hi bro,
    Arduino: 1.8.15 (Windows Store 1.8.49.0) (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
    ADXL335_calibration:30:18: error: 'A3' was not declared in this scope
    const int xpin = A3; // x-axis of the accelerometer
    ^
    ADXL335_calibration:31:18: error: 'A2' was not declared in this scope
    const int ypin = A2; // y-axis
    ^
    ADXL335_calibration:32:18: error: 'A1' was not declared in this scope
    const int zpin = A1; // z-axis (only on 3-axis models)
    ^
    exit status 1
    'A3' was not declared in this scope
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    I get this error, what should I do;

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

      You have not defined the pin numbers. Please copy the exact code, I have shared or share your code

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

    can you please share the code

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

      Hello, I have already shared the code link. Please check out description for the link :)