gemellocattivo.com

Which means "Evil Twin". Lets see your projects where you change boring into fun or create the fun from scratch.
It is currently Thu Mar 28, 2024 1:30 pm

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Re: o5e firmware
PostPosted: Sat Jun 13, 2020 9:17 am 
Online

Joined: Thu Jan 01, 2015 6:47 pm
Posts: 4251
remembering back...5V is on I think so you have no fuel ouputs. The pump is completely separate code, so if both the pump and injectors are off its likely a common setting....like fuel enable, that's the only one I recall and would need to dig a bit beyond that. I'm happy to spent some time this evening.


Top
 Profile Send private message  
 
 Post subject: Re: o5e firmware
PostPosted: Sat Jun 13, 2020 10:44 am 
Offline

Joined: Fri Jun 12, 2020 11:49 am
Posts: 14
Thanks a lot for all your answers!
Yes the crank and cam inputs work with a real trigger wheel or with a simulator on an arduino as well, i have no doubts about it, same For TACHO and same for spark, was Not able to test any other outputs yet such as idle etc etc, the analog inputs also work fine!
Do you remember starting to code anything for fly by wire/drive by wire?

Thanks


Top
 Profile Send private message  
 
 Post subject: Re: o5e firmware
PostPosted: Sat Jun 13, 2020 10:59 am 
Online

Joined: Thu Jan 01, 2015 6:47 pm
Posts: 4251
Sound like I let a bug into the fuel code then, sorry. I'm sure its minor as it was all working. I also just use a blinking led to tell me I have a legitimate value at each step......its got to be something with enable as that is the only thing I believe links the fuel pump and injectors and I think is the last item and controls the output.

There is no drive by wire. I do have that working well in my enginelab project, you could take that and translate it to C pretty easily....its got start position, pedal-throttle translation table, idle control, stall saver, traction control but only that basics are tested as my engine had some issues I'm now correcting. Rusefi has dbw codes too, but fewer features I think.


Top
 Profile Send private message  
 
 Post subject: Re: o5e firmware
PostPosted: Sat Jun 13, 2020 11:16 am 
Offline

Joined: Fri Jun 12, 2020 11:49 am
Posts: 14
Whats that engine lab? Is one of those ecu's you buy and then use sinulink to create a model?
Yes i have tested with a led and also with logic analizer, fuel injector outputs and fuel pump output are always HIGH (5v)

Thanks


Top
 Profile Send private message  
 
 Post subject: Re: o5e firmware
PostPosted: Sat Jun 13, 2020 11:49 am 
Online

Joined: Thu Jan 01, 2015 6:47 pm
Posts: 4251
With the brink you can step through the code logic and find where it goes wrong.....a debugging tool is much faster but I don't know how to use that.

Enginelab.net uses a pretty simple function library to let the use create control logic without any need to know anything about low level C code stuff. I just love it.

You can download the software, which has a simulator so you can "test" everything on the pc without touching hw....pretty nice. My model (program), which run an engine, is here

http://gemellocattivo.com/forum/viewtopic.php?f=19&t=153


Top
 Profile Send private message  
 
 Post subject: Re: o5e firmware
PostPosted: Sat Jun 13, 2020 11:51 am 
Offline

Joined: Fri Jun 12, 2020 11:49 am
Posts: 14
And is that only ported for their very expensive ecu's or is it possible to use it with other MCU's/hardware


Top
 Profile Send private message  
 
 Post subject: Re: o5e firmware
PostPosted: Sat Jun 13, 2020 12:19 pm 
Online

Joined: Thu Jan 01, 2015 6:47 pm
Posts: 4251
To me, it was worth every penny, no compiling, see/log every internal calculation for bug hunting, just nice.

This it the AEM infinity series ecu....they license from enginelab and I suspect it's that arrangement that means only the highest end, infinity 7, is available directly from enginelab. Its basically a motec M150 at a fraction the price.

Way back we had talked about something a bit similar for o5e....but never acted on it. Everyrhing a library function you call. We tried to keep the code a user would mess with simple and that would have been a next step...but we never got there.

There was another option, an adaptronic 1280 but I thing they dropped it. It used an interface like labview, but didn't quite have everything I needed so ibreplaced my M150 with enginelab once I fully realized the $4k I paid for the motec was just a deposit and I'd be out at least 10k, probably 15 before it did everything I wanted....engine lab does it all for 2k so a bargin to me.

Anyway, all my latest control logic is written in enginelab, i wrote a user manual to explain everything and you're welcome to use anything that helps.


Top
 Profile Send private message  
 
 Post subject: Re: o5e firmware
PostPosted: Sat Jun 13, 2020 4:12 pm 
Offline

Joined: Fri Jun 12, 2020 11:49 am
Posts: 14
It looks like a good solution altough im looking for somehting i can use on other. MCU's with our own hardwa4e, if you know how to port all of that to c++ for a decente MCU and you want to earn a couple thousands get in touch


Top
 Profile Send private message  
 
 Post subject: Re: o5e firmware
PostPosted: Sat Jun 13, 2020 6:29 pm 
Online

Joined: Thu Jan 01, 2015 6:47 pm
Posts: 4251
I know exactly 0 C++, I know enough C to be dangerous but not enough to be very useful. We abandoned o5e because we realized there were just too many limitations with the eTPU code and no cheap way to change it.

I'm convinced that the right way to do a low cost ECU is a an ARM+FPGA but I'm not a programmer so I can't do it. For a while it looked like the rusEFI guys might as they realized their code didn't have the accuracy they thought it had....but they made some improvements and it looks like have decided its good enough and honestly, for most people it probably is, but for sure its not OEM accurate so not something I'd personally consider knowing 2k buys me something that is OEM accurate and fully configurable....but I understand wanting a good yet low cost option, which is ARM+FPGA


Top
 Profile Send private message  
 
 Post subject: Re: o5e firmware
PostPosted: Sat Jun 13, 2020 6:42 pm 
Offline

Joined: Sun Oct 11, 2015 2:07 pm
Posts: 134
I think if you can get the eTPU development done, it becomes a building block that you don't need to modify as much. NXP has some better eTPU functions for engine control than they did a few years ago, but it's still not great.

I agree that the eTPU is a pain to develop for. The good compiler costs $2800. If you jump up to ~$5k you get a simulator too which makes development possible. Having done both eTPU and FPGA work, I'd much rather work with the eTPU than an FPGA, but some of that is how awful Xilinx Vivado tools are.

You can now get a dev board for a 5777C for ~$250, and that's a dual core PowerPC e200 (@260Mhz) and three eTPUs. Not that you need anywhere near that to get an ECU with good accuracy and easy development.

I think the biggest hurdle to a good open source ECU is a good open source graphical environment for end users to develop in, or people willing to build that. It's arguably more work than the embedded code.

_________________
"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack

"Any sufficiently advanced technology is indistinguishable from magic" ~Arthur C. Clarke


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 7 guests


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

Jump to:  
Powered by phpBB® Forum Software © phpBB Group