Reply
Thread Tools
Flandry's Avatar
Posts: 1,559 | Thanked: 1,786 times | Joined on Oct 2009 @ Boston
#41
Still curious about the dbus question a few posts up. Much obliged to anyone who can answer or point me in the right direction.
__________________

Unofficial PR1.3/Meego 1.1 FAQ

***
Classic example of arbitrary Nokia decision making. Couldn't just fallback to the no brainer of tagging with lat/lon if network isn't accessible, could you Nokia?
MAME: an arcade in your pocket
Accelemymote: make your accelerometer more joy-ful
 

The Following User Says Thank You to Flandry For This Useful Post:
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#42
Originally Posted by wahlau View Post
thanks. that answers my answer pretty well!

i wonder if there will be Sensor API-like on the S60 Platform interfaces on N900. that would make many things simpler...
We are working on this (it will be more advanced, but API for accelerometer will be there also) for C++ It goes really nicely with Qt.
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
 

The Following User Says Thank You to hopbeat For This Useful Post:
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#43
Originally Posted by Flandry View Post
Still curious about the dbus question a few posts up. Much obliged to anyone who can answer or point me in the right direction.
AFAIK official DBUS API/docs are not yet available
 

The Following User Says Thank You to attila77 For This Useful Post:
dormant's Avatar
Posts: 332 | Thanked: 76 times | Joined on Oct 2007 @ St. Augustine, Trinidad and Tobago
#44
Does anyone know anything about the internal workings of the accelerometers used on the N900? My interest is professional - I know quite a lot about seismometers and full-size accelerometers.

I had assumed (perhaps foolishly) that it used piezo-electric accelerometers. These and all the other small motion sensors that I know about are only capable if giving an output in response to a change in position. They give no output at all if the device is not moving and so could not be used to determine the orientation of a static device.

The wiki page demonstrates that the N900 accelerometers do vary their output with orientation and so can be used to determine orientation.

For the life of me, I can't work out how they do it.
__________________
  • N900
  • N800
  • LD-3W
  • two magic OTG USB adapters
  • crossed fingers
 

The Following User Says Thank You to dormant For This Useful Post:
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#45
Pure Magic ®

Seriously, no idea. But I can confirm, that it is able to give you value of Earth g.
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
 

The Following User Says Thank You to hopbeat For This Useful Post:
Posts: 10 | Thanked: 81 times | Joined on Nov 2009 @ Espoo
#46
Originally Posted by dormant View Post
The wiki page demonstrates that the N900 accelerometers do vary their output with orientation and so can be used to determine orientation.

For the life of me, I can't work out how they do it.
An accelerometer _must_ vary its output depending on orientation, as we're constantly under the force of gravity. Turn the device upside-down, and the reading should go from (0,0,-1) to (0,0,1).

If you want to know how these kinds of accelerometers are made, and work, I seem to remember that Freescale Semiconductor had some interesting application notes on their website which included electron micrographs of the innards - wonderful structures. Nokia don't use FSL accelerometers, it's just that I previously worked at FSL and am more familiar with their sensors than any others. The n900's is an ST device, in fact, and the specs are publically available.

Ditto the kernel source - it is all open, so just take a peek at the lis302dl driver. There are some features that aren't utilised, but all the bread-and-butter stuff's supported. There's a trivial sysfs interface for reading the current value, so even shell scripts can use it!

In fact, the running and jumping code in Oliver McFadden's quake3 arena demo just uses that sysfs accelerometer interface. I know that, as I wrote it '-)
 

The Following 4 Users Say Thank You to FatPhil For This Useful Post:
Posts: 27 | Thanked: 55 times | Joined on Nov 2009 @ By the swamp
#47
Nokia has used ST's accelerometers in the past (at least my 5800 XM that I accidentally drowned in beer had a digital ST accelerometer, pretty much the only component that Google told anything interesting about but can't remember the exact number now), so I wouldn't be surprised to find an ST accelerometer in the N900 as well. ST has done it quite elegantly: they sniff out the capacitance variations between micromachined or etched beams of coated silicon placed perpendicular to each other. Movement causes the masses at the ends of the beams to follow more "slowly", causing a measurable variation in capacitance due to bending of the structures. The datasheet tells you more, just see ST's web pages.
 

The Following 3 Users Say Thank You to Kurare For This Useful Post:
Posts: 10 | Thanked: 81 times | Joined on Nov 2009 @ Espoo
#48
Originally Posted by Kurare View Post
ST has done it quite elegantly: they sniff out the capacitance variations between micromachined or etched beams of coated silicon placed perpendicular to each other. Movement causes the masses at the ends of the beams to follow more "slowly", causing a measurable variation in capacitance due to bending of the structures. The datasheet tells you more, just see ST's web pages.
Yup, they're beautiful (to a geek!). Accelerometers designed for different numbers of axes can have different designs, but they all rely on the sprung pendulum you describe . On the whole the 3 axes ones are the most intricate, so my favourites.
 

The Following User Says Thank You to FatPhil For This Useful Post:
Posts: 1 | Thanked: 1 time | Joined on Jan 2010
#49
Hi,

I'm porting a medical application which measures activity levels of seniors using the N900 accelerometer. It requires accurately timed accelerometer samples. I've looked at the accelerometer driver and it uses an interrupt to read the accelerometer which is likely to result in precise sample times, but that precision in timing is lost when accessing the accelerometer data via the DBUS or via it's file device interface because DBUS calls can be delayed by system events, as can reads from the file device. I've tried both and the jitter is unacceptable (4 milliseconds variation at best when no other apps are running and 50 milliseconds with an audio app running with a 100Hz sample rate). Perhaps the accelerometer data should include a timestamp from the driver?
Or maybe I can just assume a precise interval between readings if I read faster than the default sample rate of 100Hz (if I read data at 200Hz each reading should repeat twice so I'd be able to tell individual readings apart as long as they were changing)?

Ron
 

The Following User Says Thank You to rapjr7 For This Useful Post:
Reply

Tags
accelerometer, fremantle


 
Forum Jump


All times are GMT. The time now is 11:55.