Name = 'Plot of Ground to 13th Floor Acceleration in y-direction', linspace( 0, len(time_vec), len(time_vec) + 1) Print( "Approximate Distance Traveled: " + str(dist_approx * 3.28084)) Interv_to_int = interv_to_intĭat_val = dat_val -np. linspace(n_start,n_end,n_end -n_start + 1,dtype = int)) # time_mon.append(int(row)) # time_vec.append(int(t_hr)) Import otly as py import aph_objs as go import csv import numpy as np from scipy import integrateįile_name = 'G_to_13th_fl' with open(file_name + '.csv') as csvfile: savefig( 'bldg_fitting.png',transparent = True,dpi = 400)
Props = dict(boxstyle = 'round',facecolor = 'wheat',alpha = 0.5,ec = 'k') ylabel( 'Distance Calculated ',fontsize = 18) xlabel( 'Number of Floors Traveled',fontsize = 18) title( 'Fitting Distance Calculated by Accelerometer With Floor Height',fontsize = 18) plot(bldg_floors,poly_map(bldg_floors),label = 'Fit') plot(bldg_floors,bldg_heights,label = 'Data') Import numpy as np import matplotlib.pyplot as plt #('ggplot')īldg_heights = # polyfitting for floor height # import matplotlib as mpl The goal for this project was to analyze the maximum accelerations of a specific elevator (located in the Marshak Science Building on the campus of the City College of New York, see Figure 7), and examine the accuracy of numerical integration of a MEMS accelerometer to approximate distance traveled. These, however, will be discussed during the analysis section. However, the accuracy of the sensor itself proved to be less than ideal, along with positioning inaccuracies, as well as other shortcomings. The ADX元45 is capable of 100 samples/sec, so there was no worry of accuracy in time. That way, I was able to telemeter the acceleration data at roughly 17 samples/second in real time. I used an ADX元45 (datasheet here, get one here), and interfaced with an Arduino and an iPhone using the HM-10 module and Bluetooth. With all of this in mind, along with the knowledge of how a MEMS accelerometer works, I decided to verify Newton's 2nd law and the theory of gravitation (on earth's surface, at least).
If an elevator is accelerating upward, then a mass's weight will increase, and the opposite is true for a descending elevator. On an elevator, weight fluctuates based on the acceleration of the vessel.