BritishIdeas
Interesting Tech Projects
Interesting Tech Projects
Jul 25th
I’ve decided to write down my goals. These are long-term; if I can get them done in six months that would be great.
1. Large Scale Features
Adding national forests, parks and preserves, wilderness areas and the trails inside those areas for Arizona. I am perhaps 70% done with this goal. The benefit is vastly improved recreation maps for the six million people in the state. The area is huge (larger than the UK) and the total number of nodes is probably in the 100,000s.
2. Medium Scale Features
Adding key features in the city of Tucson. This includes major rivers and washes, large buildings such as hospitals, malls and big box stores, realigning primary and secondary roads. To date I have added at least one of each of these features. The benefit is a good overall map for the one million people who live in the Tucson area.
3. Small Scale Features
I plan to completely map in as much detail as possible the nine square miles or so around my home. This includes realigning all the streets, adding buildings which are not houses, adding recreation areas, ensuring all streets are named, etc. Of the three goals this is probably the most work. The number of people living in the area isn’t that much, but I intend this to be an example for future Tucson mappers.
Jul 25th
Some rivers are small enough that they can be added with just a line. But how are wider rivers added? They are polygons that can stretch hundreds of miles. How do you stop and start editing or does the entire river somehow have to be added at once?
The answer is to use the tag waterway:riverbank and build the river up from polygons that are next to each other. This diagram shows:
Seems simple enough. But what about bridges. The bridge:yes page explained. Just cut up the road and mark the section on the bridge with bridge:yes. The layer option was a bit ambiguous so to be sure I added layer:1 for the bridge.
So I tried added a section of the Pantano Wash in Tucson. After waiting 15 minutes or so the result was added to the map:
Looking good. Now to add some more.
Jul 25th
Finding out which tags to use when can be difficult. JOSM includes a presets menu that helps, but what is the difference between landuse:retail and landuse:commercial?
I had an idea of the difference but before using these tags for the first time I needed confirmation. After some digging I found the Map Features page in the OSM wiki. It confirmed my thoughts. Retail = shops, commercial = offices.
Jul 20th
The village of Summerhaven is in the Santa Catalina mountains just north of Tucson. The US Tiger data imported into Open Street Map is a mess, and needs to be fixed. Unfortunately the satellite images from Yahoo are not much help for that place.
At the weekend we plan to undertake our first mapping trip. This will involve driving around all the roads in the village with the GPS unit turned on and taking pictures of street signs and points of interest.
Back home JOSM can be used to load in the track log and match up the timestamps of the pictures with where the GPS unit was at the time. Hopefully that will give me all the data I need to rip out Summerhaven and draw it from scratch, but in the correct place and with more detail.
Here is a picture of what Summerhaven current looks like.
Jul 19th
Open Street Map (OSM) is a world map that anyone can edit, just like a wiki. I used the data in a few projects but seeing as the US road system was generated from a mass import of US Government data, I thought that it was largely complete and not much to do. This was, of course, wrong.
Back in May I was in East Yorkshire, England and I added a trail to the map. A local OSM mapper contacted me about it. When I got back to Tucson, Ariz. I was inspired to look more closely at the local data to see what was missing.
I found that most of the streets were not aligned correctly. Also the National Forests were missing, plus a nearby National Park. There is a lot to do in the US, that’s for sure.
I started off by realigning the streets in my area and completed four square miles. But what really interested me was the forests. A bonus is that US Government data is in the public domain and can be freely used for OSM.
I’ve now spent the last month, off and on, working on this. So far I have added all the National Forest boundaries in Arizona and New Mexico, some grasslands in New Mexico and Oklahoma and a Nature Preserve in New Mexico. I’ve also added Saguaro National Park East and the trails in the park. Currently I am working on adding the Wilderness Areas for Arizona and New Mexico and the forest trails.
I encourage you to take a look at the map in your area and see what you can do!
Jul 10th
I recently embarked on the process of adding the shapefiles for Region 3 of the US Forest Service into OpenStreetMap (OSM). This post describes the method I used. First a bit of background.
OSM is a free street level map of the world. Just like Wikipedia is a encylopaedia that anyone can edit, OSM is a map that anyone can edit. The data is licensed under Creative Commons by attribution, which is a very liberal license.
In the US currently most of the data came from a mass import of the US Government’s TIGER data. This data has numerous problems, such as streets being in the wrong places and regions like forests are missing completely.
Fortunately some regions of the US Forest Service make good quality shapefiles available of the forest boundaries and I live in one of those regions – the Southwestern Region. It’s just a matter of converting the shapefiles into the correct format, adding some descriptions and uploading them to the OSM server.
There are several challenges with getting the data into OSM. Firstly the shapefiles are in the Lambert Conformal Conic projection, which is not what OSM uses. Secondly OSM doesn’t use Shape Files, it uses it’s own XML data format. Thirdly the data has to be “tagged” in the correct way for the forests to be rendered correctly. This becomes more complex if there are holes in the forest.
The first stage is to find the shapefiles and what projection they are in. In my case the US Forest Service provided the projection information with the data files. I then reprojected the data and converted to a OSM file format using the following steps:
gpsbabel -i gpx -f smallpiece.gpx -o osm -F smallpiece.osm
Currently the best editor to use for OSM is JOSM. This is a Java application that allows data to be added, edited, deleted and tagged. Don’t use the default memory allocation, instead allocate more using:
java -jar -Xmx256M josm-latest.jar
There are some essential plugins that are required. Install utilsplugin, validator and waydownloader. Here are the steps I used to edit and tag the data. There may be mistakes, so use at your own risk.
The tags I use for ways are:
The tags I use for relations are:
Do not add tags to inner ways or the nodes. GPSBabel automatically adds tags, so delete those.
The uuid’s are a unique identifer that I can use to search for this particular set of data later, if needed. It is constructed from my OSM user name, the date and the upload number for the day. For example:
FooBar_200907104
would be the fourth upload for July 10th 2009 by the user FooBar. I use this scheme because I can work out the uuid’s from just an upload date and it is very unlikely that someone else would use the exact same uuids.
Jun 26th
I know this is a tech blog, but I can’t resist posting this to stop some unsuspecting person from being ripped off…
We have a 2004 Honda Accord. The dealership says we need a new cabin air filter and the cost is $89.99 + tax. I decided to look into doing it myself.
A quick search on Google revealed this video on You Tube showing a 13-year old boy doing it in about two minutes with zero tools. Well, he used his fingers, does that count?
Looks pretty easy. Next a search to find the cost of the filters. Seems to average around $15 + tax and delivery.
I went to PepBoys and got a filter made in the USA with a lifetime warranty for $15.16 including tax. I installed it in the car park in less than a minute.
So I called my local Honder Dealership and talked to the service manager to see what he thought about this. Here are his comments and what I think he meant.
Service Manager: “$89.99. It’s the going rate.”
I think he means: “Everyone else is going to rip you off, so why can’t we?”
Service Manager: “It takes our technicians 15-20 minutes”
I think he means: “You have no clue how much effort it is, so I’ll lie to you”
Service Manager: “It’s Cost Averaging – we charge one price for everyone and some Hondas take a lot of effort to replace the filter”
I think he means: “You have a newer vehicle so you have to pay more to subsidize people with older vehicles”
Service Manager: “One price makes it easier for our customers”
I think he means: “Most of our customers don’t to know, and one price makes it easier for us to remember the price”
Service Manager: “I called the other Honda dealership and they charge $125”
I think he means: “We don’t rip you off as badly as the others so keep coming here”
Service Manager: “Sorry I took so long to call you back to appease you… errr… give you an answer I should say…”
I think he means: “All I do all day is appease complaining customers. Oops, did I say that out aloud?”
Yes, he really did say that. I don’t have a good enough imagination to make this up…
I then called the other Honder dealership. Sure enough they charge $125. When I asked why I was told “It’s labor intensive. There is some assembly required after the filter is changed”. Yeah, right… Snap on the small clip.
So, check around your local dealerships and see if they do “cost averaging”.
Mar 21st
For Christmas 2008 I made coaster sets as gifts. I took pictures at the time but only now am I getting around to uploading them. I hope they provide inspiration for someone else. If the subject matter for the coasters seems a bit odd or random, it’s because most of them were designs intended specifically for the people they were given to.
Each set contains four coasters and a holder and involved about seven hours of work. The wood is 1/4″ poplar. The inlay is Premo! polymer clay. The items were finished with Varathane. Cut using 1/8″ spiral upcut endmills and 0.0571″ endmills. Designs were made in Solidedge 2D and the toolpaths were generated in CamBam Plus. On the bottom are thin discs of cork, glued on with Titebond II.
Mar 21st
I have finally completed my dust box. Although this box is designed for the FireballCNC V90, it can fit any CNC machine the same size or smaller. Some features:
Some pictures are below. This will allow me to use my CNC machine in the house with people and animals around without worrying about snapped bits, sawdust, etc.
The plans for this box are now available for $15! That is a $15 donation to Top Dog, a non-profit in Tucson, Arizona, USA that helps disabled people train their own service dogs and remain independent! Donate to get the plans now!
The plans are in imperial/English units and consist of 26 pages. The inside dimensions of the box are approximately 26″W x 34″D x 23″H with the electronics storage being 7″W x 34″D x 8″H. The approximate cost to construct the box is $80 – $100, nearly all the cost of the wood. The box can be made with a table saw/circular saw and a drill. No special electric tools are required. A full parts list is included. The plans also include some hints and tips.
Mar 4th
I am making my configuration files available to help anyone trying to get their Fireball V90 machine working with EMC2. The configuration is for inches, 1/4 microstepping and the HobbyCNC Pro board.
To use these files you will first need to perform the latency test and work out the base period for your PC. Open the Stepconf wizard and choose to update this configuration. Put the latency test results into the Stepconf wizard. Then you must double-check the pin configurations for your board if you are not using the same one I am. These changes are easy to make. I recommend 1/4 microstepping as it gives smooth operation without much reduction in power and speed.
Note that Stepconf will tell you that the INI file has changed since the configuration was generated. I changed the DEFAULT_VELOCITY to 0.9 so the default jogging speed is a bit faster.
Download Fireball V90 EMC2 Configuration Files.
Update: Now with Stepconf generated config files.