Lambda fuel injection controller

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
jjw
Posts: 78
Joined: Sat Aug 25, 2012 5:35 am
Has thanked: 71 times
Been thanked: 9 times
Contact:

Lambda fuel injection controller

Post by jjw »

Hi,
Just wondering has anybody done program in Flowcode for wideband fuel injection controller, (Bosch LSU Lambda sensor)?

Regards,
jjw

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Re: Lambda fuel injection controller

Post by Steve001 »

not done a flowcode one, but a friend has built a ECU take a look here .

http://www.megasquirt.info/

steve
Success always occurs in private and failure in full view.

jjw
Posts: 78
Joined: Sat Aug 25, 2012 5:35 am
Has thanked: 71 times
Been thanked: 9 times
Contact:

Re: Lambda fuel injection controller

Post by jjw »

Hi Martin,
I’ve an old project there I should use 7-segment display instead of LCD. I can’t get it work can you help me.

Wbr,
jjw

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Lambda fuel injection controller

Post by medelec35 »

Hi jjw,
I have had a look at the flowchart you sent via PM.
As using LCD, 3 x 7seg and ADC:
For your project to work you will require 16 outputs (DP not connected) and 1 input (must be ADC)
As you're using 16F1825, it only has 11 outputs/inputs and 1 input only which is not ADC, Project will not work.
The common pins of LED display must have their own separate pins.
Its the A - G & DP which all can be connected together.

There are various other issues with flowchart that will require sorting out.
Best to sort out a more suitable target device first, then we can take it from there.

@Steve that does look interesting.
How is the ECU working for your mate?

Martin
Martin

jjw
Posts: 78
Joined: Sat Aug 25, 2012 5:35 am
Has thanked: 71 times
Been thanked: 9 times
Contact:

Re: Lambda fuel injection controller

Post by jjw »

Hi Martin,
OK target device would be 18f252 it has enough pins.... ECU is working fine Lambda display still missing...

Wbr,
jjw

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Lambda fuel injection controller

Post by medelec35 »

Yes it has enough pins.
However you configured 16F1825 to use an internal oscillator.
Unfortunately 18F252 does not have one.
Are you going to change device, or use crystal or resonator instead?

Martin
Martin

jjw
Posts: 78
Joined: Sat Aug 25, 2012 5:35 am
Has thanked: 71 times
Been thanked: 9 times
Contact:

Re: Lambda fuel injection controller

Post by jjw »

I'm going to have crystal in this new situation. :D

Wbr,
jjw

Docara
Posts: 315
Joined: Sun Jun 23, 2013 1:29 pm
Has thanked: 28 times
Been thanked: 61 times
Contact:

Re: Lambda fuel injection controller

Post by Docara »

Steve001 wrote:not done a flowcode one, but a friend has built a ECU take a look here .

http://www.megasquirt.info/

steve
Wow Megasquirt is still going - great piece of kit

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Lambda fuel injection controller

Post by medelec35 »

So how do you want the 3 x 7seg display to work.
For example if you have 22.32V showing on the LCD, what has the LED need to display?
Martin

jjw
Posts: 78
Joined: Sat Aug 25, 2012 5:35 am
Has thanked: 71 times
Been thanked: 9 times
Contact:

Re: Lambda fuel injection controller

Post by jjw »

There is no need to show more than one digit after dp 22.3 is enough in our purpose.

Wbr,
jjw

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Lambda fuel injection controller

Post by medelec35 »

jjw wrote:There is no need to show more than one digit after dp 22.3 is enough in our purpose.
You had the d.p disconnected(you also had seg g disconnected:
7seg connections1.png
(24.33 KiB) Downloaded 3478 times
I will connect it as it only uses one more pin (i already connected g when mentioned how many pins required).

Martin
Martin

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Lambda fuel injection controller

Post by medelec35 »

Hi JJW,
I have sent you an updated flowchart via pm.
jjw wrote: Noticed at the very beginning that I couldn’t change the pin orientation in FC as it was in scheme. Is it even possible to have different ports for 7-segment display?
You can only have a whole port for the segments with Flowcode V5.
With V7 you can set each segment with any pin:
V7 Pin settings.png
(80 KiB) Downloaded 3456 times
Martin
Martin

jjw
Posts: 78
Joined: Sat Aug 25, 2012 5:35 am
Has thanked: 71 times
Been thanked: 9 times
Contact:

Re: Lambda fuel injection controller

Post by jjw »

Hi Martin,
Thanks for the updated Flowcode it works as fine as expected.


Wbr,
Jukka

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Lambda fuel injection controller

Post by medelec35 »

Hi Jukka,
Glad its working for you.

Thanks for the update.

Martin
Martin

Post Reply