Diesel ECU

Free and Open Source Engine Management discussions excluding more specific things on this board.
nicholas
TO220 - Visibile
Posts: 10
Joined: Fri May 08, 2015 2:51 pm

Diesel ECU

Post by nicholas »

I plan on making a diesel ECU for piezo elements (or both types)

4D56T (mistsubishi)

Also plan ECU for petrol engines.

Not only that, but with home-made HW

I did my own ECU for wankel, long long time ago, so I have some practice.

I do HW/SW on daily basis as its my work.

Biggest problem is time (as always).

One thing I want to achive is an intelligent ECU that adjust itself and in verbose ways tell you whats wrong (if any) like a combined diagnosis tool.

just got here but I read / was member back already in the efi332 days, I did a lot of work myself in other projects with that processor.

/Nicholas
nicholas
TO220 - Visibile
Posts: 10
Joined: Fri May 08, 2015 2:51 pm

Re: Diesel ECU

Post by nicholas »

Ordered the #108 just for fun from here
http://www.sci-experiments.com/HighVoltagePulser/


Starting to draw schematic symbols for the CPU

Guess it takes 2-3 month before PCB manufacture.

4 layer PCB is asumed for now.
nicholas
TO220 - Visibile
Posts: 10
Joined: Fri May 08, 2015 2:51 pm

Re: Diesel ECU

Post by nicholas »

todays work:
read datasheets on the cpu XD / XE version, XE seems more sexy, faster and of later date, looks as if the errata list is shorter also.
in general the processor is a bit of a dissapointment, page swapping for most things, me not like.
installed virtualbox on a laptop, guestadditions.
installed ubuntu32 bits
installed the tools.


next step is to get the code from github and see if it compiles.
did some preview of code earlier.

will try to understand the big picture of the code, loops and interupts, how this has been arranged.
nicholas
TO220 - Visibile
Posts: 10
Joined: Fri May 08, 2015 2:51 pm

Re: Diesel ECU

Post by nicholas »

installed git and downloaded the vanilla.
tools downloaded since before

looks as if i managed to compile HOTEL

I dont know anything about the versions, so i will need to read up on this forum on how to proceed.
I have understood there is also a simulator somewhere to generate physical stimuli.

will need to read a lot, as to be expected for a very complex project.

found this old one:
have not checked but may be for the old 68332
http://cache.freescale.com/files/microc ... UPN15B.pdf

i guess the best cpu would be a more modern arm with aritmetic co-processor
I dont like this looking into tables, beacuse old 8bits had no chance of doing aritmetics fast enough.
or one could do a limit precision aritmetic pakage that would be perfectly ok, fast and accurate enough.

well well , some more OT rambling some may or may not be applicable
nicholas
TO220 - Visibile
Posts: 10
Joined: Fri May 08, 2015 2:51 pm

Processor

Post by nicholas »

I Probably will use the

SPC5674FF3MVY3

http://se.mouser.com/ProductDetail/Free ... JQCCJ5M%3d

http://www.freescale.com/webapp/sps/sit ... e=MPC5674F

So..... free ems software will still be usable to me but more like a template in some aspects and defenitely some surrounding tools.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Diesel ECU

Post by Fred »

You may as well start from scratch. As it stands, it will make a poor template. Those processors are heavily over rated, too. There are much better choices out there.

Amazing what you can achieve on a low end machine with the right attitude and code. For example, much of my development was done on a lowly single core original EEE PC. And still these days my fastest computer is in my pocket and cost 200 bucks.

Best of luck! :-)

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!
nicholas
TO220 - Visibile
Posts: 10
Joined: Fri May 08, 2015 2:51 pm

Re: Diesel ECU

Post by nicholas »

Fred,

Below is my personal view, others may have other views:

I agree that you can achive a lot by clever coding and full utilization of the resources, and I have also done so for z80 z80180, 68332 etc

But doing a design in 2015 it makes more sense to use more recent products.
Being able to spend less effort on having to clever tweak the code and for the price of 20 bucks more for the cpu is a good trade.

Freescale got me sold showing this:
http://cache.freescale.com/files/microc ... AN4908.pdf

I will make a modular design where I separate the CPU from the IO, just to save on PCB spins/versions.
8 cylinder spark and injection IO board.
8 cyl diesel piezo version also.

I will get some schematics up here soon (2-3 weeks), and pcb for CPU board will be the first to production.

Looking forward on a continued discussion even tough I went my own way.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Diesel ECU

Post by Fred »

Fair enough! Best of luck :-)

FYI, I moved the thread here as I assume you won't be using much or any of the FreeEMS code or designs.
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!
malcom2073
LQFP112 - Up with the play
Posts: 211
Joined: Tue May 01, 2012 4:17 pm
Location: Shrewsbury PA
Contact:

Re: Diesel ECU

Post by malcom2073 »

Be aware of the cost of the eTPU compiler though. The eTPU is a fairly amazing piece of hardware, and there have been ECU projects based on it before, but few hobbiests are willing to shell out the $5k to write code for it. They have some binary blobs for standard crank/cam configurations to run in the eTPU freely available for trying out but they're fairly limited.
nicholas
TO220 - Visibile
Posts: 10
Joined: Fri May 08, 2015 2:51 pm

Re: Diesel ECU

Post by nicholas »

Been busy with other things.

Got the CPU into the library

Will try Kicad for this, now its Mentors Design Capture.
Attachments
SPC5674F.pdf
(180.83 KiB) Downloaded 1150 times
Post Reply