April 9th, 2009
Having recently acquired a bluetooth GPS receiver for as little as 20 €, and just having switched to KDE 4, i tried to combine those two, and write a little plasmoid to show the current position on the desktop.
And that is basically everything to say, enjoy the little applet.
Installation
Make sure gpsd is installed and set up properly. Also make sure the python bindings are installed.
In Ubuntu you would need to:
sudo apt-get install gpsd python-gps
sudo dpkg-reconfigure gpsd
sudo apt-get install python-plasma python-dev
After those are installed, you can proceed to install the plasmoid with plasmapkg -i.
Tags: gps, plasmoid, python
Posted in Computers | 4 Comments »
March 31st, 2009
LCD Controllers using an HD44780 Display Controller are commonly used for small batch electronic devices, and are popular with electronics fans worldwide. One problem with those controllers is their demand for IO-lines, due too the parallel interface they require at least 7 IO lines.
Tags: avr, c++, lcd
Posted in Electronics | No Comments »
February 10th, 2009
For several years now, new trucks sold in the European union are equipped with digital tachographs, that record the driving times and replace the older chart-based mechanical tachographs.
For companies in road transport that means, although in theory they get nice data about their drivers and vehicles, in practice they have to pay a lot of money for the digital tachograph and the associated equipment, which is then used against them – the old fraud schemes no longer work, the machine cruelly gives every police officer the driving times of the last 28 days (and could give much more).
Tags: c++, tachograph
Posted in Computers, Vehicles | 8 Comments »
December 6th, 2008
Since it’s suddenly, out of nowhere, christmas time again, and since christmas is traditionally the time to build blinking somethings, i decided to publish this. Long ago – well, actually last year – this as a christmas present for my girlfriend Eva.
What does it do? Nothing useful. You plug it in, and the various LEDs blink wildly, one letter at a time, two letters at a time, all on, all off.
Tags: avr, blinky
Posted in Electronics | No Comments »
November 8th, 2008
Some months ago I aquired a cheap gps mouse (Royaltek RGM-2000, really cheap, 2 € + shipping) at ebay. My plans to use it in combination with an microcontroller and a display haven’t worked out, it is a lot of work and the garmin units do that job fine.
However, playing around with it in python lead to better results. Getting the data to google earth works nicely, and at least qlandkarte can read the generated gpx tracks.
Usage
- Start the Program, add a parameter for the port your nmea device is attached to (/dev/ttyUSB0 is the default
Tags: gps, python
Posted in Computers | No Comments »
November 3rd, 2008

This device connects to a computer’s usb port and controls two small electric motors using the L293D. The atmega microcontroller uses the firmware-only USB driver from objective development.
Device description
The usbmot device controls up to two small motors, 600 mA current each, 1.2 A peak each, with an atmel atmega microcontroller connected to some host device via USB. The speed of the motors can be controlled with PWM.
Tags: avr, motor, usb
Posted in Electronics | 2 Comments »
October 6th, 2008
After reading about the amazing 5-seconds bootup I decided to once again compile a kernel myself. Compiling a kernel is almost trivial these days, but customizing the configuration can still be quite confusing. For example, the names of the modules in lsmod aren’t the ones you select as config options. To map them, I found some scripts in the LQWiki, but they weren’t that easily to use, and also programming in bash is just painful.
So i wrote a python variant, that takes an input config(for example your distributions config) and changes the reply to “y” for all config options if the respective module is loaded(ie. if ext3 is loaded, CONFIG_EXT3_FS=y will be set).
Tags: config, kernel, python
Posted in Computers | 6 Comments »
September 18th, 2008
Think about an ordinary man on an ordinary day. He drives to work using 1.5 tons of steel, with an engine strong enough to carry two cows to the slaughterhouse, does some work in some office, using some 3 GHz machine to answer some emails and print some forms. Later that day he goes home, where roughly 400 cubic meters of air and some more of wood and concrete are heated to comfortable 23 degrees Celsius, to provide a comfortable evening for 0.1 cubic meters of person.
Tags: rant
Posted in Musings | 1 Comment »
June 2nd, 2008
After several months of living without any screensaver, I decided it just would be nice to once again have something nice to watch and show while idling. I really like the photo slideshow that ships with windows vista, but as my laptop runs linux only that was not possible. The next best thing i found was glslideshow from the xscreensaver compilation. Like most slideshow programs, glslideshow will look into a given directory, and show files out of it in random order. However, there are downsides to that simple approach: My photo folder contains some private pictures, and also some pictures that are just ugly. So i decided to connect it to my digikam database, which was surprisingly simple.
Tags: digikam, Linux, python, screensaver
Posted in Computers, Photography | 6 Comments »
March 10th, 2008
After finally finding a nice CMS to use for my homepage, I was searching for a simple plugin that lets me
- upload files manually using scp or other means from the command line
- display a nice link to the file, stating name, size etc. after adding a text like [file=foo.tar.bz2]
All I found were quite large plugins using databases, using quite elaborate administration front ends. So I started writing one myself.
Usage
- Install and activate the plugin.
- Create a directory wordpressurl/download (alternatively, change the constant in kfile.php)
- Upload files there
Tags: php, wordpress
Posted in Internet | No Comments »