engineering and stuff

Hand Tracking and Recognition With OpenCV

| Comments

Computer Vision is in many ways the ultimate sensor, and has endless potential applications to robotics. Me and 2 classmates (Vegar Østhus and Martin Stokkeland ) did a project in Computer Vision at UCSB and wrote a program to recognize and track finger movements.

Logging Accelerometer From Android to PC

| Comments

I am pretty new to Android and decided to play around with the sensors. I always find accelerometers fun to play with, and like to visualize the sensor reading through a real time plot. In the java-script for the android app below, the acceleration in the x axis is read and streamed through a TCP socket to the PC over wlan. A simple python server script reads the data from a socket and writes it to a perl script, logging the data in GnuPlot, and thus setting my personal record for mixing different languages.

My Vim Setup

| Comments

Vim is a very popular text editor for Unix-like systems, written by Bram Moolenaar. I have been using Vim for a couple of years now and have found some nice features that make it more efficient for my use.

Convert Math Equations to Java or C++ Syntax

| Comments

When writing programs that uses alot of math equations, e.g. in simulations, animations etc I found it tiresome to have to convert equations I got from symbolic math software like Maxima and Maple into c++ or java syntax. I therefor wrote a simple JavaScript that does this automatically, and can be found here. The source is available at github .

Auto Login WiFi – University, Hotels Etc

| Comments

When using the University WiFi I found it annoying that I always had to login through a browser using my university username and password. Using the simple scripts below, this bothersome procedure can be done automatically each time the computer discovers a network.

Makefiles and Autocomplete With Latex

| Comments

I am using Latex a lot and have done some customization in order to speed up the process of writing academic reports. I am using the TeXworks editor. TeXworks is a clean and simple editor, and with the help of a make file and some autotyping it is very efficient.

JOGL - Animation and Dynamics of Furuta Pendulum

| Comments

I wanted to animate a furuta pendulum, and include the real dynamics in the animation. First off, what is a Furuta pendulum? It is a pendulum with two degrees of freedom (see wikipedia) where, from a control engineers’ point of view, one is interested in stabilizing the second arm of the pendulum, by applying torque to the first arm. This poses quite an interesting control problem (much the same as in e.g. a segway). First lets look at the dynamimcs of the furuta pendulum: