Honda G200 - EFI Conversion

Status
Not open for further replies.

NewbCarter

Member
Messages
403
Reaction score
4
Location
Solin , Croatia
Kudos to you for doing this conversion, may I make a suggestion? The abrupt 90 degree that you have on the exhaust really impedes flow, if indeed you need to have a 90 degree angle in the exhaust then for maximum exhaust flow it needs to be constructed with a radius bend in the 90 degree section of the exhaust pipe, that abrupt 90 degree section in your pipe is bad for performance.

Ty DD ! The exhaust is currently a temporary fix till i get around to build a proper one . The intake manifold will also need modifying to adapt it to the scooter throttle body .
 

NewbCarter

Member
Messages
403
Reaction score
4
Location
Solin , Croatia
Here i have marked the Intake Opening line (IO) and Intake Closing line (IC).

The microcontroller is going to use the IO sensor to engage a MOSFET controlling the injector (PWM signal for the injector ) and the time it takes for the magnet to cross the IO to IC is the time the injector can be activated .
As soon as the IC sensor goes active , injector MOSFET is turned off.

The timing for this engine is 20 degrees BTDC , which i will mark later on.
 

Attachments

  • 20160416_144845.jpg
    20160416_144845.jpg
    186.2 KB · Views: 1
  • 20160416_144908.jpg
    20160416_144908.jpg
    243.4 KB · Views: 1
  • 20160416_144850.jpg
    20160416_144850.jpg
    199.9 KB · Views: 1

NewbCarter

Member
Messages
403
Reaction score
4
Location
Solin , Croatia
The 3 magnet sensors should arrive soon , but till then i will try to explain the programming process , and how will i connect individual sensors / probes to the microcontroller .

I did find pressure transducers as well , tho they are not really cheap at 8$ a pop ( almost 50 kunas here ! ) , so i will try to get them in as soon as i can .

In the meantime , il try to write up something that makes sense , probably going to get around it tomorrow.
 

Toycrusher

New member
Messages
168
Reaction score
0
Location
Deep Deep South Texas
Keep in mind you want the air/fuel to be atomoized (sp?) before getting pulled in to the cylinder. If you are spraying only while the valve is open, the initial air being drawn in is going to be "dry" and the last bit of fuel being sprayed may not make it in as the valve is closing. Typical automotive systems fire the injector twice per revolution or even continuously (on a duty cycle) through the whole 720 degrees of rotation.
 

Poboy kartman

Senior Moments Member
Messages
12,461
Reaction score
73
Location
White Settlement Texas
Keep in mind you want the air/fuel to be atomoized (sp?) before getting pulled in to the cylinder. If you are spraying only while the valve is open, the initial air being drawn in is going to be "dry" and the last bit of fuel being sprayed may not make it in as the valve is closing. Typical automotive systems fire the injector twice per revolution or even continuously (on a duty cycle) through the whole 720 degrees of rotation.

When you posted this before I was having a very hard time believing it....however, for some reason I was thinking injecting straight into the cylinders which would put a fuel charge into the exhaust cycle!

DOH! The injectors are in the intake....and the charge cannot enter the combustion chamber until the intake valve opens....So, I'll take your word for this unless or until I find out different....(but it still doesn't make too much sense to me as it gives the charge time to settle...)

EDIT: Is the theory behind this that the intake is under constant turbulence and therefore the whole intake have a partial charge augmented by the additional squirt just as the valve opens?
 

Toycrusher

New member
Messages
168
Reaction score
0
Location
Deep Deep South Texas
Actual theory behind it is that the injector has more time to fire so it's not being worked so hard. The injector atomizes the fuel sufficiently and the actual time in miliseconds between revolutions is so tight that the fuel doesn't fall out of suspension.
 

NewbCarter

Member
Messages
403
Reaction score
4
Location
Solin , Croatia
Actual theory behind it is that the injector has more time to fire so it's not being worked so hard. The injector atomizes the fuel sufficiently and the actual time in miliseconds between revolutions is so tight that the fuel doesn't fall out of suspension.

So , if i got it right , i should engage the injector a tad bit earlier than then valve opening ?

Due to how the sensors work , this should be just a few lines of code i the programme.
 

Toycrusher

New member
Messages
168
Reaction score
0
Location
Deep Deep South Texas
So , if i got it right , i should engage the injector a tad bit earlier than then valve opening ?

Due to how the sensors work , this should be just a few lines of code i the programme.

Well... I've never tried building a base map myself but I know enough to be pretty dangerous :2guns:

Bottom line, don't limit yourself to the time the valve is open. You may only need a crank position sensor for calculating purposes. Trial and error, just have a handy kill switch! :lolgoku:
 

NewbCarter

Member
Messages
403
Reaction score
4
Location
Solin , Croatia
Well... I've never tried building a base map myself but I know enough to be pretty dangerous :2guns:

Bottom line, don't limit yourself to the time the valve is open. You may only need a crank position sensor for calculating purposes. Trial and error, just have a handy kill switch! :lolgoku:

Well , since the ignition will be controlled thru the microcontroller aswell , a few lines of code with an IF function should do the trick ...

If not , the fastest one to the sparkplug wire wins XD
 

NewbCarter

Member
Messages
403
Reaction score
4
Location
Solin , Croatia
Well , here i will continue on with programming , or at least the basics of it .

Here is a screenshot of the Arduino Genuino software with which one can programme a microcontroller chip .

As you can see it uses C++ as the programming language , so it is quite simple to get the hang of it .

The programme you see ( or at least the part of it ) is a setup for 4 LEDs as running lights .

As you can also see , we have commands such as pinMode . pinMode sets the desired pin of the chip as either an INPUT or an OUTPUT pin , hence the I/O pin designation .

int stands for integer , and in this case we use it as a means of attributing a certain "name" to the desired pin , and also to define what kind of data can we see on these pins . In this case a 0 or 1 which are whole numbers .

The other commands i will use are :
-digitalWrite()
-digitalRead()
-analogRead()

Digital write and read are commands which either set a desired pin to either HIGH (1) state or LOW(0) state , or read the state the pin is , and we can use that info later in the programme .

analog read reads the state of one of the 5 analog pins . Again as with digitalRead we can use this data later in the programme .

Now , the functions im expecting to use are :
-IF-Else
-FOR
-DO-While
-Switch

IF function works as following :

if ( condition )
{
Programme A
}
else
{
Programme B
}

We have a condition which for example would be engine RPM . IF the RPM range is between a 1000 and 5000 RPM , or in other words if the condition is TRUE , it will run the Programme A.

If the condition is not met , it skips over Programme A and goes thru Programme B

FOR works with the same principles as IF , but is better suited for the task of engine menagement .

In the FOR function we have a varibale ( integer in this case ) , a test ( condition) and an increment .
void loop()
{
for (int i=0; i <= 255; i++){
analogWrite(PWMpin, i);
delay(10);
}

The reason this function is better suited is that it is used in repetitive tasks , and can be done quicker than the IF. Also , for having the useful increment , it can also be a safeguard to make sure everything is working as supposed .

DO-While , as its name sais , enables a certain programme to be run WHILE the conditions are TRUE . This function also favors repetitive tasks .
do
{
delay(50); // wait for sensors to stabilize
x = readSensors(); // check the sensors

} while (x < 100);

Switch is a function which enables an x amount of programmes to be run according to the state of the condition .
switch (var) {
case 1:
//do something when var equals 1
break;
case 2:
//do something when var equals 2
break;
default:
// if nothing else matches, do the default
// default is optional
break;
}

For example , if engine cylinder head temperature is below 150.C but is above 125.C , run programme A . If it is above 150.C run programme B and if its below 125.C run programme C.

This enables me to write the code in much more detail than with an IF function , even tho it is the easiest one to use .

Because , to do the same task a single switch function can do , i would need 4 IF functions , branched inside eachother for the same task .
 

Attachments

  • bandicam 2016-04-20 17-29-00-045.jpg
    bandicam 2016-04-20 17-29-00-045.jpg
    374.7 KB · Views: 7

Toycrusher

New member
Messages
168
Reaction score
0
Location
Deep Deep South Texas
Can the arduino Calculate functions and areas under a curve? Your fuel map will be really a changing graph with fuel rates adjusted by rpm, throttle position, manifold pressure, temperature, and ambient temperature. Tricky no doubt
 

NewbCarter

Member
Messages
403
Reaction score
4
Location
Solin , Croatia
Can the arduino Calculate functions and areas under a curve? Your fuel map will be really a changing graph with fuel rates adjusted by rpm, throttle position, manifold pressure, temperature, and ambient temperature. Tricky no doubt

Tricky indeed , but can be done . I can do a loop with multiple do-while functions for differing throttle positions and all other factors ..

Example :
do
{
Programme for throttle @ 50% opening
}while(Temp<125.C;RPM<2500...).

So it will do the programme set if the conditions are met .

The same can be done with FOR aswell , or even Switch
 

itsid

Moderator
Staff member
Messages
11,563
Reaction score
261
Location
Ruhrpott [Germany]
it's easier to read if you wrap code in code tags
Code:
do
{
    Programme for throttle @ 50% opening
}while(Temp<125.C;RPM<2500...)
just like that
[code]...[/code]
or replace "code" with "php" for some basic code highlighting

And just as a warning, make sure to use the proper syntax for the task.

That will NOT only run if the condition is met.. it'll run at least once no matter what temp and rpm are being read. (post loop check)

the other way around: (pre loop check)
Code:
while(Temp<125.C;RPM<2500...)
{
    Programme for throttle @ 50% opening
}
instead will only run if the condition is met.

'sid

PS a GT40 ... that Gulf paint always reminds me of Steve's 917 ;)
 

NewbCarter

Member
Messages
403
Reaction score
4
Location
Solin , Croatia
it's easier to read if you wrap code in code tags
Code:
do
{
    Programme for throttle @ 50% opening
}while(Temp<125.C;RPM<2500...)
just like that
[code]...[/code]
or replace "code" with "php" for some basic code highlighting

And just as a warning, make sure to use the proper syntax for the task.

That will NOT only run if the condition is met.. it'll run at least once no matter what temp and rpm are being read. (post loop check)

the other way around: (pre loop check)
Code:
while(Temp<125.C;RPM<2500...)
{
    Programme for throttle @ 50% opening
}
instead will only run if the condition is met.

'sid

PS a GT40 ... that Gulf paint always reminds me of Steve's 917 ;)

Yep , ty for the correction Sid ! And ofcourse this is just an example so that people who are not into programming languages , but as i said ty for the check and correction .

Well , favourite car of all time for me ... Scream of a carbureted V8 ... middle finger to Ferrari :wai:
 

NewbCarter

Member
Messages
403
Reaction score
4
Location
Solin , Croatia
Sorry for the "dead" progress guys , school kinda got between this and me , and somehow my sensors still havent arrived ..

In the meantime , any questions or things that could use further explaining , please shoot em at me !
 

NewbCarter

Member
Messages
403
Reaction score
4
Location
Solin , Croatia
:mad2: :furious2: I hate it when that happens..... :surrender:

Well nothing i can really do about it , im an average or above average "pupil" at school , im not worried about grades and stuff but it taking big chunk of my time , there is no point working for 15 minutes then taking off to study or go out with friends .. but o well , little more than a month to go till it ends ..

---------- Post added at 11:13 AM ---------- Previous post was at 11:12 AM ----------

BTW: Don't say "shoot 'em at me me" around Texans or guys from Chicago!

Should have pointed that out , ty poboy :funnypost:
 
Status
Not open for further replies.
Top