playing with accelerometer of Nokia 5800

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,592
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 21, 2010

Wrote two simple java applications:
First one sends sensor reading from phone over WiFi, and second app on PC receives that data and charts each axis of accelerometer in different color.

Chart shows 1g (but in strange int numbers) acceleration from earth gravitation on different axises of the sensor. This actually simulates gyro. At the end of the video I zoom in on chart line to show sensor noise. Going to use Kalman filter to reduce it.
Also at the end I show CPU load. It is caused by moving chart which contains too much points and lines - when I pause charting but continue receiving data, CPU load goes down to normal idle level.

Charting: used JFreeChart library: http://www.jfree.org/jfreechart/

Networking:
On phone - converting measured values + measurement time to byte array (big endian of course ;) ) and sending as UDP datagrams to specified IP:port.
On PC - used my library for UDP comm from Java Autopilot project. But using standard datagram facilities of java is also very easy.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • how i can do that????

  • can u please send me both apps for the pc and phone my email id is sunnyduvani@gmail.com

    i was trying to make the same kind of app using qt sdk for nokia and c# for pc ..

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more