Wednesday, 22 December 2010

Dual plane manifold

In parallel to the manufacture and testing of the Megasquirt controller, I have been working on the CFD analysis of options for the intake manifold. Having established my cylinder head model had at least a passing resemblance to reality in this post, I have moved on to creating a simple engine model comprising the manifold, two cylinder heads and outlet pipes representing the cylinders:


This model was then run 8 times, each with a different inlet valve being open. These were run with a constant pressure drop representing a high RPM running condition and maximum valve lift. This is the condition where runner mass flow variation will be most obvious. Once the simulations were complete, I interrogated the results and normalised them against the average mass flow for all 8 cylinders:


The chart indicates that the variation in inlet runner geometry produces quite a variation in mass flow into the different cylinders (from -11% to +15% from the average). This is not an issue with a carburettor providing the fuel because the mixing is done at the throttle plate so each cylinder gets an appropriate air fuel ratio. However, the fuel injection system will work on the total mass air flow being split evenly between the cylinders and fuel accordingly resulting in overly rich and overly lean cylinders. This is not conducive to a happy engine, so an alternative manifold is required. Onto the single plane design then...

Megasquirt Aux Board

I have now installed the output stage comprising the injector, fuel pump and Air Bypass Valve (ABV) drivers and this marks the completion of the base Megasquirt controller. However, the extras I am adding (Automotive connector, 2 coil pack wasted spark control, radiator fan control, tachometer output pulse, 2nd Exhaust Gas Oxygen sensor input, and 'engine running' signal) require an additional circuit board. I have tracked down what appears to be a relatively easy to set up and use PCB generation tool called Designspark. So far I have created the auxiliary board schematic:


Which then allowed me to create the PCB layout:


There are still a couple of details I need to sort out such as the flyback diodes for the relay driver and ABV, but I should be in a position to send this board for manufacture shortly. Before I do though, I would like to prototype some of the circuits just to make sure it will all work as planned!

Friday, 10 December 2010

Megasquirt Episode 3 - Revenge of the Sith

Progress has continued on the engine controller with the construction of the power stage with the required testing showing volts where they need to be and no volts where they shouldn't. Since I am not using the standard Megasquirt DB-37 connector, I am having to temporarily connect using discrete wires. Ultimately these will to be replaced with a flying lead to the auxiliary board containing the additional components for the wasted spark coil drive, tachometer output signal and the second exhaust gas oxygen (EGO) conditioning circuit.


The communication components are added next and checked for correct function thorough the programming connector.


With the board working according to the instructions, I was able to move onto the input conditioning circuits which take the engine sensor data and feed it into the main processor inputs. With these components in place, I could hook it up the the laptop and run the Megatune software used for communicating with, and tuning the ECU.


The engine sensors are replicated by the Stimulator so the pots can be twiddled and the corresponding reading on the real time display changes. So far so good...

Thursday, 2 December 2010

MegaStart - The Sequel

Following successful testing of the JimStim (well, making sure there was 12V where it should be and resistances change with twiddling the pots) I made a start on building the Megasquirt module proper. The comprehensive kit from DIY Autotune comes extremely well packaged and labelled, identifying each component, its value and important assembly information such as leg bend length and if the part needs to stand off from the PCB. I would heartily recommend this company to anyone considering the purchase of a kit, or indeed anything related. Anyway, I had to make a start on this:


First job was a modification (I can't do anything the conventional way!). I am planning to use wasted spark, PWM Idle valve control, ECU controlled cooling fan relay and an 'engine running' signal, so it seemed logical to have an auxiliary PCB to tidy everything up. In addition, I am not keen on soldering wires into connectors for automotive applications since there is a risk, albeit small, of wire breakage from fatigue. The standard solder bucket DB37 connector will have to be replaced with an automotive spec crimped terminal part. I managed to stumble across an enclosure of similar footprint, but taller to allow all of the additions to be made so I procured it from Maplin (part number N85AL) and set about scheming the design. Fortunately, the enclosure manufacturer kindly makes 3D CAD models available, so this was a relatively easy job:



With this complete, I could make a start on trying to turn it into reality. Since the enclosure is metric (100mm wide slot opening) and the Megasquirt PCB is imperial (4 inches), I had a small amount of filing to get the two to mate together. This had to be done with great care to ensure the intermediate copper layers (it is a 4 layer PCB) were not shorted to the case. All appeared to be well:


This has a knock-on effect to the heatsink strip that sits under the power devices. I had to shave a small amount off this as well to get the holes to line up:


With this all fitting together, I can make a start on stage 1 of the controller - the power supply.