I mentioned Project Hugo in the site update a while back and an idea I’ve been toying with is implementing a CAN bus for my 22 year old car, a Mini Thirty. I say I’ve been toying with the idea, one of my friends at the pub starting talking about the advantages of CAN bus and after that I couldn’t resist!
In the Mini and most classic cars there is a “simple” wiring loom that uses simple techniques to get the job done. For example, for the headlights and rear lights there is a switch on the indicator stalk that connects to a relay, this relay has a connection to the battery and to the lights. Simple, does the trick but as every light and device has a couple of wires each the loom soon becomes complex, a bugger to wire, troubleshoot and if nothing else heavy!
The idea behind CAN bus is that each component of the car is networked and listens on a single bus and has a power feed. This means that you only have to run a ring of cables around the car that each component connects to rather than having separate wires for each component. There is a diagram on the following site that explains it quite nicely;
(Not an endorsement of the product, just a handy diagram.)
With regards to developing a CAN bus I purchase a dev kit which appropriately comes in a can! It’s the Stallaris LM3S2965 and was about £55 from Farnell. I’m still getting to grips with it and to be honest I haven’t managed “Hello World” yet. As awesome as the .NET Gadgeteer, Netduino and Arduino undoubtedly are it’s always good to be reminded of that fact. This project will include a steep learning curve but will be well worth it in the end.
For those wondering why I’m going to this much effort the answer is simple; Why not?
It’s going to be a slog but the result is a wonderful little car with 1950’s styling, a modern Honda engine and massively updated everything. It’ll allow me to integrate a modern car alarm very easily, I’ll be able to connect to a PC for diagnostics and control the components of the car programmatically too. For example, if I want to have the side repeaters switch on in a constant mode with the headlights to act as running lights I can, same goes for the fog lights switching on with the main beam. The beauty is that this behaviour would be switchable on the fly and I’d be able to add other behaviours too such as a rain sensor to activate the windscreen wipers and light sensors to switch on the headlights too.
This is without a doubt shaping up as the biggest project I’ve taken on so far but should be well worth it in the end. More posts as it happens.