Family, Work, Life

Bikemap Routes on Garmin GPS

June 13th, 2009 Ansi

Moin

I love Peters Bikemap.net page. Using this service to plan all my bike tours. Unfortunately my Garmin (GPSmap 60) does not understand the gpx file from Bikemap export. I wrote this little script to modify and split the route into smaller routes. GPSmap 60 only handle 250 points per route. Therefore the script splits the route into smaller pieces, renames the note names into “rtept” resp. “rte” and uploads the route via USB to the connected garmin.

What you need to run this script are gpsbabel and the unix commands: sed, split,cut and head .

Here it is, as usually no guarantee.

#!/bin/bash
filename=$1

gpsbabel -i gpx -f ${filename} -o csv -F out.csv
split -l 200 out.csv splits
rm out.csv

for i in `ls splits*`
do
 gpsbabel -i csv -f ${i} -o gpx -F ${i}.gpx
 sed 's/wpt/rtept/' ${i}.gpx > out
 rm ${i}.gpx
 mv out ${i}.gpx
 rm ${i}

 linenumber=`wc -l ${i}.gpx | cut -d " " -f 1`
 let linenumber-=1

 sed -n 10,${linenumber}p ${i}.gpx >a.gpx

 rm ${i}.gpx

 cat ${filename} | head -n 9  >${i}.gpx
 echo "<rte>"                >>${i}.gpx
 cat a.gpx                   >>${i}.gpx
 echo "</rte>"               >>${i}.gpx
 echo "</gpx>"               >>${i}.gpx
 rm a.gpx

 sudo gpsbabel -r -i gpx -f ${i}.gpx -o garmin -F usb:0
 rm ${i}.gpx
done
  • Share/Bookmark

Pachube Temp Sensor with Atmel MC over ethernet

May 21st, 2009 Ansi

Moin

I spend this rainy day working on an old project and I am happy to announce its 99.8% finished. :-) Now I have a nice Atmel Board screwed to the wall with an ethernet port. Nice little project where you can access measurement values and digital I/Os via normal http access. For now I have 3 temperature sensors running. One outside, one on the ceiling and one on the floor of my office. Idea is to control a fan when the temperature between the ceiling and the floor is to hight. I have this problem specially in winter times when the heater is on. Next week I will attach a light sensor as well. For now you can find all the measurements on pachube feed 1303. For example here is the outside temperature sensor. Time is in utc.

  • Share/Bookmark

Planning a geekend

April 24th, 2009 Ansi

Moin

If you ever wondered if geeks are social here is the answer. Yes they are and they are very social and organising some very cool events which are called “geekends”. Combination of weekend and geek. Not just going for hiking with friends. No developing, building, ironing and coding very cool and geeky things.

As being a reader of the very cool MAKE magazin I read the article on a brain machine the other day. This project is great for a geekend. Something to build, some hardware, software and after all a great toy to play with.

The idea is to build one of these Brainwave (aka Light and Sound Machines) on your own with a little micro controller. Lets see if we can optimize the hard and software a little bit. The original one is based on an other project and therefore the hard and software is not optimizes for a LSM.

More Information on the original project you can find the the blog here.

Stay tuned to my blog to read more on this geekend.

  • Share/Bookmark

Schematic Roboter Leg

March 8th, 2009 Ansi

Moin
After a lot of experiments with Atmel and servos the schematic design for the leg controller is ready. Unfortunately the Atmega8 has the I2C interface on 2 of the ACDs so only 4 ACDs are left. Therefore I have to use 1 Atmega8 for each leg to control the 3 servos. Besides the PWM servo control I also added 3 PWM LED controllers (via transistor). Just in case later on I decide to “pimp my robot” :-) Well at least I can use them for visual debugging when I train the robot to walk. The idea of this schematic is quite easy. There are

  • 2 connectors for the bus (i2c and power)
  • 3 connectors for LEDs (transistor connected)
  • 3 PWM servo connectors (with current (resistor) measurement)
  • 1 SPI interface to flash the atmel onboard

Well its not a big deal but maybe someone finds it usefull. Next week I have to fight with placing it on a board without to many crossings.

robileg

  • Share/Bookmark

Robot Leg Video

February 23rd, 2009 Ansi

Moin

And here is the video I promised:

  • Share/Bookmark

First Leg Movement

February 23rd, 2009 Ansi

Moin

Had some time this weekend to make next steps on my robotic project. This time the topic to work on was hardware. And yes real hardware not PCI carts or so. We started to think about how to design and construct the leg. Having no CAD software (and no idea how to use it) I just used a pen and a paper to draw a leg. Well it worked out and the leg works. But it looks more like a bone than like a robot leg.

21022009103

21022009102

I also made a movie of the leg moving but Youtube is still processing the data. As soon as they are ready I will post the movie here.

  • Share/Bookmark

Shift Happens

July 24th, 2008 Ansi

Moin

One of the best Videos for explaining the shift is from the “Did you know” or “Shift Happens” page from Karl Fisch. More information you can find here.

  • Share/Bookmark