View unanswered posts | View active topics It is currently Sun Dec 17, 2017 4:35 pm



Reply to topic  [ 9 posts ] 
Simple ECU 
Author Message
TO220 - Visibile

Joined: Tue May 13, 2008 9:31 pm
Posts: 4
Hi ,
I would like to accompany you in the project.
But I am not accustomed to programming these super-processors! Neither ever had a project of this scale!
What we propose in this topic is to develop a code with the minimum for the engine work ...

I think a very help those who want to start that is my case and certainly others will be added..

I think the minimum requirements for the engine work will be:


inputs needed in ECU:

TPS
IAT
ECT
CRANK POSITION
CAM POSITION
MAP

output necessary in ECU:

Spark
Injector
Fan
Fuel pump


I think that we could study the code for a 4-cylinder engine


Even now I apologise for my English ...
That is not the best ...


Thu May 15, 2008 12:53 am
Profile
LQFP112 - Up with the play

Joined: Thu May 01, 2008 6:30 pm
Posts: 135
Location: Ann Arbor, MI
You missed O2 sensor...

Also i think the spark & fuel should be sequential at the minimum.....


Thu May 15, 2008 3:46 am
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14913
Location: Home sweet home!
Hi Roberto :-)

With regards "English" just do your best, and so will we do our best to understand you :-)

With regards the current code for the XDP512, your aim is much the same as mine. I want the code to be properly structured from the start though so that no/minimal rework is necessary down the line to make it right.

Currently there is code that could be adapted and improved to read cam and crank signals. It already reads the ADC inputs in a nice way.

What is required for this to function is :

Make decoder robust (I know what to do)
Add glue math/structure (This will take some work, but should not be hard)
Build serial interface (EMS and PC, started the basics last night)
Flash burning code (haven't looked at this yet)
Finish ignition code or for a 4 cyl, use two channels of fuel logic for the same purpose. (I have a few ideas about what is wrong with it now)

Additionally, for it to run something other than a Toyota/Mazda the decoder will need to be rewritten/modified to suit.

So, just time and work really. If you want to take one of the early empty releases and start from scratch in your own way, be my guest :-) Useful parts of your code can be merged back in later if required :-)

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!


Thu May 15, 2008 7:13 am
Profile WWW
TO92 - Vaguely active

Joined: Tue Jun 10, 2008 5:37 pm
Posts: 1
Forgive me. I'm playing catch-up on a lot of things.

First off, as a fan of anything open-source I commend you for a very worth-while and admirable project.

I have not dealt with ecu programming or megasquirt but I see a very real need for hobbyists and inventors to not be constricted by closed-source and proprietary schemes which only hold back progress. My specific interest in programmable ecu's is not massive horsepower gains but massive efficiency gains. I'd like to see the internal combustion engine live a long life for years to come.

With that in mind, I had a question. What is the current status of DIYEFI? What is it's learning curve like?

Is anyone familiar with the Arduino/Freeduino project? It is an opensource hardware/software solution, has wide support already and can be used in many applications. I have no idea whether or not it can be applied to vehicles as a programmable ECU. It is however, completely hackable, meaning if it cannot currently be applied as-is, it might be later.


Tue Jun 10, 2008 6:02 pm
Profile
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14913
Location: Home sweet home!
newgas wrote:
First off, as a fan of anything open-source I commend you for a very worth-while and admirable project.
Thanks :-) There are quote a few people that have made it what it is so far, and more will come to be important as time goes by :-)
Quote:
I have not dealt with ecu programming or megasquirt but I see a very real need for hobbyists and inventors to not be constricted by closed-source and proprietary schemes which only hold back progress.
It's good to see someone acknowledge the issues present in MS land.
Quote:
My specific interest in programmable ecu's is not massive horsepower gains but massive efficiency gains. I'd like to see the internal combustion engine live a long life for years to come.
Massive HP and Massive efficiency both require the best accuracy possible, so our goals are actually almost identical :-)
Quote:
With that in mind, I had a question. What is the current status of DIYEFI? What is it's learning curve like?
Status is pre-alpha/prototype code with only conceptual stuff around hardware at this stage. The code is around the 5000 line mark and heavily commented so that most anyone can see what it is doing. A number of aspects of it need to change quite a bit at the moment, and I'll get to them all sooner or later. It's pretty far from running an engine, but the foundations are growing strongly and in the right direction.
Quote:
Is anyone familiar with the Arduino/Freeduino project?
I have been pointed at that before, or found it searching. It is a bit under powered for what we are trying to achieve here. Some of the hardware versions are also not totally suitable. With 5000 lines of code and many many hours reading and learning about the HCS12 core I'd be very reluctant to change tack so drastically without very good performance reasons. In terms of those boards/chips the performance is not as good as what we have.

I hope that answers your questions, welcome along :-)

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!


Tue Jun 10, 2008 7:47 pm
Profile WWW
TO220 - Visibile

Joined: Tue May 13, 2008 9:31 pm
Posts: 4
In the continuation of this topic.

I am thinking in using the new pic of the microchip (pic 32).

This ecu will be developed for a vehicle for the project Formula Student.

It wanted to begin to organize code but I am with many doubts.

Which do I start to quote:

To opt for lookup tables or to put the ecu to do calculations?

Regarding the sensor of the cam and of the crank is the reception of these signs done by interruption?

From now I thank


Sat Jun 14, 2008 12:19 pm
Profile
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14913
Location: Home sweet home!
robertofonte wrote:
To opt for lookup tables or to put the ecu to do calculations?
This is up to you, markistuff has done it with a math model. We will be doing it with lookups of some sort or other.
robertofonte wrote:
Regarding the sensor of the cam and of the crank is the reception of these signs done by interruption?
I don't know what your PIC has, but on the HCS12 this is done with the ECT module and Input Capture followed by an interrupt to handle the value recorded at the time.

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!


Sat Jun 14, 2008 12:35 pm
Profile WWW
LQFP144 - On Top Of The Game
User avatar

Joined: Tue Jun 24, 2008 5:31 pm
Posts: 468
robertofonte wrote:
In the continuation of this topic.

I am thinking in using the new pic of the microchip (pic 32).

This ecu will be developed for a vehicle for the project Formula Student.

It wanted to begin to organize code but I am with many doubts.

Which do I start to quote:

To opt for lookup tables or to put the ecu to do calculations?

Regarding the sensor of the cam and of the crank is the reception of these signs done by interruption?

From now I thank


Hi Roberto! I've been missing for a long time here.
Check out the DSPIC30F4011's datasheet. I think it is ideal for a EMS. It's a little hard to burn if you don't have the right hardware, but it worths the effort. I have 2 of these dspics here, i'm waiting for the usb programmer. BTW, it cost something around $5, plus shipment.

You'll have to do both lookup and calculation at some point of the project, I started with lookup.
And yes, crank and cam sensor signal must interrupt the micro. In those signlas relies most of the precision of the system.
Hope you find this useful.

Marcos

_________________
Marcos


Tue Aug 19, 2008 6:14 pm
Profile
LQFP112 - Up with the play
User avatar

Joined: Fri Jul 25, 2008 8:04 pm
Posts: 111
Location: Perth, WA, Australia
newgas wrote:
Forgive me. I'm playing catch-up on a lot of things.

First off, as a fan of anything open-source I commend you for a very worth-while and admirable project.

I have not dealt with ecu programming or megasquirt but I see a very real need for hobbyists and inventors to not be constricted by closed-source and proprietary schemes which only hold back progress. My specific interest in programmable ecu's is not massive horsepower gains but massive efficiency gains. I'd like to see the internal combustion engine live a long life for years to come.

With that in mind, I had a question. What is the current status of DIYEFI? What is it's learning curve like?

Is anyone familiar with the Arduino/Freeduino project? It is an opensource hardware/software solution, has wide support already and can be used in many applications. I have no idea whether or not it can be applied to vehicles as a programmable ECU. It is however, completely hackable, meaning if it cannot currently be applied as-is, it might be later.


I'm a member of the Arduino/Freeduino community, infact the duinostamp was my design. Its no where near powerful enough to run an engine. It could be used to control a gearbox though (or so I hope, its one of my projects and so far its doing ok).


Wed Aug 20, 2008 6:22 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF. ColorizeIt.