Results 1 to 15 of 825

Thread: DIY LTCC or similar system for LT1s

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Fuel Injected! spfautsch's Avatar
    Join Date
    Apr 2015
    Location
    Montgomery City, MO
    Age
    53
    Posts
    883
    Quote Originally Posted by dzidaV8 View Post
    First of all, consider loosing Arduino IDE in favor of raw C code in Atmel Studio. I know that INO is easier at first,
    In the interest of keeping the do-it-yourself ethos, I have no interest in using the Atmel toolchain.

    Quote Originally Posted by dzidaV8 View Post
    but has many flaws that make it virtually useless for any real-time, professional use.
    My opinion may be under-developed here but I think that's an unfairly generalizing statement. Sure, there's a wealth of poorly written example code out there that results in some very sloppy projects, but that doesn't mean all Arduino projects are poorly executed. I'm certainly not innocent in this regard - I have some real stinkers in my code library. I don't feel this one is quite so flawed.

    Quote Originally Posted by dzidaV8 View Post
    Arduino libraries are great for testing, as they are very universal, but as anything that is universal, they are slow and too complicated for this use.
    That's why as I stated I'm using them very sparsely.

    Quote Originally Posted by dzidaV8 View Post
    Especially USART functions, which are blocking, and port control functions which are slow.
    The current serial.print function as of 1.0 and up is non-blocking. And unless something slipped past me, I'm not using any of the Arduino port control functions except in non-time critical areas such as setup(). And those I'm really only using for illustrative purposes.

    Quote Originally Posted by dzidaV8 View Post
    I can help with porting the code to C and creating a project in Atmel Studio. This would have other benefits than smaller and more optimal code - you could use smaller ATtiny microprocessor.
    It's not already C?

    I'm not interested in debating which IDE or compiler is used. I'm not a huge fan of either IDE, but the Arduino platform exposes this to much broader audience. My personal opinion is as long as it remains a DIY project I believe it should stay with Arduino / gnu make / avrgcc toolchain. But you're welcome to create your own fork for a different toolchain.

    Quote Originally Posted by dzidaV8 View Post
    The Interrupt service routines can be optimized as well, and that's where the timing is critical at high RPM.

    Second, all the "populate" functions are unnecessary - all that work should be done by precompiler resulting with ready table in code, without unnecessary initialization routines. Also, such tables should be in program memory, to save RAM.
    Fantastic suggestions - I would love to know how to do that with the tables. As I've stated previously in this thread I have other projects I want to work on, so discussion and debate isn't nearly as helpful as examples.

    Quote Originally Posted by dzidaV8 View Post
    Third, I'm considered with the table lookup method. The switch-case lookup is far from optimal,
    That's why I put pretty much those exact words in the comment header of that function. Examples are welcome.

    Quote Originally Posted by dzidaV8 View Post
    Right now, the integer conversion on voltage causes looked up dwell to be the same for 13V and 13.99V.
    The integer conversion / rounding happens in the main loop. So 13.49 volts and lower should round to 13 and 13.50 and higher to 14.

    Quote Originally Posted by dzidaV8 View Post
    Optimally there should be a interpolation function for lookup. Unfortunately AVRs don't have TBLU instructions, which are so great on Motorolas, but that's not a big problem.
    Some type of smoothing is one of the things on my list to consider. I really don't know if the benefit is worth bogging down the mcu with the extra math. But I'm open to any ideas you have.

    Quote Originally Posted by dzidaV8 View Post
    Anyway, I don't want to criticise you in any way, quite the opposite in fact, as this project is growing very fast and looks very promising! If I'll find some time in the evening, I will upload some modifications to the code for you to consider.
    Thanks, no offense taken. I'm a self-taught jack of all trades but master of none. This is by far my most ambitious mcu project, and I had to learn quite a lot in the process. I'm in no way ashamed of this one.

    I look forward to seeing what you come up with.

Similar Threads

  1. Which TBI system is better?
    By KeyAir in forum GM EFI Systems
    Replies: 41
    Last Post: 05-13-2019, 09:39 PM
  2. Hard start 93 LT1 with LTCC Ignition Mod
    By beestoys in forum GM EFI Systems
    Replies: 0
    Last Post: 05-18-2015, 08:58 AM
  3. ABS system?
    By K1500ss4x4 in forum Gear Heads
    Replies: 3
    Last Post: 02-06-2014, 06:21 AM
  4. Vortec EGR System?
    By EagleMark in forum OBDII Tuning
    Replies: 40
    Last Post: 06-02-2013, 10:07 PM
  5. Quicker way to do Spark Hook test on the street for LT1s and others?
    By sherlock9c1 in forum Fuel Injection Writeups Articles and How to New and Old
    Replies: 15
    Last Post: 03-03-2013, 01:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •