Whizzo944's Honda VFR400R NC30

Post your project vehicles here! One thread per vehicle please.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Whizzo944's Honda VFR400R NC30

Post by Fred »

A couple of questions:

1) Is the 36-1 setup your own design or OEM stock?
2) How many injectors/what configuration, just 4 normal port injectors?
3) I assume that you're planning wasted spark ignition? This will require a long-overdue new feature or a small hack. I plan to get this done pretty soon.
4) Cold idle airflow? Sit on the bike holding the throttle or some valve?

Update the first post with more description and some pics rather than answering below :-)

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
whizzo944
QFP80 - Contributor
Posts: 53
Joined: Sun Mar 27, 2011 9:35 am
Location: Durham, U.K.

Re: Whizzo944's Honda VFR400R NC30

Post by whizzo944 »

Is there a user's guide for EMStudio anywhere, or some sort of How-To , to show me how to configure my FreeEMS ?

TIA,

Dave.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Whizzo944's Honda VFR400R NC30

Post by Fred »

You don't configure FreeEMS with EMStudio, is the short answer. You do it in source code is the long answer, if I elaborated on that. In short: we'll (you and someone who already knows how and may not be me) work together to build you a good config when the time comes. This is the project's single biggest weakness, by FAR. I'm working on it, but there are some other more trivial weaknesses that need addressing first.

Good that you only have 4 injectors. Good that you plan wasted spark. Good that you have no idle control (neither do I, it's a 60 second inconvenience for me at the moment).

Are you sure 0, 90, 360, 540 is right? Wouldn't it be 0, 90, 360, 450? Maybe that was a typo? Odd fire requires no special anything, so that's OK. Your schedule config will have angles 0, 90, 0, 90 for ignition and injection respectively. The balance will be naturally repeated.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
whizzo944
QFP80 - Contributor
Posts: 53
Joined: Sun Mar 27, 2011 9:35 am
Location: Durham, U.K.

Re: Whizzo944's Honda VFR400R NC30

Post by whizzo944 »

Yes, a brain-fade moment :) 0 - 90 - 360 - 450
I like that you configure FreeEMS by editing the source and then re-compiling, there are settings that, once set, never need to be changed,
so why have menus to change them ? My personal opinion is that you don't need to change this, but I can also see the other side of the
argument, where it might put some people off having to re-compile the edited source.
So, is the firmware written in C++ ?
Do you use a Linux box to edit and compile, and if so, what flavour of Linux ?

TIA,
Dave.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Whizzo944's Honda VFR400R NC30

Post by Fred »

Best bet for the time being is 32 bit deb or ubuntu so you can use the stock tools as I use.

From source is fine, but it also means if you get something wrong, recompile, reupload, etc. And I want to get to the point where everyone uses a prerolled binary and just sets it up. I don't want everyone hacking on firmware all the time, not if they want my support, anyway :-D

Written in C with a touch of ASM, which will go bye-bye sooner or later.

FYI, all of the config is editable in EMStudio, but it's all HEX so you can't reasonably know what any of it means. I know a few off by heart, but most of it even I don't know. The firmware has nice macros to scale from human to firmware units, so it's pretty readable. src/main/initialisers/ has almost everything you need. There isn't that much.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
whizzo944
QFP80 - Contributor
Posts: 53
Joined: Sun Mar 27, 2011 9:35 am
Location: Durham, U.K.

Re: Whizzo944's Honda VFR400R NC30

Post by whizzo944 »

Hello Fred,
What information do you need to supply a pre-configured .s19 file for my project? You mentioned that you would have
to make a small modification to make wasted spark work? At the moment my engine doesn't have a cam sensor, only a 36-1 crank
wheel. If I add a cam sensor, how does it need to be timed relative to the crank, or is it not critical? I plan to use a VR sensor
for the cam sensor. It may be easiest to set up my FreeEMS as a V8 and just ignore the extra unused injector and ignition outputs.

TIA,

Dave.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Whizzo944's Honda VFR400R NC30

Post by Fred »

whizzo944 wrote:What information do you need to supply a pre-configured .s19 file for my project?
Injector characteristics? Cylinder displacement if it's not what wikipedia says? Preferred revlimits for fuel and/or ignition. Coolant/air temp sensor types. Other stuff you know you need. See the initialisers directory for a full set of possibilities.
whizzo944 wrote:You mentioned that you would have to make a small modification to make wasted spark work?
You can view the hack online, but hopefully you'll have a feature by the time you're ready.
whizzo944 wrote:At the moment my engine doesn't have a cam sensor, only a 36-1 crank wheel. If I add a cam sensor, how does it need to be timed relative to the crank, or is it not critical? I plan to use a VR sensor for the cam sensor.
Not critical, and totally irrelevant for the time being, too. No support for it right now, so don't worry too much about this, just yet.
whizzo944 wrote:It may be easiest to set up my FreeEMS as a V8 and just ignore the extra unused injector and ignition outputs.
This will probably never be the case with FreeEMS. Currently it doesn't know, nor care, what type of engine you have, only the vital stats.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
whizzo944
QFP80 - Contributor
Posts: 53
Joined: Sun Mar 27, 2011 9:35 am
Location: Durham, U.K.

Re: Whizzo944's Honda VFR400R NC30

Post by whizzo944 »

OK, here goes with the configuration parameters for my Jag 0.7 board
Cylinder Displacement 99.75 cc 4 cylinders
Injectors 224cc/min
Firing Angles 0,90,360,450 degrees
Crank Wheel 36 - 1
Missing Tooth 70 deg BTDC of Cyl. 1
Rev Limits 15,000 rpm Ignition cut no Fuel cut
Ignition 2 outputs Wasted Spark Outputs high to charge coils
IAT figures 0 deg 16330 Ohms 22 deg 5960 Ohms 100 deg 350 Ohms
CLT figures 0 deg 7700 Ohms 22 deg 2666 Ohms 100 deg 155 Ohms

I tried to attach the transfer table files but the forum won't allow a file with a .c extension :(
Have I forgotten anything?
TIA,
Dave.
whizzo944
QFP80 - Contributor
Posts: 53
Joined: Sun Mar 27, 2011 9:35 am
Location: Durham, U.K.

Re: Whizzo944's Honda VFR400R NC30

Post by whizzo944 »

Hello,
So, I have learned to compile an .s19 file using FreeEMS toolchain using "make BENCHTEST"
What argument do I use to compile for a 36-1 configuration ?
What and where in the source files do I need to edit for my purposes ?
I see in the FixedConfig file there is a CONFIG == (Name) , where is this declared ?

Thanks in advance,

Dave.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Whizzo944's Honda VFR400R NC30

Post by Fred »

Here you go: viewtopic.php?f=54&t=1085

See the edit that I made to the first post. That should cover your needs.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
Post Reply