Instructions for setting up your Temperature sensors for use with MegaTune and the Megasquirt ECU. If you’re using the standard Megasquirt Sensors that I have supplied or that you have bought elsewhere then don’t bother with this stage. If you have sent me the measurements from your sensors, or I have told you I have them, then they will be on the CD I sent you under the name of your engine and temp_incs , EG: C20EX_IncFiles. If you go into that dir you’ll find a batch file called “Copy_Temp_IncFiles” Double click on this and it will automatically copy the temperature settings from the dir over into the Megatune Dir on your computer so that Megatune displays the correct temperatures. If the MegaSquirt has already been setup for you with a base Configuration or it has been running in your car and you have tuned it, then save the config file (**.msq) in MegaTune before doing these changes as the settings will ALL be deleted from the ECU’s memory when you download the modified firmware!! Stage 1: Measuring the resistance of the sensors You will need 2 pairs of wires, a thermometer and an ohmmeter (multimeter) Connect the wires to the 2 terminals on your temperature sensors so you can measure the resistance of them without moving them or touching them. We need to tell the software (Easytherm) what the resistance is at 3 temperatures over the operating range of the sensors. Easytherm will then generate 3 files (inc files) for the Megasquirt ECU and MegaTune (tuning software) to use for your sensors. First temperature around Zero deg C – Pop your sensors in the fridge with the thermometer and leave them for around 1/2hr to stabilize. Read the temp on the thermometer and then the resistance of both sensors. Make a note of each resistance and the temperature from the thermometer. Next pop them both under your arm, let them warm up first if they have just come from the fridge :-). Your body is around 36 deg C, so let them warm up and measure the resistance again of both sensors. Make a note of the resistance of both. Next hold them so the sensor area is in some boiling water or just off boiling (you can hold them using some thick gauge wire or pliers, etc). Being careful, measure the resistance and temperature of the water with the thermometer, I use a coffee machine’s water for this as it’s usually around 88C, obviously the temp needs to be checked but a temperature of around 80-100 deg C is fine. You now have 3 resistances for each sensor and 3 temperatures. Stage 2: Generate the 3 inc files ********************************************************************* IF THE ECU IS DIRECTLY DRIVING A COIL OR COIL PACKS UNPLUG THE COIL FROM THE ECU NOW!!!!!!!! See the final stage before plugging them back in!! ********************************************************************* To generate the new files and download them onto your MS ECU you have 2 options: ******************** o p t i o n a ) ************************* Run the EasyTherm program installation and then run the program. (this is on the CD or on my website www.ExtraEFI.co.uk) You will see it has 6 boxes to fill in for each sensor. There is also a "Biased Resistor" box, ensure that’s at "2490" Fill in your sensor info into the chart, ensure you select Fahrenheit or Celsius. Once filled in select "CUSTOM" in the list, Start Address should read F500. Next select: "Write inc and s19 files", this will bring a box up to select the file. You need to select the file msns-extra.s19 that’s inside the 029v directory (c:programfiles/megasquirt/029v/) this was installed during the MegaTune install. The display should read "OUTPUT DONE..." To Download the files to your Megasquirt ECU under option a: You next need to run EasyTherm and ensure the correct comm. port is selected in EasyTherm and your MS is powered up and connected to the cable I supplied. Ensure that "Custom" is selected in the code type. Next remove the lid from your MS ECU and with the POWER OFF short the boot loader link out. Turn the power on with the short in place. This has put you MS ECU into Bootloader Mode! Now you can select "Download to Megasquirt" Select the file"msns-extra_mod.s19" in the c:/programfiles/megasquirt/029v the display will show downloading then the MS will start up after a few minutes. You have now finished re programming the ECU, you can move to Stage 3 (Megatune) ******************** o p t i o n b ) ************************* Run the EasyTherm program installation and then run the program. You will see it has 6 boxes to fill in for each sensor. There is also a "Biased Resistor" box, ensure that’s at "2490" Fill in your sensor info into the chart, ensure you select Fahrenheit or Celsius. Next select: "Write inc and s19 files" the display should read "OUTPUT DONE..." This has generated 3 *.inc files inside the EasyTherm directory: Airdenfactor.inc - That’s for the inlet Air Temp sensor Matfactor.inc - That’s also for the Air temp Thermfactor.inc - this is for the coolant temp sensor Find these 3 files in c:easytherm/ directory and copy all 3 of them. Next go to the 029v dir (c:programfiles/megasquirt/029v) that was installed on your computer when you installed MegaTune extra 029v. Inside that dir go into "src" directory, you will see 24 files in there. Paste the 3 inc files from the EasyTherm dir into there, it will over write the 3 that are already there. Next double click on the "compile.bat" file, it will bring up a box, which will generate an S19 file for you, it will say OK at the end. As long as it says Successfully Assembled - OK, we can now copy the newly generated "msns-extra.s19" file (this file is about 62KB, don’t confuse it with the msns-extra.asm file which is 447KB. Copy the msns-extra.s19 and paste it into the dir up one, the 026h1 dir. It will over write the one that’s in there. Power up the MS ECU, don’t remove the lid, threes no need to with this method. Now double click on the "download-firmware.bat" file, or go to START – PROGRAM FILES – MEGASQUIRT – Download-firmware. Select your Comm. port (e.g. 1) then select "N" It will count up to 1400 odd Then your MS will run again. You have now finished re programming the ECU, you can move to Stage 3 (Megatune) Stage 3: Megatune After installing Megatune software find the folder c:/programfiles/megasquirt/Car1/mtCfg/ copy your generated inc files from the above stage into this dir. Note: these generated files are in c:/EasyTherm/ directory Airdenfactor.inc - That’s for the inlet Air Temp sensor Matfactor.inc - That’s also for the Air temp Thermfactor.inc - this is for the coolant temp sensor Your display in Megatune should now correspond to the temperature your sensors are at. If you had saved the config (msq) file in Megatune before doing the above then re-load it now, before plugging in the coil packs. After installing the new temp files into the ECU (downloaded firmware s19 file) run Megatune and please ensure that the Outputs are setup for your ECU before downloading it to your MS ECU. To check this open Megatune (MT) open the msq file and when asked whether to burn click “N”. If you are driving the spark coils directly then follow the following instructions: Now goto Spark Settings and set the Spark Inverted Output = YES Then go to Code Config – Codebase and Output Functions: Single Spark output MS ECU (MSD or Distributor or EDIS module, TFI, etc) LED17 (D14) = SparkA LED18, LED19 and Output3/SparkD must NOT be a Spark output Two Spark output MS ECU (4 cylinder wasted spark) LED17 (D14) = SparkA LED18 (D15) and Output3/SparkD must NOT be a Spark output LED19 (D16) = SparkB Three Spark output MS ECU (6 cylinder wasted spark) LED17 (D14) = SparkA LED18 (D15) = SparkC LED19 (D16) = SparkB Output3/SparkD must NOT be a Spark output Four Spark output MS ECU (8 cylinder wasted spark) LED17 (D14) = SparkA LED18 (D15) = SparkC LED19 (D16) = SparkB Output3/SparkD = SparkD Now it is safe to plug the spark coils back into the MS ECU!!!!!! If I have tested or generated your temp files or if you have any questions email me or ring me. philip.ringwood@ntlworld.com