top of page

Gravity timer Python code for all

#code to measure acceleration due to gravity by dropping a ball from head Can be done on phones too



import time

n=3

S=5.5*.3

for i in range(10):

a=input() #Press just before dropping after putting ball near head

start=time.time()

b=input() #Press random key just after it hits ground

stop=time.time()

falltime=stop-start

g= 2*S/falltime**2

print('h=5.5 ft Time = ',round(falltime,2),' s ' ,round(g,2), ' m/s^2')



'''


Can make apps, excel sheets etc


old Time = 0.3962876796722412 s g= 21.01322925251021


h=5.5 ft Time = 0.47 s 15.14 m/s^2 tennis ball


h=5.5 ft Time = 0.47 s 14.96 m/s^2 football


Next improvement is to add data analysis on 10 drops.


Will upload in Github as Gravitytimer.py hope to get 1 million follows


There are amazing projects like LIGO



https://github.com/harishravi121/Pythoncodes/blob/master/Gravitytimer3.py

'''




 
 
 

Recent Posts

See All
Conic

How is conic in space related to 2 which gives same 2 exponenent in time from accelration of parabola is Prof. Newton's first book.. which I bought in kindle

 
 
 
The 25 Mb lock in research since dc motor paper

[3/18, 4:48 PM] Harish Exinc: Hi I would like to submit the files and give a talk to students of class x-x12 and btech [3/18, 4:49 PM] Harish Exinc: In a tv or projector with usb drive attachment time

 
 
 
Maze solver question making app in gmaps

[3/13, 12:29 PM] Harish Exinc: Hi folks honestly after doing flood fill algorithm with paper I want to pick up a name of a shop on road and play flood fill however the destination isn't marketed perfe

 
 
 

Comments


bottom of page