Reliable application for accelerometers?
Hi everyone. I'd need to be able to record accelerometers values and graph them later. The measure should last around 30 minutes. Can anyone recommend an application for that? Thanks in advance. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reliable application for accelerometers?
KaZeR wrote: Hi everyone. I'd need to be able to record accelerometers values and graph them later. The measure should last around 30 minutes. Can anyone recommend an application for that? Thanks in advance. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community the only thing you need to do is to pipe /dev/input/event2 or /dev/input/event3 into a file. The analysis of the data can be done later. You will get a lot of data though after 30 minutes. This is a python script reading and evaluating the data. Its not mine. I think I got it from the wiki somewhere. Do a hexdump /dev/input/event3 to get an impression how much data we are talking about first. #!/usr/bin/python import struct from math import sqrt x = 0 y = 0 z = 0 secondsensorfile = /dev/input/event2 #int, int, short, short, int fmt = 'iihhi' #open file in binary mode in_file = open(secondsensorfile,rb) event = in_file.read(16) while event: (time1,time2, type, code, value) = \ struct.unpack(fmt,event) time = time1 + time2 / 100.0 if type == 2: if code == 0: x = value if code == 1: y = value if code == 2: z = value if type == 0 and code == 0: sum = int(sqrt(x*x + y*y + z*z)) print x, y, z, sum event = in_file.read(16) in_file.close() ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reliable application for accelerometers?
As far as I know, such an application doesn't exist, but easy to write your own. You just read acc. values from /dev/something On Sun, Dec 14, 2008 at 10:42 AM, KaZeR ka...@altern.org wrote: Hi everyone. I'd need to be able to record accelerometers values and graph them later. The measure should last around 30 minutes. Can anyone recommend an application for that? Thanks in advance. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community -- - Atilla Filiz Eindhoven University of Technology Embedded Systems, Master's Programme ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reliable application for accelerometers?
On Sun, Dec 14, 2008 at 4:42 AM, KaZeR ka...@altern.org wrote: Hi everyone. I'd need to be able to record accelerometers values and graph them later. The measure should last around 30 minutes. Can anyone recommend an application for that? You might find this page useful. http://wiki.openmoko.org/wiki/Accelerometer_data_retrieval N.- ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community