Tuesday 1 October 2013

Trails & Tribulations

So as promised, here's the ins and outs of trailing.

How I got into Trailing

I first got into trailing after I got in touch with an old mate of mine. I was a bit down after a break up and was watching Love The Beast. I am a a bit of a gear head anyway, so this got me inspired to get into motor sport so how....then remember: my friend mentioned he had got together with his dad to build an off-road trails vehicle.
So I rang him up and asked if I could help: 
"What you good at?" he said
"Wiring and electrical things" I replied
"Right, we could do with a sparky, see you Saturday!"
I showed up and was introduced to bare skeleton on wheels in a garage. There was quite a bit of work to do and it wasn't going to take a weekend.
So after my first weekend; hair full of oil, hands smelling of swafega, grit in my eyes and head full of new found knowledge, I decided to come back again the next weekend, and the weekend after, and the next weekend. After about a month or so's work she was ready!
Nice, new & shiny!
The first time it trailed, I didn't drive or navigate, I just watched. the second time I got offered to drive, and why not: I had a full UK drivers license and £10 for club membership & £20 for entry in my pocket. So I strapped myself in and my friend navigated. Here is one section of the event that day:
Yes...that is a pile of horse shit we are driving into at the end!

Since then I drove "Cannon Fodder" (that's what she was dubbed) for a few more trails, till I decided to go it my on and stop sponging rides off me mate.

How Trailing works

I joined the Pennine Land rover Club: who call themselves a slightly nuts bunch of land rover & 4x4 enthusiasts. I joined cos my mate was a member along with his dad and a few others I was introduced to through his dad.

Some clubs have different rules and regs but the principal is the same. 

So what happens?

I think the best way I can describe it is a bit like golf, but with 4x4's. Each event is split into 12 sections and each section has 12 gates. Lowest score wins.

A Gate is essentially 2 canes set apart with the a gate number ticket on on of the canes: this is ticketed cane must be on the drivers side of the vehicle. Between each gate are obstacles to challenge your driving skills or test your vehicles abilities. Sometimes the gates themselves are strategically placed to test the driver.
Barry attempts gate 5

Each section is set out by the clerk of the course: basically a member assigned to setting out the sections for that event. They usually turn up the day before to set out the section.

Each entered driver must then drive the section starting at gate 12 and ending at gate 1. Each gate you drive through; your score for that section decreases: so if you go through all 12, you get 0 (clear), if you get stuck between say 4 & 3 gates, you get 3 and if you hit a cane on a gate, you get the score of the gate you hit! 

Best score you can get for the whole event is 0 (12 x 0) and worst is 144 (12 x 12). My personal best is 12 for a whole event.

Then your scores are totalled up at the end of the day and the person with the lowest score gets bragging rights and club championship points and/or a prize (usually a t-shirt with clubs logo). 2nd and 3rd get club points accordingly

The clerk of the course however gets 10 points for his troubles for the whole event!

That it?!

Well not really, there's more to it. 

You don't have to but highly recommended that you walk the section before driving it. A navigator is optional, but providing they are 16 or over and not pregnant, its good to drag them along to walk the section too, making mental notes of obstacles and driving lines.
Jedi Clive advises Padawan Jezzmund on driving lines
I should make it clear at this point that speed is NOT the key when doing this kind of trailing! Your navigator does not have to by Nicky Grist and rattle off pace notes! All they have to do is remind you of lines and obstacles.


For more information, read the How To Play section on the Pennine Club Website

So Who makes the calls?

Each group or section as a number of Marshall's. These guys watch to make sure you don't hit a cane on a gate or fall foul of the obstacles.

Never argue with the Marshalls, their word is final! If you carry on arguing or misbehave you get a 12 for the rest of the sections and told to pack your shit & piss off!

So what counts as out?

  • If you hit a cane, you stop, get off section & get a score for the cane you hit
  • If you are not moving for 3 seconds, you stop, move off section, and get a score for the last gate you cleared.
    • not moving means you are stationary, even if your wheels are spinning.
  • If you get stuck in a gate: providing a wheel hub (centre of wheel) of one wheel is through the gate, that gate is cleared
    • it is worth noting that if you think you are going to hit a gate, but can get your hub through: STOP!

Vehicle Classes

Vehicles are split into 2 main groups. All vehicles are closely scrutineered before competing to ensure that nothing bad happens to spectators or the drivers + passengers.

CCV

Mark 'il championi', MB62 CCV trailer
CCV or Cross Country Vehicle are mostly towed to and event. They are divided into classes depending on profile, running gear & drive train. they don't have to be taxed or MOT'd, nor be road legal. They do however have to be fitted with a roll cage sturdy enough to hold the vehicles weight and at least a 4 point harness for driver and passenger.

Our club most commonly run this group of vehicle with rover V8's ranging from 3.5 litre to 4.2 and even 5.5 litre! though some are now entering with turbo diesels and showing up the V8 lot!

Common choice of transmissions are automatic: low range, stick it in drive, point, stamp on throttle and watch the world go backwards!

Most of them weigh in around under a ton, so power to weight is quite good!

RTV

My pride & joy
RTV or Road Trails Vehicle are road legal, have a tax disc, and MOT and are commonly driven to events. Again the group is divided into classes depending on shape and specs. Vehicle must have a valid MOT to compete as RTV class. Roll cage is not required but some form of protection from the drive being crushed by the weight of the vehicle is require, so rag top vehicles must have a roll cage.

This class usually contains a mixed bag: Land rovers old & new, both diesel & petrol, Susuki's and Jeep's.

Commonly manual gearbox. Some are heavily modified with extra Armour underneath to protect the vital parts like the steering rack, oil sump, gearbox, Transfer box & differentials: front & back! Cos if it goes on section, your driving home on the back of an AA truck!

More information on vehicle regs can be found on Pennine Land Rover website.

So why do it?

It is the cheapest for of motor sport. Forget about TopGear and their outlandish statement that motor cross is cheap, compared to trailing: you can be up and running for under £2000! It requires no special licensing for competitors. Most importantly: ITS A LAUGH!

You meet like minded folk, there is some good competition and banter, some clubs like ours have social camping events: 2 days of trailing, BBQ's and beer (though that's after the days event!). Also there are the usual Christmas and club anniversary parties (Pennine Land rover club just celebrated its 50th Birthday!!)

No off road experience is required, though its worth having a practise with an experienced driver before competing. The basics and an understanding of how the vehicle handles off-road will help a lot!

Safety gear is not necessary: you don't need a crash helmet, but if it makes you comfortable, then by all means. For RTV; a roll cage is not a requirement, but it will save your bodywork if you end up on your side.

If the worse does happen and you blow a differential, snap a half shaft of worse, then there is always a helpful soul that will lend you tools, spares or advice to get you back up and running. In my view: always help your fellow competitors. Playing by yourself is just boring!

You get to be outdoors. If the weathers good, then bonus, if not: man up and get on with it. Unless there weather of apocalyptic proportions, Trailing happens all any weather, all year round: Horizontal rain, snow, or blistering heat, its always on!

You will get mucky: the clerk of the course is 95% of the time a sadist! And will set out parts of the course though a muddy and wet part:
Here is Tony "Man-Duck" taking his navigator of the little ride! This actually wasn't part of the section :D

Checklist for a days trailing:

Spectating:

  • Water proof's
  • Stout boots
  • Lunch
  • Drink/Water
  • Change of clothes
  • Towel (wet)
  • Suncream (Sunny)
  • hat (as per weather)

Competing:

  • The above
  • sunglasses
  • Tools & a jack
  • your motor (obviously)
  • membership fee (new members / renewal)
  • event fee
  • any spares you think you may need (optional but advised)
  • tow rope (mandatory) - no kinetic ropes, steel cables, chains or snatch ropes! Must be made of none elastic or non-metal material and be able to hold your vehicles weight - see regs on Pennine Website
  • Spare fuel
  • a decent set of off-road tires WITH INNER-TUBES - if the bead on your tires breaks due to the flex in the tire off the rim, then the pressure in the tire will escape VIOLENTLY!
  • a sense of humour - there will be ribbing and banter, so leave your pet lip at home and try and keep your toys in the pram. You never know, you may get your own nick-name at the end of the day (some of the clubs favorites: Cane Killer, Dangerous Brian, Grinch, il champioini, jezzus, Gobby, Man-Duck)
So......You fancy it?!?

Thursday 26 September 2013

Absence

So I've not blogged for a while. Mainly cos I've been Uber busy doing fatherly and land rover based things.

Some of the landrover based things could have been blogged, but its like painting the forth road friggin bridge! So understandably, I've not had time to Blog.

Rest assured I'm planning on returning, and first by posting (as promised) about the trails vehicles I've helped build and a little about trailing......

Tuesday 2 April 2013

Olimex AVR Programmer

A bit of a Heads up!

Whilst messing around with this programmer, I found you can accidentally over-write the boot-loader on the Arduino by uploading your program through the ICSP header!

SO YOU HAVE BEEN WARNED IF YOU PLANNING ON DOING THIS! I DID NOT BREAK YOUR ARDUINO! It just needs the boot-loader re-loading! See below

Bit of Background

So with some up and coming Arduino project coming to a close, I want them to become stand alone widgets, where they can be soldered onto a strip board and utilise a controller of their own, like the ATtiny range of micro controllers.

ATtiny85 - Small, dip-8 package, really useful
You can program chips on breadboards using the Ardunino as a ICSP (In Circuit Serial Programmer: ICSP wiki definition)

I found this Link: Programming an ATtiny with arduino, a while back and managed to program an ATtiny85V with the Blink sketch in the Arduino IDE, which as proof enough that it could be done for me. Big thanks to those guys at High Low Tech, MIT!

However, this kinda makes your Arduino tied up doing tasks that something else can do. So I purchased an Olimex AVR-ISP-MKII.

Unpacking and Setup

Device comes in a cardboard box with company decals on it. Inside there are 2 ribbon cables: 1x 10way & 1x 6way, and the programmer itself.

As you can see from above they have managed to squeeze the whole thing in a 25way D-sub, what I call "gender-bender" housing (usually cos I find this type of housing is used for swapping sex's of D-Sub's).

There are 4 connections on the device:
  • USB
  • TPI - Atmel's Tiny Programming Interface - for programming ATtiny's
  • PDI - Program & Debug Interface
  • ICSP10 - In Circuit Serial Programming

I'll mostly be focusing on the ICSP port here.

There is also a pin header that allows you to switch power to the target device on or off and either 5V or 3V3.

There are 2 LED's too to show the status of the programmer. 1 orange LED and one bi-colour LED.

After a quick skim read of the manual off the the suppliers website, I realised to use this programmer with AVRDude or the Arduino IDE, I had to reflash the firmware on the programmer.

Manual is: Here

Installing the drivers went well and the firmware re-flash went as per the instructions described.

Bloody Teething Troubles

As with all hardware you except to work out of the box, it didn't, nor was the Manual helpful beyond this. instead of a Green LED coming on, it was now red and the orange LED was on.

First thing was to see if i could program the arduino board through the ISP 6-pin header on the edge of the board.
ISP header shown below the reset button
 Given the ICSP header on the programmer was a 10 way, I assumed it was the other 2 headers, which were 6-way, meant I should use either of them.

With the 6-way cable in the TPI programming port and the other end connected to the Arduino (target), I loaded the Arduino IDE, and made sure that the right programmer was selected:

I then opened the blink sketch and uploaded the sketch like so:

However it didn't work and got the following error:

First thought was that the upgrade went tits up! The manual told me everything about when it should work, but not when it doesn't & the trouble shooting section was quite short!

After some rummaging around on the Arduino forums, I found the error is an indicator that the programmer can't "see" the target board. I've seen warnings on forums that under no circumstances must the -F command be used in the AVRDude command line as the warning suggests! So I didn't bother poking around with that!

After some digging around it transpires that the 10-way ICSP header must use a 10-way to 6-way converter PCB to program ICSP with 6-way headers! Yours from Olimex for £2.00 less P&P.......you got to be F*@KING Kidding me.
Extras sold separately! Typical!
To make me feel more like a complete Burke, I found out the manual on the SUPPLIERS website was out of date compared to the Manufacturers copy, which gave me more information on what status LED's should be!

Let this be a lesson: RTFM - but make sure its off the Manufacturers website! That way its more likely to be up to date!

So with that fresh information, I was relieved that the LED's were correct (they change status meaning after firmware upgrade), but now knew I had another obstacle in the way! 

No dice Olimex, I ain't forking out more cash! I'll build my own! Dug around for some parts and came up with a homemade solution!

Header Converter



Using the diagram, I basically connected all the identical pins together on the 10-way to the 6-way, like below:
I quickly threw it on a scrap bit of strip board

You can't see it but I placed a dot near the middle pin on the 6-way to signify the place where the keying tab on the cable goes, so as not to connect it up the wrong way round.

Programming the Arduino through the ISCP, Take 2

I STRONGLY ADVISE YOU TO READ THIS SECTION CAREFULLY IF YOUR PLANNING ON DOING THIS, AS THERE ARE SOME VITAL THINGS YOU NEED TO KNOW!

It will be explained later, but when you program the Arduino with the ICSP programmer, it appears to over-write the boot-loader on the micro controller.

THIS MEANS ONCE YOU UPLOAD YOUR PROGRAM VIA ICSP, AND YOU TRY TO UPLOAD WITH YOUR USB CABLE AS STANDARD LATER, IT WILL NOT WORK.

I connected up the Arduino with an LED hanging off pin 13 and the ICSP programmer connected Via my homemade converter, I then tried to load the blink sketch as before, aaaanannnnnnnddddd.......(drum roll):
SUCCESS!!!

It worked! But I had then hit another snag!

I Tired uploading a different sketch to the Arduino and the IDE was acting like it wasn't there.
Typical fault of wrong port selected or not plugged in, or in this case no boot loader!
The only thing I could think of was that I had overwritten the boot-loader when I programmed the Arduino! Using the programmer connected to the same header on the Arduino again. I then proceeded to re-burn the boot-loader to the Arduino:

The programming was successful and managed to use it normally again.

Also if you getting this error on your Arduino, and you have tried ALL other solutions and still nothing, then AND ONLY THEN should you look at re-loading the boot-loader. Don't go spending 17 quid on an ICSP programmer and find out it selected the wrong serial port on the IDE!

So.... what Did I reckon?

Well the Olimex AVR-ICSP-MKII is one 1 of many ICSP programmers out there, and you get what you pay for.

Kudos on design for sticking it in a D-sub housing, but a must try harder on the manual.

Overall I'd say good purchase for beginner, and if you don't want to fork out for a converter then make one yourself like me!

Anyway, I have managed t get my head round on Programming boards with ICSP and the Arduino IDE. This should free up my arduino when it comes to strip boarding and prototyping my future designs

I'll be looking further into ICSP design considerations when prototyping up a project. Will leave that for another entry hopefully.

Laters!

Wednesday 6 March 2013

Turbo Time! Strip down and Mod of Turbo Gauge

Background

I bought a Greddy Turbo Gauge off ebay a while ago it if in my Landrover. The engine is a 200TDI, which is a 2.5 Litre  Turbo Diesel.


However, When turbo's go, they go VERY badly and are expensive, so this gauge is more to check on how well it is rather than for tuning purposes. A new turbo is £200 for a second hand one and £400 nearly for a new one! A refurb. kit and rebalance is £100, so I'd rather catch it before it goes for a refurb. than when it goes and cough up for a new one! Observing a loss in boost pressure could be an indicator.

Test and Inspect

So i got this gauge a while ago and notice that the guy had cut the back-light wire off on it near to the nub practically. Of what wire I could clip onto, I stuck  12V on it and sweet-fanny-adams, no back-light!

I then got a mate to check the gauge worked, whilst I blew into the pipe inlet, needle moved when I belw so at least it's primary function worked!

I extended the wires on the back-light first, as this was an easy job, and plus I need to reference which one was positive.


Disassemble!

To quote a certain Mad Aussie Bloke (+EEVblog) :
"Don't turn it on! TAKE IT APART!"
I began to dismantle:
I undid the nut holding the inlet on the back of the turbo, in hoping to loosen something up. No luck! All I succeeded in was to knack up the needles default position. So this meant I had to cut off the crimped on collar holding the front screen in place.....I'll have to come back and think of a way to put that on later.

With the glass out and the nut on the inlet off, I slide the gauge face out of the casing, Inside was a circuit card with 2 blown filament bulbs soldered onto it (why, why would you solder a device that you know will blow and needs servicing to a PCB!) and on the back of the gauge face, what looked like the insides of a grandfather clock!
Old Skool Brown and copper PCB!

WHY! WHY, solder these on?! Use a F*@king socket!

Pretty Primitive when you look at it!

Inner Workings

After a closer inspection, I managed to work it out.

The thick bent piece of copper is a hollow and is connected to the inlet by a small piece of copper pipe. One end of the bent copper is soldered shut. The closed end of the copper is connected to an arm, the other end of that arm has a toothed rack, that moves a toothed spindle. The spindle is connected to the needle on the front of the gauge and a coiled spring, so the needle can return to its rest state.

When air pressure is applied to the inlet, it inflates the bent copper pipe slightly, this cause the bent copper to expand by increasing its radius (basically trying to straighten itself out!). This pulls on the arm which moves the needle.

There are a lot of small movements involved, that are scaled up to big movements (needle). It could be said that this is a mechanical amplifier!

I managed to reset the rest position of the needle by squeezing the the bend copper pipe slightly to run the rack off the spindle allowing the needle to move freely. Then just resetting the needle so that when the rack ran back onto the spindle, so that it rested as near the 0 mark as possible.

Modifying the PCB 

So the first thing was that stupid filament bulbs come off, with a hot soldering iron:

I had a couple of spare white LED's lying around at home. These will do to replace the bulbs.

Now a few calculations to work out the current limiting resistor:

I got the Vf & If from hooking one of the LED's up to a PSU with a low current Trip and carefully cranked up the voltage with the fine adjust:

So why have I hooked up the LED's in series? Well given that my input voltage is much greater than Vf of each LED, I can do it this way and only have to use 1 resistor.

"But you could do it in parallel, and not hack up the PCB as much!"
Yeh, but that's the wrong way of driving an LED, working below shows why:

Both solutions pull twice the current. Yeh I know its gonna be supplied by the landy's battery and alternator, but that's no excuse to be inefficient! The top solution is not good as I know these 2 LED's are not exactly from the same silicon die! Hence it can't be ensured that each LED will pull 10mA each, and as such their forward voltages will "fight" each other.

If you wan to drive more than one LED at a different current, then the second solution is more suitable.

The top Solution should NEVER REALLY be used!

With components sourced, I modified the LED's so they could be soldered on at the same height as the bulbs:

After some track cutting on and soldering of a few link wires, I got the PCB how I wanted it:

Testing

I set the Benchtop PSU as follows:
So this is basically simulated running off the battery, I set the current trip to the max current limit the LED's can carry, so I don't blow them in the event of a fault.I know they can carry more, but I designed them for 10mA, so more than 20mA, I know somethings VERY wrong!

Flicked power on a VIOLA! Not too bad!

And current consumption is near as damn it spot on to calculations!

So, cranked up the voltage to simulate the alternator running.

Flicked power on. Hardly much difference......

I did expect a current rise of this proportion, so all is as I expected.

So all in all, I'd say that was working properly!

Re-assemble

I popped the PCB back in its place:

Popped the dial back on and bolted the inlet to the back of the case. I then hooked her up for a showcase!
OHHH! Pretty!
You'll notice the bright spots on the dial, this means the LED's are too close to the dial, not the worst thing that could have happened!

That's good! But Have you knacked it by taking it apart?

Well, I  looked at the needle in the mirror whilst I blew into the inlet. The needle moved into the positive pressure range, whether by the right amount I don't know ( I blew to about the 0.4kg/cm mark). If this is wrong then I would think the spring needs adjusting.

The main thing that's a concern is how I'll get the glass cover back on now the collar is mangled! Super glue and a G-clamp is looking a likely solution.

Once I've sorted that, then its ready to mount on the centre dash console with another project I have in the pipeline....watch this space!

Wednesday 20 February 2013

Tron's online!

Yup, this is Me!

...with my head in outlet of a jet engine. But this engine is gonna be bolted to Bloodhound SSC! So that makes my gormless expression ok....right?

So I thought it was about time I got myself a blog, to document all my project and basically share them online, and hopefully part some wisdom to those looking for help on similar projects.

I'm an electronic engineer, budding mechanic, proud father & general tinkerer. My tinkering goes as far back as deconstructing the family toilet cistern.... at the age of 4! Fortunately, my parents stopped me before I caused the house to be flooded. But I was really curious as to how it worked!

Since then, I've left a lot of dismantled things in my wake, most of them went back together again ok....

What I'm doing now.....

Since leaving Uni. with my electronics degree, I've done a lot of jobs:
  • Fixed welding equipment
  • Been a Lab Technician for a computer science department
  • Technician for a company that builds underwater R.O.V's and Submarines
  • Operator and Technician for a Ferris Wheel (like London eye, only smaller. Nothing like swaying 80ft in the air at 6am, counting split pins on each spoke of the wheel!)
Right now I'm working on some cool stuff to do with protein and veterinary allergy analysers.

My Electronics skills are somewhat geared toward, analog and linear circuits. I am REALLY experienced with EAGLE and as part of my job, I design PCB's to exacting standards, so I know my way around a circuit board!

About a year ago, I learnt about the Arduino  platform. My Micro-controller skills at the time were, well....crap. I could read C-code, but not very well.

After buying my first Arduino starter kit and a copy of Getting Started with Arduino, I was bang up to speed and really impressed with how versatile the platform was! It opened up a new range of projects that I had stuck in my head, but had no way of bringing it to life.

By looking at projects on hack-a-day,  I got the inspiration to get my arse into gear, AND BUILD SOMETHING!

So why has it taken me nearly a year to get my first project here....

Well in June 2012, my son Hugo was born, and since then I've been concentrating looking after him! Both him and my girlfriend Georgina, are the the best things in my life.



What else am I up to.....

As mentioned, I am a budding mechanic. During a spell of brief depression, I remembered my mate was building a trails off-road vehicle. I am a keen petrol head and pretty good at wiring so offered my services to help.

In turn for electrical know-how, I was taught the ins and outs of repairing and maintaining land rovers and how to weld properly.

Since then I got hooked so bought my own Trails vehicle! A bit of wiring, a few lights added, and some wing-mirrors bolted on, it was on the road in no time....and then back off it!
I'll be posting another blog about the vehicles I helped build at a later date.

Well that me roughly in a nutshell. I hope to update regularly!