Pages

Wednesday, October 30, 2013

another bad habit

I have terrible discipline. I use this blog partly to conquer my fears of writing and finishing things. I think my fear of finishing things is the greater one.

Many posts here sit half-written as drafts until I have something else I want to say. Only then do I slap an ending on the previous thought and shove it out the door. Today is one of those days.

'tunes' was hustled onto the site because I had a flat tire this morning. I used my Ryobi cordless inflator for the first time and I wanted to share my thoughts about it.

I was already late getting the kids to school this morning when I spotted the flat. I grabbed the inflator from the spare tire well, slapped a battery into it, and set it up. Where did the battery come from? From a cordless impact driver rattling around the trunk, of course.

This device is not by itself a rescue inflator. It doesn't have a reflector or flashlight. It does not have a battery charger. It does not have a 12V cable. You turn up with a charged Ryobi battery, keep a charged battery installed, or keep a 12V Ryobi battery charger around. I had the inflator in my trunk only because it had been there since I bought it.

With that caveat aside, I was rescued. The charger seemed quieter and more powerful than the 12V cigarette inflators I've used before. The charger took my 205/55R16 Dunlop from 12.5 psi to 32 psi in  what seemed like a couple of minutes. My guess is that 12V compressors are probably limited to about 5 amps (for 60W total) from the cigarette lighter socket. I used the Ryobi with a 1.5Ah lithium battery that could probably supply 250W. I have no idea what the compressor actually draws.

The built-in digital pressure gauge was backlit and easy to read. The air hose was a bit short. You could comfortably inflate the 22 inch rubber on your dub ride only with the valve stem near the ground. The chuck seemed a bit cheap.

The inflator, with lithium battery, weighed less than some corded inflators I have owned. The assembly weighs far less than many junky cordless inflators built around a heavy lead acid battery.

I have no dissatisfaction with this unit but I wish Ryobi would build a box that combines the inflator with a 12V charger and a 12V jumpstarter. I think my ideal device would probably charge and hold two Ryobi One+ batteries.

I'm publishing this post the same day it was written. I wish it was because I sat down, wrote it, and published it in a fluid motion. It's not. I have to tell you about a time lapse shutter gadget I'm building for my daughter. I can't start writing that until this goes out the door.

tunes

I told you last episode about buying a used car. I got the car I wanted. Getting it was half the effort. Getting it home was the other half.

I got several estimate from car haulers who asked between one and two dollars a mile to collect a car and bring it to your door. I thought those offers were fair, but they meant completing the transaction on the car sight unseen. If Amazon offered free Prime shipping, I might have gone for it. Instead, I found a flight for just over a hundred bucks. The seller picked me up at the airport in the car. Very smooth.

When the deed was done, I set off for home. A half an hour into a long drive, the guy called and wanted to know if he had left his magnetic dealer tag on the back. A half an hour after that, I set out again.

The drive was pleasant and the car seemed almost factory fresh. I was transported back to 2001. In 2001, people still apparently listened to music on round shiny things called CDs. The factory put a hole in the dashboard just for these things. My digital tunes don't fit in the hole. My long drive was going to be quieter than I expected.

The hole in the dash is actually part of what we used to call a radio. Kids these days call that a 'head unit'. The head unit does usually contain a radio. Mine contains the CD player as well, and the interface electronics needed to speak to a remote CD changer.

I guess that these interfaces were common in factory radios from about 1995 to 2005. Hundreds of hobbyists have leapt to the same conclusion over that period -- pretend to be a cd changer and send digital tunes in that way.

Some hobbyists have even turned this little trick into a business. I remember that one of the first products to pull this emulation trick was the PhatBox. ZD ran a review of that device in 2000, not long after its introduction. The product was discontinued by 2005. The review was amazingly detailed. It said the box ran Linux on a Cirrus EP7212 SoC and managed the CD changer interface with a dedicated 8051 microcontroller.

The PhatBox product tried to solve two problems. It did a great job delivering audio to the dashboard. I think it stumbled by trying to solve the storage problem. The Phat solution was laptop hard disk drives wrapped in a proprietary cartridge. Phat didn't know about the coming iPod. They didn't know that only Apple gets to mark up commodity storage and live to tell about it.

Several firms took up the CD emulation challenge post-iPod. Many automakers got in on the act themselves. DICE electronics (now Audiovox) still sells an aftermarket unit.

Even that business is now in decline. Finally. I can leap in with both feet now that this
technology has hit bottom. I decided to build a CD changer emulator for my car.

This path is a well travelled for BMW cars of the era. These cars hide two connectors for a CD changer in the trunk. One is a three pin connector for power and data, the other is a six pin connector for analog audio. I hear that some fancy cars have only digital audio. Mine isn't one.

The three pin power/data connector provides constant +12V, ground, and a serial data line. This scheme is called 'ibus' in BMW circles. The same thing is called 'kbus' among MINI cognoscenti. The technology shows up in some Rolls Royce cars from the same era. I'm sure it has no name there. Gentlemen don't talk about data busses. Whatever the name, the bus runs at 9600 baud with 1 start bit, eight data bits, an even parity bit, and a stop bit. The bus is pulled up externally to 12V.

Most folks building amateur CD changers for these cars are using an interface built by Rolf Resler. You can get one here. I didn't. The interface, plus shipping from Germany, cost more than the Radio Shack retail price for an Italian Arduino.

Resler's interface is probably wonderful, but it is just an IBUS to RS232 (or serial over USB) adapter. There is no logic to spare in that interface for the CD changer emulator. By contrast, an Arduino has enough logic for the job and enough spare capacity to run the ibus interface as well.

You could probably connect the ibus directly to an Arduino I/O pin for a while without smoking the Arduino. You can run an Arduino directly from the 12V line though 12V is at the upper end of the range for the Arduino's linear supply. I used one of the 'TX' halves of a Sparkfun bi-directional level converter breakout board for my bus interface. Sparkfun has revised these boards recently to eliminate the distinction between 'RX' and 'TX' lanes.

These level converters are used mostly for 5V <-> 3.3V level shifting but the BSS138 MOSFETs around which they are built are rated for 50V.

My Arduino code is available here. I have used it on a Duemilanove and an Uno R3.

This sketch doesn't actually jam any audio into the car. It just pretends to be an attached CD changer. If the BMW head unit sees an attached cd changer, it will let you jam your own audio into the audio pins in the trunk. I leave that as an exercise to the reader. I used the same Tunelink reviewed here last year.


Friday, October 4, 2013

cleveland

My interest in Cleveland motoring last month was not entirely idle.

I flew to Cleveland last month to buy a car from a small pan-German garage that deals a few cars on the side.

I bought a 2001 BMW 323iT station wagon with a five speed. This is a rare car in the US. I got a sense of how rare with a persistent ebay query. Ebay sends me a note every morning with a list of new listings for station wagons with manual transmissions within a few hundred miles of home. The results are surprising.

Here's a two month tally by brand for the ten most represented brands together with the overall 2012 market share for each firm or parent firm:

           ebay    overall
brand      count   market share
_______________________________
Subaru.......153.......... 2.2%
Volkswagen....36.......... 2.4%
BMW...........17.......... 2.3%
Chevrolet(GM).15......... 18.2%
Volvo.........14............ 1%
Scion.........11.......... 2.9%
Audi..........10.......... 1.2%
Saab...........8............ 0%
Land Rover.....8........... .2%
Chrysler.......8......... 11.6%

On a recent day, there were about 36 thousand cars available on ebay in the same radius. About one thousand are wagons. About two thousand have manual transmissions. Eighty one were wagons with manual transmissions. Diesel convertibles are less common, as are manual SUVs, but that's about it.

On the same day, there were about 15 thousand sedans available in the same radius. That's almost half of cars. Six hundred of those have manual transmissions. I was surprised to find that manuals were more prevalent  in wagons (8%) than in sedans (4%). If you're buying a statistical car at a statistical future time, then this works to your advantage. If you are stuck buying actual cars, then only the actual size of the market matters.

If you want a used manual wagon today, you're getting a Subaru. More than half the Saabs in the list are re-badged Subarus. If you want a particular manual BMW wagon in a particular color with particular options, be prepared to wait a while.

I found a car in a color I liked with the close to the options I wanted -- which was none. I bought it.

If I had thought harder about it, I might have asked for some better pictures first. They would have highlighted some of rust on the car. Rust appears endemic to the area. I would probably have passed on the car if I had seen it.

I'm glad I didn't see it. The car is otherwise great. I'm glad I have it. I'd still be looking for another one if I had passed on it.

The kids love it. The Miata is for sale. The kids are sad about that. The memories they already have will  probably make them happier than would retaining this actual specimen.