Manual PDF
Manual PDF
3 ECU Manual
Versatile Engine Managment Systems
Genboard V.3 ECU Manual: Versatile Engine Managment
Systems
Table of Contents
1. Introduction ...................................................................................................... 1
Features ...................................................................................................... 1
Required Tools ............................................................................................. 2
Purchasing The Genboard V.3 ECU .................................................................. 2
2. The Nature Of Genboard ..................................................................................... 3
Processor Overview ....................................................................................... 3
The EFI & Ignition Process ............................................................................. 3
Code Overview ............................................................................................. 3
3. The Hardware ................................................................................................... 6
Basic Hardware Functions .............................................................................. 6
ECU Connectors ........................................................................................... 7
The Econoseal Connectors ...................................................................... 7
RS-232 Serial Connector ........................................................................ 8
Keyboard Connection ............................................................................ 8
LCD Connection ................................................................................... 9
Standard Wiring Diagrams .............................................................................11
Standard Sensor Inputs ..................................................................................11
Throttle Position Sensor ........................................................................11
Intake Air Temperature Sensor ...............................................................11
Coolant Temperature Sensor ..................................................................11
Manifold Air Pressure Sensor .................................................................12
Wideband O2 Sensor ............................................................................12
Exhaust Gas Temperature ......................................................................13
Triggers .............................................................................................13
Knock ................................................................................................13
Fuel & Exhaust Pressure Sensors ............................................................13
Standard Outputs/Drivers ...............................................................................14
Injectors .............................................................................................14
Coils/Misc Drivers ...............................................................................14
Fuel Pump Relay ..................................................................................14
Idle Air Actuator ..................................................................................14
Idle Air Motor .....................................................................................14
Interfacing the Genboard ...............................................................................14
4. The Software ...................................................................................................15
Firmware ....................................................................................................15
Getting Support Software ......................................................................15
Download and Install CVS .....................................................................15
Download and Install WinAVR ..............................................................15
iv
List of Figures
2.1. Ignition Flowchart ........................................................................................... 3
2.2. Software Layout .............................................................................................. 4
v
List of Tables
3.1. The 36-pin Econoseal Pinout ............................................................................. 7
3.2. The 18-pin Econoseal Pinout ............................................................................. 7
3.3. RS-232 Serial Pinout ....................................................................................... 8
3.4. PS2 Keyboard Pinout ....................................................................................... 9
3.5. LCD Pinout ...................................................................................................10
vi
Chapter 1. Introduction
The Genboard V.3 ECU is an open source, Do-It-Yourself, programmable controller that can be
used for multiple applications. The primary and most popular use of the Genboard is for Electronic
Fuel Injection on internal combustion engines. The goal of this manual is to explain what is in-
volved in using the Genboard for use in an EFI system and to lead you through the construction, in-
stallation, programming, and tuning of this application.
The Versatile Engine Management Systems (VEMS) website is run by volunteers and is a vehicle
for the research, design, and implementation of open source engine solutions that target perform-
ance, reliability, low cost, and versatility. It is also a vehicle of self-learning and fun.
Do-It-Yourself engine management became very popular around 2000 to 2001 with entry-level sys-
tems supporting batch injection only. VEMS took it to another level with the added functionality of
sequential injection, direct ignition control, wideband oxygen monitoring, detonation detection, ex-
haust gas temperature monitoring, and the ability to expand.
While there is a large network of resources and people for helping you with the Genboard use, you
are ultimately responsible for any errors, problems, and subsequent damage that may occur to any
engine running on Genboard. You must read and understand this manual before starting your Gen-
board project so that you may understand what is involved and successfully complete your Gen-
board installation.
Features
The VEMS Genboard is powered by the Atmel Mega128 processor. The items contained on the
board are included on the following list. These features make Genboard V.3 the most powerful and
inexpensive EFI and Ignition Unit ever available.
Drivers
Communications
Sensor Inputs
1
Introduction
Required Tools
Add the nessecary information here
Each unit comes fully assembled with the few exceptions being developers and special requests. A
fully assembled Genboard will come with the following installed: 12 FETs (injector/high current
drivers), 8 IGBTs (ignition drivers), and Econoseal III 36-pin & 18-pin automotive grade connect-
ors. Each of these boards will be tested to make sure they have been assembled correctly. Wideband
LSU4 sensors, EGT probes, engine harnesses, LCDs, Rescue Kits, spare parts, and other miscel-
laneous parts can also be purchased to make your installation complete.
Payment Methods
• IBAN (International Bank Account) Transfer Formerly Swift and works worldwide.
• Ikobo.com - http://Ikobo.com
• MoneyBooker.com - http://www.moneybooker.com
2
Chapter 2. The Nature Of Genboard
Briefly add stuff here about the history of Genboard and some of the downfalls of other DIY EFI
systems without naming names.
Processor Overview
The powerful core of Genboard V.3 ECU is the Atmel Mega128 that contains an advanced Reduced
Instruction Set Central Processing Unit. The processor has 128K Byte flash memory, which can be
written during operation of the unit. Other key features are as follows:
• 4K Byte EEPROM
• 4096 Byte SRAM
• 16 MIPS throughput at 16MHz
• 8x 10-Bit A/D inputs
• Several program counters
• Programmable in C
• Low cost
Code Overview
Need general introduction to this section.
3
The Nature Of Genboard
As with many embedded processing units, one must deal with times events, and our application is
no exception. These timed events can trigger algorithms, outputs, inputs, etc. There are several ways
to implement timed events
• Busy-Loops
• Timer-Based Events
For example, when you sleep at night, do you watch your clock every 5 minutes to know when to
wake up? You don't do that, do you? Most people will set an alarm clock to wake them up. This en-
ables them to do what they really want; to sleep. In this example, the busy-loop does not allow
people to do what they want.
This leads us to a timer-based event execution, which we control through software. It finds what
needs to be done next, knows when it is due, and also executes it. This allows us to set the alarm
clock and execute some task when it goes off. Timer based events keep us from using a busy-loop,
which can waste many processor cycles.
Collectively this is called event-queuing; the process of scheduling events precisely, with little over-
head. The Event-Queue s precision is implemented at 4 -sec, however worst case has shown to take
around 28 -sec, although this rarely happens. This idea has allowed the Genboard to remove fre-
quent no-op interrupts by using hardware counters and output compare registers as our alarm clock.
Neither sequential injector nor precise ignition timing would be practical otherwise. Allowing for
more available functions, the Genboard V.3 ECU is fast, precise, and inexpensive.
Now we want to introduce the Code Layout of the different modules etc. Need a good paragraph to
introduce this diagram. We should really create a cleaned up version of thsi software layout picture.
4
The Nature Of Genboard
The following paragraphs will give a little better description of the elements and categories listed
above.
Talk about the main loop of the code and briefly mention each of the main functions that get called.
Include information about how Eventqueue, etc works.
Include basic information about our efforts with the CVS on SourceForge.
5
Chapter 3. The Hardware
This chapter has been designed to help you, the user, to assemble, customize, and install the re-
mainder of Genboard V.3 ECU. We intend to accomplish some teaching of the following items in
this chapter:
We want to make this as painless as possible. The following sections will hopefully give you a basic
idea of what goes on in the circuitry, a glance of Genboard potential, and a follow-up of some
straightforward standard automotive wiring. Finally, we will discuss different ways to interface with
your Genboard V.3 ECU. More advanced topics will be covered in the appendix and will be noted
as such.
The 8 ignition drivers are composed of a logic level IGBT that supports continuous 14-amps. Igni-
tion coils, DI or DIS, are generally connected with their positive terminal to 12 volts and the negat-
ive terminal is connected to the Genboard. These drivers take the negative terminal and connect it to
ground when the gate input is triggered.
The 8 injection drivers support peak-hold injectors. Each injector’s positive terminal is connected to
a fused common 12-volt supply while the ground is run back to the board. These injection drivers
connect the injector’s ground to an actual ground when the gate input is triggered in a pulse width
modulated (PWM) format. Each injector uses a15A, 9.5nC, Rds = 0.055, logic level, insulated FET
and we have incorporated flyback protection into the driver circuit itself.
There are 2 High current outputs used for miscellaneous functions. These drivers are built the same
as the injector drivers and can be configured as high current (14 to 15 A) drivers for special outputs.
Examples of these include:
Pulse width modulated inputs for triggers here just like above …
Flyback circuits are used to protect the switching equipment (the injector driver FETs) from ex-
tremely high voltages that could occur when the inductive load is switched off. While the load is
switched off, voltage builds up and must be dissipated somehow so that we don’t burn up the FETs.
Some FETs can handle some abuse in this manner, but still, their ability to deal with the high
6
The Hardware
voltage is not sufficient, so we use a high voltage switching flyback to take care of it. Compared to a
Zener diode setup, the switching flyback allows quicker switching (for quicker closing of injectors),
longer life, less heat buildup, and returns the voltage to the injector common (12-volt VBATT) in-
stead of to a ground connection, as is used in other systems.
Anything else?
ECU Connectors
The Econoseal Connectors
The Econoseal III connection is where your Genboard V.3 ECU connects to the rest of the auto-
mobile. The Econoseal III connector is of industrial grade and serves to limit vibrations and contains
a seal to keep out fluids like oil and water in almost all cases.
7
The Hardware
Pin 09 - Wideband O2 Pump (WBP+ #1) Pin 18 - Wideband O2 Heater (WBH- #1)
Keyboard Connection
Keyboard Plugs
8
The Hardware
The Keyboard connector allows for a simple and versatile interface for inputing commands into the
Genboard ECU. It is located to the left of the ECU's Atmel processor. You can interface with either
a PS2 or an AT Connector. The PS2 connector is also refered to as a "6 Pin Mini DIN", while the
AT connector is refered to as a "5 Pin DIN". Either can be used as noted in the table below.
LCD Connection
The LCD Header is located directly below the ECU's Atmel processor and is used to interface a
____ compatable LCD. Please note that the LCD header does not start at Pin 1, but rather at Pin -1.
This was done to make Pin 1 the first LCD pin. Please note that all following information assumes
9
The Hardware
that you are using the LCD supplied from the VEMS Webstore. For contrast adjustment, a 470 to
1000 ohm potentiometer can be connected between LCD Pin 3 and Ground. The backlight feature is
available by inserting a 100 ohm resister between LCD Pin 15 and Vcc. The backlight feature can be
switched on or off by using a switch between LCD Pin 16 and Ground.
10
The Hardware
Add graph from data sheet to Appendix C of temperature versus resistance. Also include steps for
self-checking the sensor using a multimeter and the graph.
11
The Hardware
ECU’s internal tables. More can be seen about this in the section called EASYTHERM in Chapter
4. The following pin(s) are used to read the resistance of the CLT sensor through chassis ground.
Add graph from data sheet to Appendix C of temperature versus resistance. Also include steps for
self-checking the sensor using a multimeter and the graph. Added graph for GM CLT on page 34.
Couldn’t find a graph online (and I don’t have a GM Haynes), so I created one that works, but its
not all that nice. Replace if you can find a better looking one.
Graph from data sheet added to Appendix C of pressure versus V-Out. Also include steps for self-
checking the MAP sensor using a multimeter and the graph. Data sheet is here: ht-
tp://www.vems-group.org/files/sensors/MPX4250A_rev4.pdf
Wideband O2 Sensor
The wideband oxygen sensor (WBO2) is used as feedback to the Genboard V.3 ECU’s fuel calcula-
tions. When a target air fuel ratio (A/F) is set, the ECU can use the WBO2 sensor to compensate for
too much or too little fuel. The WBO2 sensor is similar to the standard, commonly used narrowband
oxygen sensor. Since the Genboard V.3 ECU was designed to be used with the Bosch LSU4 Wide-
band Oxygen sensor, it can provide very accurate, high rate A/F data. Genboard V.3 ECU excels
above the rest as it provides for two WBO2 sensors. These can be bought through the VEMS Web
Shop. Please read Appendix A’s Genboard Wideband License.
The WBO2 sensor is not a common sensor. It contains a heater and pump that must be driven with a
controlled 12 volts to maintain proper A/F readings. The following pin(s) allow the WBO2 sensors
to connect to the Genboard V.3 ECU:
Wideband O2 #1
Wideband O2 #2
Wideband O2 Connector
12
The Hardware
A handy item to purchase from the VEMS Web Shop is the WBO2 sensor connector. This will al-
low for direct mating of the WBO2 sensor to the harness. An additional 12-volt fused supply is re-
quired to run the Wideband O2 sensors. The following pin(s) located on the common WBO2 sensor
and are listed below. See right for actual connector.
EGT Probe #1
EGT Probe #2
Add graph from data sheet to Appendix C of temperature versus resistance. Also include steps for
self-checking the sensor using a multimeter and the graph.
Triggers
Put the oddels of information here about this subject.
Knock
Put the oddels of information here about this subject
Standard Outputs/Drivers
Injectors
The injector (INJ) outputs on the Genboard V.3 ECU are used to drive High-Z, peak- and-hold in-
jectors. Genboard can be configured to use any combination of these INJ outputs to support between
2 and 16 individual injectors. There are load concerns to think about before trying to hook up the in-
jectors.
Genboard V.3 ECU support either batch, semi sequential, and full sequential. There are different
theories about which mode of injection is better. VEMS is in agreement that while sequential does
not add more power, its more efficient, lowers emissions, and provides better seat time for an inject-
or since a longer on time is used. Full sequential injection can only support up to 8 injectors. Since
the INJ circuitry will only allow two injectors to be connected to one driver, the most Genboard V.3
ECU could support would be 16 cylinders in semi sequential or batch mode. How you setup your
triggers in both hardware (Chapter 3) and software (Chapter 4).
For any combination of injectors, the positive terminal on the injector(s) must be connected to fused,
switched 12 volts and the negative terminal is connected to the Genboard at the one of the following
INJ Pins:
Associated with injector solenoids is flyback. Please talk briefly here how to hook it up and when to
hook it up.
Coils/Misc Drivers
Complete this just like the injector section was done. Note about how the ingition and driver outputs
are the same.
14
Chapter 4. The Software
This chapter discusses a topic equally as important as hardware - software. Let’s recap. If you recall
the code overview section in Chapter 2, you will remember that there are two basic areas – firmware
and configuration. In Chapter 3, you saw the different ways you can connect a Genboard V.3 ECU
to an engine. Also in Chapter 3, you connected your Genboard to a PC/PDA. In this chapter, we will
show you how to configure your ECU through a PC/PDA to run your engine through a configura-
tion file.
Firmware
Getting Support Software
It is easiest to first download and install the support software, which includes WinAVR, CVS, and
Perl. WinAVR is a compiler, or what breaks our human-readable commands to the processor down
into something it can understand. WinAVR also includes a few utilities such as a shell (command
line) and compression tools. Theses directions are written to include the use of these tools, however
one can substitute a more familiar package if they choose to do so.
CVS, or Concurrent Version Systems, is a program that will download up to the minute updated
software from the development site. It is very easy to use, but if you would rather manually down-
load and uncompress a thrice-daily updated package, you can get the snapshot at: ht-
tp://megasquirtavr.sourceforge.net/msavr_fw_snapshot.tar.gz
Perl is used to automatically synchronize some of the settings used when compiling the firmware. It
is also used to automatically build the menu screens for the LCD display.
If you are looking for a binary (already compiled, you just uncompress and run it) file, look here: ht-
tps://ccvs.cvshome.org/servlets/ProjectDocumentList?folderID=80&expandFolder=80&folderID=0.
If you are having problems with CVS, you can always fall back to the snapshot.
Use the appropriate compression utility to uncompress the file downloaded from the CVS site,
which should be a .zip file.
15