!!!!WORK IN PROGRESS!!!!This is how-to is meant to be a guide for setting up a configuration file for the VEMS standalone system (other systems are most likely similar). This is purely covering the configuration side of things, it will not cover how to tune or how to wire the system up. There are simply too many ways to wire in a system to even attempt to cover this area. Tuning is also far too wide and complex of a topic to try and cover in this thread. I am not any kind of an expert so double check things for yourself which may not seem correct. I am simply going through this exercise myself for the first time and making a guide with all the info I wish were easily accessible when I was trying to make heads and tails of everything.
Since I know there will be questions, I'll post this stuff at the beginning and if you are comfortable with this info, move on.
Reading Material:If you are interested in learning how engine management works fundamentally from the hardware side I found this book to be helpful:
How to Tune and Modify Engine Management SystemsI also liked this book for covering how to tune:
Engine Management: Advanced TuningAlso an all around good book on tuning, engine building, and turbo systems:
Forced Induction Performance Tuning a Practical Guide to Supercharging and TurbochargingPeople like this one too, but I think it's not very thorough:
Maximum BoostVEMS Pin Out: If you are curious how you would go about wiring up a VEMS unit, here is the
wiring diagram for the inputs:
VEMS Homepage (Hardware): http://www.vems.hu/VEMSTune homepage (Software): http://www.vems.hu/vt/Even if you do not have the hardware you can download the software and experiment with it to see if this is something you are interested in.
VEMSTune Video Tutorials: http://www.vems.hu/vt/videoGetting Started:Before plugging in your VEMS ECU verify all grounds work correctly as a safety precaution. To do this, set your volt meter to the diode [insert picture of volt meter set to diode] and touch the ground in your wiring harness to a known good ground. If everything is good you will get a audible beep, or a blink depending on your particular meter. To get a known good ground in my E30 I ran a wire from the negative terminal into the cabin of the car to use as my chassis ground. E36 should be easier due to closer battery location.
This step is essential to make sure you don't fry your new EMS!
Setting up the Config:Open VEMSTune and open a config file to start with. Start with the one that is the latest software version. You can either do this from the opening page under "Recent Config Files" or under File -> Open Config File
The red box shows where to open a config file from the main screen:
Engine Setup:Once the config file is open go to Base Setup menu in the toolbar and select the first option, Engine Setup. The engine setup dialog box should look like this:

If you press F1 for help, you get this nice help screen next to whatever dialog box you are filling out with descriptions of the variables. This is incredibly helpful and I highly recommend having this open until you know what all the inputs are for on every screen. The help is sometimes out of date, or it does not cover everything clearly. It is still an amazing resource. The Engine Setup dialog box with the Help open looks like this:

The help on this screen is pretty good at explaining everything you need to know. Just follow the directions for the most part. To convert lb/hr to cc/min multiply the injector flow rate in lb/hr by 10.5. The M42 came from the factory with 20.35lb/hr injectors * 10.5 = 214cc/min. The formula for Req Fuel is listed in the help. It is Req_fuel = 6.49 * (Engine Displacement in cc / Number of Injectors / Injector Flow Rate in cc/min). The rest of the variables you will have to fill out yourself depending on your setup.
To go to the next dialog box you want to fill out you can select it from the menu bar, or use the handy arrow in the middle of the box at the bottom.
Do not hit refresh as that will erase all newly changed variables and revert back to the config as it was opened! Numbers that appear
red are variables which have changed since the config was opened (not since last saved unless you close and reopen the config). Remember to SAVE your work regularly!
Alpha-N/Speed Density blending:
Most people will have it set up the same as pictured here if you are running a MAP sensor. Remember to enter 0kpa in the switch point variable if you want to read off the MAP exclusively (as you do in an MAP based setup). If you choose to run your engine off the throttle position sensor instead of a MAP sensor at lower pressures then select Alpha-N as your main control strategy and enter the point in which you want the ECU to switch between TPS and MAP for the main load reading. Alpha-N is mostly reserved for an ITB setup.
Primary Trigger Settings:
For anyone using the factory 60-2 toothed wheel on the crank you will have a setup similar to mine. Your trigger edge will be rising since it is a VR sensor. You will have a missing tooth wheel and N-2 as the missing tooth type. This also means the number of teeth on the wheel will be 58 (since two are missing) and the angular width of a tooth is 6 degrees (360 degrees/60teeth = 6 degrees/tooth).
To determine what tooth is at the VR sensor at TDC, set your engine to TDC and count how many teeth have passed by the VR sensor to get to that point. I set my engine to TDC and made a mark on the TDC reference tooth with a grease pen. Then I turned the crank so that all the teeth from the gap to the tooth were exposed and counted them. I got tooth 20 to be the TDC tooth.
Here is a picture of marking the tooth (you can see yellow paint on the TDC tooth):

Remember that 0 is the first tooth on the wheel after the gap, so since I counted 20 teeth to TDC, it will show as tooth 19 in the display.
Next, choose a value for First Trigger Tooth (FTT). It took me a bit to understand what exactly this value is for. You can choose any tooth between the gap and the TDC reference, but it is best to choose a low number. The purpose of this tooth is to let the system know when to start charging the coils. If you set this value too large, you will not get adequate charge on the coil. I chose tooth 5 (at random) to be my FTT, but it is shown as tooth 4 in the dialog box since the first tooth on the wheel is number 0.
After you have set your FTT, figure out how many degrees this represents (FTT * Angular width of tooth) = FTT degrees. This needs to be subtracted from the degree representation of the TDC reference (TDC ref * Angular width of tooth) = TDC degrees. Now take TDC Degrees - FTT degrees to get your variable TDC after the trigger.
Using my settings for the M42:
FTT degrees = (5 teeth * 6 degrees) = 30 degrees
TDC degrees = (20 teeth * 6degrees) = 120 degrees
TDC after the trigger = 120 - 30 = 90 degrees.
Next trigger tooth is found by taking two revolutions of the crank (120 teeth) and dividing by the number of cylinders.
For a 4 cylinder this variable will be 30 teeth
Disable all the filtering as you do not need it.
Trigger Settings Visual:
This is a neat feature to help you visualize the layout. Its also a good reality check to make sure your values are correct. Anything you enter in the Primary Trigger Settings dialog box will automatically transfer here, you do not need to enter it twice.
One handy thing I noticed about this box is that the TDC after the trigger values on the slider are color coded. If your value is in the red or yellow, you need to leave more space for your coil to charge. If this is the case, choose a lower number FTT.