Archive for the ‘Projects’ Category

Sim Update – Shifter paddles and a better seat

Tuesday, June 29th, 2010

With the basics now sorted I’ve moved on to some more asthetic and convinience items for the sim.  I managed to pick up a seat from a local DIY car wrecker from a Suzuki Swift Gti for $28!  It’s got a couple of very minor rips but over all it’s in great condition and super comfy.

I’ve also recently added some F1 style shifter paddles to the wheel.  This enables easy use of cars that are only sequencial shifing in LFS.  It’s odd – a ‘H pattern’  gearbox based car can be driven as a sequencial but not the other way around.  I guess it’s because most commercial wheels do not have H shifting (or a clutch for that matter) so it keeps compatibility. I’m still considering what i can do to make an add-on for the H shifter to convert it easily to sequencial and back again but it’s less important now and it would only be for realism.

The paddles are constructed very simply. The orangy brown stuff is a silicone rubber.  The bolts support the flaps on the main bolts and give it a spring effect.  The gap between the microswitch and the paddle is only a couple of mm and it works really well.  The original design for the paddles were a little short and were not easy enough to reach so i extended them with another bit of aluninium rather than make new ones - hence the addition of the second set of bolts.

Sim pretty much finished now

Monday, June 7th, 2010

I completed the shifter not long after the last post and also made some slight mods to it.  The main change being that the shaft is now much shorter than the original one.

This is the shifter in it’s current state:

Also, since completing the shifter, I broke one of my design rules – the ‘Small/Storable/Dissasemblable” rule.  There were various reasons for this but the main one was that i just could not get the ergonomics right when sitting at a desk/table.  It mean that regardless of how i laid it out, it just didn’t feel right.  Not only that, I decided to utlise an old 32″ HD CRT TV that i had and it weighs about 50kg.  It’s not something i wanted to put on a rickety desk.

I proceeded to make a metal frame placing the pedals, shifter and wheel at comparable distances to my real car.  The seat came later….

With the basic frame complete, I was in the hunt for a seat.  Ideally i wanted to use a real car seat.  Not necessarily a real racing seat but perhaps just a slightly bucketed seat from a sports car (something still nice and comfy).  That is still the intention but for now, i’ve mounted an old school style plastic chair to it.  It’s not overly comfy and still doesn’t feel quite right but does the trick for the time being. I also added some adjustable feet to the frame.

This is pretty much how it is today:

The only change i have made since this image was taken is the addition of a handbrake.  This helps immensely for drifting and offroad driving.  It uses an extra axis on the mjoy.  It’s noting spectacular and ideally needs more sprung force on it but is very functional.

Shifter update

Sunday, March 28th, 2010

My shifter is almost complete now.  All the mechanics of it have been done, just the electrics left.

The pictures are pretty self explainatory but i’ll explain how it works.

The first collet on the shifter shaft is staic and held by a grub screw.  The spring then exerts force against the delrin block supporting the skate bearings.  The block is free to move over the shaft.  This part gives the ‘clunk into gear’ feel.  Underneath the the rod end is a slightly cupped out thick ‘washer’ and then that’s followed by another static collet.  The spring force is also excerted on the washer and then the body of the rod end.  This means that when the shaft is moved off center, the washer falcrums on the body of the rod end and pulls the shaft down against the spring, this keeps it centered.  This combined with the gates on the bottom of the shifter gives it a very real feel.  I still have to put a slight concave in the neutral position although it is not stirctly needed as the spring is just about enough to give some more resistance, just before falling over the edge onto the ‘in gear’ ramp.

The plan for the electrics is to have a dual personality 6th gear.  There will be a toggle switch to make it either reverse or 6th.  Therefore in normal 5 speed boxes it will be reverse but in 6 speeds i can use it as 6th but flick a switch and it will be reverse.

p3280032_sml p3280034_sml p3280033_sml

Racing sim update

Friday, March 26th, 2010

Ok, as promised here is the details of the electronics.  Most of you would be interested in the load cell interface so i’ll start with that.  The interface is truly simple, the main chip, an INA122PA is only about $7 from RS and a little more from Farnell.  There are other equivalents but this is the one i used and is also one of the cheapest.  The pinout is very basic for our purposes.  You have a power supply (coming from the Mjoy) to power the chip and the load cell.  The load cell applies it’s voltage to 2 pins and the chip simply amplifies the voltage from the load cell.  The gain (how much it amplifies the voltage) is set by the resistor accross pins 1 and 8.  The capacitor is a simple 0.1uf filtering type. The cell puts out 2mv/v so at 5v excitation we get 10mv at full scale.  To get 0-5v we need to multiply that by 500.  For this chip that means a resistor of about 400 ohms.  Less resistance will give more gain.  Since my load cell is a 100kg item i have increased the gain on mine to about 600.

That’s about it!  Hook it up inline instead of a pot and you’re done.  Just make sure you get the wires around the right way…

lc_interface Load Cell interface

As for the main Mjoy board, I modified a layout i found around the net.  I have not removed any ‘branding’ so if one wanted to seek out the original designer i’m sure they could.  The only real change i made was to add pads to be able to vertical mount standard diodes for the buttons rather than use SMD types.  Most other changes were to add some distance between tracks etc.  Print, transfer, etch, drill and solder etc.  I made up my own paralell port programmer interface to program the chip in place with the provided header.

One thing i would like to add here is that originally i tried to use an AtMega88 as i was told they were basically the same.  Unfortunately they are not.  There are too many dfferences to allow the standard hex file (for the AtMega8) to work.  Someone has ported the code to the ‘88 but i have not been able to get this to work.  I presume it has something to do with fuse settings on the chip but even though i have set them right, it still does not work for me. I ended up having to stick with an AtMega8 at about 5 times the price of the ‘88.

mjoy_pcb p3210025_sml1

PCB Layout files (Swiftview 5.0 format, free reader available to be able to print them)

NB – The Mjoy PCB has incorrect axis lables, they are backwards so it should read X,Y,R,T,Z,Rx.  Not really important other than the fact that the XYRT axes are 10bit and the other 2 are only 8bit. Earlier versions of Mjoy only have 2 10bit axes (X and Y)

pcb-mjoy-v14
load_cell_board

Please let me know if you download these files, it’s nice to know someone else is finding these useful.

I’ve also started work on my H Shifter for the sim.  I’m trying to keep the design simple but at the same time i want something robust and somewhat realistic.  Combining the ideas of some others, i have come up with my own design which should allow for this.

Shown below is the basis of the shifter (not complete obviously).  Between the 2 horizontal bars (the ones with holes in them) will go a block of delrin which supports 2 standard skate bearings.  I have not yet finished the profile on the horizontal bars, there will be another dip in the middle. The delrin will freely slide over the 1/2″ shaft and will be followed by a spring and then a retaining clip.  This will force the block/bearings down on the ‘ramps’.  This should give a ‘clunk’ into gear and also allow for a little freeplay between gears in the ‘y axis’ when viewed from above.  The centering mechanism will be another single spring around the shaft that sits on the rod end and is secured again by a retainer.  The compression of the spring will try to keep it centered.  From there it is only a matter of making a gate plate and hooking up the switches for the gears.  I intend to mount the switches in the base of the unit to keep them safe.

p3250031_sml p3250030_sml

Time for a new project

Sunday, March 21st, 2010

While i’ve been tinkering with many things over the time since my last post.  Most of it has not really been very noteworthy or at least nothing that would probably be of interest or use to anyone else.

However, inspired by now owning a 2L turbo sports car and some recent participation in some motorsport events i’ve decided to build a racing simulator.  It’s nothing new, i don’t claim it to be but i’ve decided to collaborate some of the things i have done in hope that it might help someone else going down the same path.

The aim of this project is to produce a somewhat life-like simulator without using a standard shop bought wheel/pedal set.  I’ts not going to be real, i know, but here’s my ‘requirements’:

  • Realistic steering wheel with as much rotation as possible
  • Analogue Clutch
  • ‘H’ pattern gear shifting
  • Analogue Hand/E brake
  • Force measured brake (not movement like normal pedal sets)
  • Small/Storable/Disassembleable  (I don’t have a spare room for a sim cockpit)
  • Strong/Durable
  • Cheap!

The intended target platform is a PC running ‘Live for speed’

I started this project a couple of months back, starting with the wheel and now i have just completed the pedals.   The steering mechanism was construced utilising a 2:1 ratio cam belt driven gearbox giving a theoretical ‘lock to lock’ of 540 Deg.  A little less than i wanted but it works ok.  There’s nothing too technical about it other than the gear reduction.  It uses a real sports steering wheel too.  A keen eye might also be able to tell what the bearing/shaft supports are recycled from :)

The pedals were heavily based on the design of the commercial product from http://www.cannonsimulationtechnologies.com. Todd of CST also sells a ‘DIY’ guide for making a pedal set that is somewhat comparable to his commercial product for only US$12.  I probably could have constructed my pedals without the need for the guide but i went and bought it anyway.  I saw it like paying royalties for his design and i think it’s only fair he gets some reward for his efforts.

The main difference with my pedals are basically the fact that i have constructed them almost entirely of things i had at home already or i could acquire for free.  The problem for someone attempting to replicate what i have done is, not everyone would have the stuff lying around like i do but parts can easily be substituted.

So far, the build has only cost me about $80.  The bulk of that cost is for the rod ends that go to the tops of the pedals at ~$16ea.  The springs were about $7 each.  The steering mechanism has been totally free so far.

All these mechanics are no good without some way to interface them with a PC.  I tinkered with the idea of using an optical mouse to track an encoder mounted to the steering wheel at first but this was not far from epic fail.  It worked but was too unreliable, lost it’s center and basically sucked.  One advantage it did have was an almost unlimited number of rotations.  Pity it sucked everywhere else.  Abandoning the optical mouse idea, i moved to the old pot style joystick.  I happened to have an old E-Sky USB trainer in the cupboard that i never use anymore so i gutted that –  The result is the ability to have 4 axis analogue joystick control.  Only problem was that ideally i needed 5 analogue inputs but it was enough for ‘proof of concept’ for now.

Not long after destroying the USB trainer I came across Leo Bodnar’s site.  He sells a generic USB interface that provides 6+ Analogue inputs as well as 32 odd buttons.  While his product is good, it did not really follow the rule of cheap.  At about $80 to get one to my door, it would have doubled the current cost of the build.  Some more googling turned up a ‘product’ called Mjoy by Mindaugas Milasauskas.  It’s a DIY USB joystick interface based on an Atmega8 AVR. It seems that his legacy goes on but for some reason his website is gone.  I am making  Mindaugas’ and version of the joystick interface (for a fraction of the cost of Leo’s).  All of my designs and ideas will be published here.

The interesting thing with the CST pedals is the use of a load sensor for the brake sensing.  This is a superb idea (Although Todd admits it was not his).  This will give a much more real feel to the brake pedal.  I managed to salvage a load sensor from some industrial scales some time back – I knew it would be good for something! The problem is the interface between the load sensor and the joystick controller.  The load sensor only puts out ~2mv at full load, we need 0-5v scale for the joystick interface.  Some more googling dug up an ‘off the shelf’ chip designed for this exact task.  It’s an INA122 by Burr-Brown (owned by Texas instruments i believe).  As it turns out,  this appears to be the chip Leo uses in his controller with load cell interface.  The difference with me is, i’m going to give you all the info you need to get it running with Mindaugas’ design for free.

Details to come….

DIY PCB Boards – Toner transfer method

Saturday, March 21st, 2009

I know this is nothing new,  the toner transfer method has been around for years.  One of the pioneers was probably Thomas Gootee.  He discovered the miracle of the Staples paper and described the method of making a board really well.

While i don’t want to undermine what beautiful work he has done  (in fact, if you have come here without seeing his page first, i strongly reccomend you follow the link above before going further here) I would like to document some of my experiences using this method and what i use to produce repeatable results.

Primarily, the problem for us Aussies is that the staples paper is simply not available here.  I have gone through several brands of paper and just could not find any that released well enough.  Most of the papers coating also got stuck to the board and was hard to almost impossible to remove without damaging the toner.  I have used generic papers such as OfficeWorks brand, Avery, Canon and Kodak papers.  None of which produced good results.  All were cheap and only 15×10cm papers so fortunately it has not cost me a mint in research but the one i have settled on with PERFECT results is:

HP Everyday photo paper

The item number of the papers i have (in 10X15cm) is Q5441A.  This is plenty big enough for all my projects.  It releases PERFECTLY with no residue, even on the toner.  I only soak for about 5 mins in hot water and it simply slides off.  If some is left behind, soak for a little more and it will all come off – NO scrubbing with toothbrush, heavy rubbing etc.  it just glides off the board.  I was absolutely amazed at how well this paper worked compared to all the others i have tried.  There is simply no better paper in Australia.  To make things even better – the pack of 100 sheets only cost me $6!!  that’s right, the paper is so cheap it’s not funny.  Compare that to press ‘n’ peel or other commercial toner transfer paper which is not any better and WELL above that price.

That is not the only key to this system working consistantly, the other important factor is how the toner is transferred with heat and pressure.  Irons can and do work ok but repaeatable results are hard to achieve with them.  I generally found that i eneded up applying too much heat and/or the paper tended to slide and smudge the toner which meant starting again.  The answer to this is to use a laminator but even still, not just any laminator.  90% (if not more) of laminators heat, then squeeze the laminator pocket.  They do this by having 2 heat plates before the rollers to warm it up and the rollers then squeeze it all together.  What i have found is that the heat and pressure need to be applied at the SAME TIME for it to work well.

The key here is, find a laminator that utilizes a heater INSIDE the roller.  AFAIK, the only company that produces this type of laminator is GBC and even not all of thiers work like this.  I can confirm however that the GBC ‘Creative Laminator’ available at K-Mart DOES.  I believe this is also the same as the one available from Dick Smith stores and even Australia Post.  K-Mart is the cheapest however, i paid just under $40 for mine from there.

The method of using the laminator is pretty straightforward but there are some points that should be observed:

1, Make sure the laminators ‘ready’ light is on.  It takes about 5 mins to heat up…
2, Run the board through the laminator with a piece of ordinary blank paper over the copper to pre-heat the board.  The piece of paper is important as i have found that the toner does not stick as well if you don’t.  I presume this has something to do with the rubber rollers possibly having some oil residue on them.  It could go away after time.
3, Once the board is preheated, attach your PCB design and carefully feed the two through the laminator at least two, probably 3 times
4, Dunk board and paper in hot water and leave for about 5 mins then peel slowly. 
5, Etch as normal with your favourite echant
6, Clean toner off with Acetone 

So far using this combination of the HP paper and the GBC laminator i can consistantly produce boards with tracks at 0.4mm and even less between tracks/pads.  it’s possible that it could go less but i have not tried.

Below is some pics of a board i have just done… This is for a pic based li-po monitor i found over at http://www.plmsdevelopments.com (look for the link right down the end of the text about Martin’s Electic RC exploits).

I am using a HP Laserjet 1320 with density set to 5 (maximum).  I still get some pitting in the toner as you can see in the pics but it is not evident in the final product.  I’m hoping to find a better printer that can pile up the toner – something like a HP Laserjet 4 but they are hard to find in good enough condition on the cheap.

UPDATE: I’ve since slightly changed the way i do this.  One thing is that i now tend to print my PCB’s using a very dark blue (on a colour laser)  rather than black.  It could really be any colour i spose but my theory is the darker it is, the more toner is used.  I have found this to be the best way to avoid pitts in the copper after etching as it fills all the gaps.

The problem with this is, the colour toner tends to be a little harder to melt in the laminator. Basically, it doesn’t.  It’s very hard to get it to bond.  However, Ahmad Tabbouch has written an excellent guide on bumping up the temp on the GBC laminator, as well as another mod that should help it last a bit longer.  I won’t re-hash what he has done, but here’s a link to the guide on his site – http://www.ultrakeet.com.au/index.php?id=article&name=superfuser.  Even if you don’t use colour toner, it’s still a great mod.  No pre-warming the PCB and you only need to feed it once! Highly reccomended mod, you could even substitute the resistor with a trimpot and have variable temp if you ever need to use the laminator for it’s actual intended purpose.  However, the outer shell will get a little deformed from the extra heat and i would not reccomend leaving it on for more than is needed for a few boards. 

Anemometer update

Thursday, February 12th, 2009

It’s been a while since i posted the original concept of the anemometer and much more development went into it after that.

I have now made a propper PCB and gone to a 20X4 LCD as well as probably tripling the lines of code.

The code now displays a speed for every revolution of the vane. It’s a little hard to read in windy conditions so i also added an average reading which is an average of the last 10 readings.  I also added a feature into the code to output the average value via a serial port on the chip. The serial port data is pumped into a MOXA nPort server, which is mapped to a virtual serial port on my server over the internet (some kilometers away).  The data is logged via a PHP script, further averaged and pumped into an rrdtool database at regular intervals.  This gives me the ability to easliy see what the conditions are like from anywhere in the world.  It’s geeky i know, and it was more of a ‘because i can’ feature rather than a requirement.

Feel free to check it out – http://www.hux.net.au/anemometer It’s basic but does the job.

anemometer_mounted

Action!

Tuesday, November 11th, 2008

I took the boat out again last weekend and we did some more tinkering to get more speed.  The trim tabs did not improve performance, they hindered if anything so I pulled them off the boat.

It was flowing nicely, the copper pipe helped with the heat in the coupler but i’m going to change it for something a little smaller to get more surface area contacting the header pipe.

The level in the pond is getting really low now, too many shallow spots etc.  It’s probably time to either find another spot or possibly shelve it for now.  Might still see maybe one more installment but i think i’ll end up waiting for some more rain to fill the pond rather than going back to the salty river.  Time will tell.

 

Octura Coupling still not quite good enough

Thursday, October 23rd, 2008

So we took the boat back down the pond for another shot.  It went superb!  I would have to say that it was the fastest it has run yet.  With no real problems causing us to take it home it gave us the opportunity to give it a bit of a tune and get some more speed out of it.  The latest video shows it going significantly faster and now on 98 octane fuel and a different plug there is no missfire.  It was truly singing!

The water level was getting a bit low in the pond now uncovering 2 ‘islands’ in the middle.  It proved to be a little hard to negotiate between them so i stayed in the bigger area.  It looks like i’m just doing circles but infact the back run is quite straight.

The boat flipped a couple of times, the last one got caught on video but the first one was much more spectacular.  The boat held up well tho and once the water was out of the engine it started fine.

So, on to the coupler.  Well, i would say that it’s still the best solution so far but it’s still not quite up to the task.  After a full tank of juice (first time!) it was a bit melted. The problem is that most gas powered boats have water cooling the exhaust header so any product that i get is likely to only take 200 deg or so.  Mine does not have any cooling at the moment.  So, what i have decided to do is wrap some 1/4″ copper pipe around the header about 4 times.  I am going to run cooling water through it from the rudder and see what that does.  Hopefully this will help reduce the temp of the pipe and therefore preserve the coupling.

I have also got some stainless sheet to put on the back of the boat as trim tabs to help get it out the water a bit better.

I’m working on trying to get an onboard cam going too :)

Quick update

Thursday, October 16th, 2008

With the leg now complete, i moved back to the exhaust.  This has been a problematic area from day 1.  The problem is associated with the poor balance and vibration in the motor.  Basically, the exhaust is shaking itself to death…

 

Originally it was solid all the way through but the thinner stainless of the pipe fatigued and cracked from vibration.  So, in the last run i tried a silicone coupling i got from rcboatbitz but it only lasted the previous run before splitting and that’s what caused the boat to stall at the end.  It was not really good for the job as it is designed for much smaller pipe and it was stretched to go over the 1″ pipe of my setup.

I’ve now just fitted a product that is made by octura.  This one is still silicone but it’s reinforced with 4 layers of fibre as well.  This one was 7/8″ so it’s still a slight strech over the pipe but not as bad as the other one.  I have since found that octura do the same part in 1″ as well so if this one splits i’ll order one of them.

The bigest problem is the heat – it’s classed as a ‘high temp’ coupler but i have no idea on the actual rating of it.  I tried to find some specs via the oracle that we know as google but it turned up nothing so far. With any luck it will actually hold up…