Go Down

### Topic: arduino and vibrations (Read 3580 times)previous topic - next topic

#### steph3310

##### Feb 06, 2014, 05:58 pm
I'm new to Arduino using. How can I use Arduino to take measure of vibrational characteristics of a beam?

#1
##### Feb 06, 2014, 07:48 pm
Attach an accelerometer to the beam, and read its outputs.
An example:
https://www.sparkfun.com/products/10955
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

#### steph3310

#2
##### Jul 22, 2014, 06:53 pm
thks!
noq i want to plot the data as function of time

#3
##### Jul 24, 2014, 04:29 pm
Try sending it to this program on a PC:
http://www.negtronics.com/simplot
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

#### Youssef_Ismail

#4
##### Aug 31, 2014, 08:23 am
Steph3310,

Or get a data logger shield that records the data you gather from the accelerometer to an sd card.  Then you can just download the data to a spread sheet and analyze it, plot it etc...

Here is such a shield https://www.adafruit.com/products/1141

Good Luck!

#### steph3310

#5
##### Sep 04, 2014, 08:47 pm
I receive data in m/s^2  but I want to convert this data to displacement....Help pls!

#6
##### Sep 04, 2014, 09:53 pm
If I recall,
s = sqrt (1/2 * A * T^2)
(or something pretty close to that - freshman year physics I think, long time ago, in a galaxy far, far away the next state over)
s = distance, A =acceleration, T = time
You want s, you appear to be getting A, so you just need to know how long the A was applied for.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

#### steph3310

#7
##### Sep 05, 2014, 02:57 pm
ok! but the problem is the time....because I use the code of ADXL3xx in arduino. I also want to know how to change the code to include the time.
I'm very a beginner to programmation

#### d_vee

#8
##### Sep 20, 2014, 02:38 am
I you're just taking the data from your sensor and printing it to the Serial Monitor or passing it to another program, you could get the time the measurement is taken at using the millis() function immediately after you receive the sensor data in your code.

#### jremington

#9
##### Sep 20, 2014, 05:20 am
If the beam is vibrating harmonically at a single frequency, then at some point on the beam the lateral displacement X can be written  as X = C*sin(2*pi*f*t) where f is the frequency in Hz, C is the maximum displacement, t is time in seconds and pi = 3.14159... .

The lateral acceleration A of that point on the beam is then (neglecting sign changes) A = C*(2*pi*f)2 sin(2*pi*f*t) .

So, if you measure the lateral acceleration A as a function of time, you can work backward to get X = A/(2*pi*f)2 as a function of time.

Go Up

Please enter a valid email to subscribe