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
~-~~-~~~-~~-~
Thank you, this has helped me for a signal acquisition job.
Hi, could I use this on a vehicle to activate the brake light's when it senses the vehicle slowing down
Is there a way to adjust the sensitivity of the sensor?
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??
Can you help me please?
I did the same but it gives me other higher values example x 1741 y2101
z 1520 why?
Where can I find ADXL335 library for proteus sir
Can this accelerometer be used standalone without the arduino? For instance, the analog outputs simply turn on a led for a brakelight when decelerating?
No, they simply output a data stream
excelente la explicación, muy buen vídeo. gracias.
Where gave the input to accelerometer sensor
It means have u place ur hands on accelerometer for readings
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
what are these values in the following code?
float x1=(((float)x - 331.5)/65*9.8);
How can I get acceleration data in m/s2 from this output value? Thanks.
It's already in m/s2, isn't it ?
Have you checked the data sheet ?
does it work with Arduino NANO
Why does the axis’ value wouldn’t turn to 0 even though it wasn’t tilted or moved?
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?
dewduni dealwis no it just measures acceleration in 3 axies. a gyroscope measures angular displacement.
@@learnelectronics hello what are your recommendations for a gyro sensor on a microcontroller (PIC)?
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
Mahmoud Eltobgy those are just arbitrary values showing movent in one of the directions.
Hi! first of all, thanks for the tutorial! Can you explain how to convert those values in real acceleration?
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.
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.
Thanks
please demonstrate something using this so that it can be used as a motion sensor.....like swinging hand and turning on/off LED
this is exactly what i want to use mine for
Hello! How does this sensor work with a micro controller (PIC) ? And do you have an idea about the assembly code?
It sends analog values for each Axis. I don't do assembly code sorry.
you can get assembly code from me (whatsapp;+916239465569)
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?
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.
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??
elaborate your question!
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
No I usually see values that differ between 50 and 100 units.
Ok thanks I would say it broken, Appreciate you taking the time.
Nicholas Muir no problem
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?
Michael Padovani you are correct
how can i use the accelerometer with the stm32f4 discovery board to read and display its analog values???
i did with stm32f4, there is mbed library for that.
Thanks a lot. Video helped.
Prasanna Deshpande glad it helped.
can it be used as a speedometer?
how i can get the accelorometer readings in matlab ... please help me with that
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.
hey ihave solution ; u can use mpu6050 here if u need acceleration and gyro value
is this stuff can used in car crash detection project?
Sure
Hi. Can this sensor measure the vibration?
It could yes
Good video
what actually does that data values indicates?? what is the unit
Balaji V the data values are arbitrary. but their trend, either up or down shows movement on that axis.
Subbed
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??
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.
possible to convert it into a graphical representation?
Faris Khan Arduino IDE has a graph plotter that uses Arduino's serial output as input values
Faris Khan Faris, yes it is. I'll do that in a future project.
Thoose numbera are meaningless. Why dont you tell how to read real world metric values ( m/s^2 )
puije utiliser cette accelerometre en ligue des champions svp
*it doesn't require any libraries to use* technically nothing does
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);
}