element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Ben Heck Featured Content
  • Challenges & Projects
  • element14 presents
  • element14's The Ben Heck Show
  • Ben Heck Featured Content
  • More
  • Cancel
Ben Heck Featured Content
Forum Engine Management
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Ben Heck Featured Content to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 63 replies
  • Subscribers 46 subscribers
  • Views 4102 views
  • Users 0 members are here
Related

Engine Management

jack.chaney56
jack.chaney56 over 9 years ago

Hi Ben,

I am a programmer with a very small amount of skill with circuits, and am looking to create a platform for an engine management system, using an Arduino Mega 2560. I had done a bit of the coding, when I ran into some timing issues with the built in Arduino manager, so I switched over and started using AVR Studio and a programmer to go directly to the chip itself.  The code looks like it should work ok, but now I need some additional circuits to handle the energy levels of coils and injectors (Something like IGBTs). Sensors are being run through simple dividers (no protection yet), and cam and crank inputs are through a simple comparitor

 

Let me know what you think,

Jack

  • Sign in to reply
  • Cancel

Top Replies

  • jack.chaney56
    jack.chaney56 over 7 years ago +2
    Back again... After a bit of time away seeking enlightenment (and a steady paycheck), I am ready to get back to work on my project. I have continued to play around with the code and a number of components…
  • jack.chaney56
    jack.chaney56 over 7 years ago +2
    I want to start this thing right, so the shopping list for people that want to play along at home: Raspberry Pi - version is not significant if you don't mind a slow response when using Eclipse, but 3B…
  • jack.chaney56
    jack.chaney56 over 7 years ago +2
    Start off with two things. First, I forgot (neglected) to provide instruction on how to get the compiled code onto the Nano. Fault of familiarity; having done the process so many times, I had shifted to…
Parents
  • jack.chaney56
    jack.chaney56 over 7 years ago

    Back again...

    After a bit of time away seeking enlightenment (and a steady paycheck), I am ready to get back to work on my project. I have continued to play around with the code and a number of components. First, I wanted to have a more interesting development workstation, so I thought it would be fun to use a Raspberry Pi. After installing the latest version of Raspbian and getting all the updates, I loaded the AVR tool set, then Eclipse and the C/C++ components. Then adding the AVR plugin and whoopee I had a workstation.

     

    I also really wanted to use the Nano for a platform but had problems with adding controls for 8 cylinder coil on plug and still be able to have outputs for solenoids and idiot lights (shift, MIL, etc). Then I thought of using 4 of the port lines to control a 74LS138 and using a bunch of 74LS75s and some inverters, route the other 4 port lines available to create a multiplexed switch network. Got it to light LEDs and the scope signals look right too.  The last part of the puzzle for the Nano was since the 328p is limited for timers, I got inventive for some of the timing pieces (fueling is less time critical).

     

    So I created a dual path, with the majority of software files being shared between both platforms, only when hardware forces there to be a difference, the same code runs on both Mega2560 and Nano.  I will attempt to provide all the how-to for the development workstation, the Nano setup and programming, and source code with design theory.

     

    Since much stuff has been refined over the course of time, I will probably be redoing a bunch of stuff and there will probably be a bunch of  repeat.  For anyone interested, it is possible to get a big dose of what is to follow by looking over the early work at Engine Management project

     

    I am now in the throws of developing the UI to provide the calibration in a more comfortable way. Again, trying to stay with using a Raspberry Pi as the UI platform too.

     

    Jack

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • rsc
    rsc over 7 years ago in reply to jack.chaney56

    Hi Jack,

    Interesting project for a single software developer. When I worked at Chrysler in the engine controls group they needed over 30 people to code, calibrate and develop hardware for the SBEC controller.

    Good luck,

    Scott

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • jack.chaney56
    jack.chaney56 over 7 years ago in reply to rsc

    Hi Scott,

     

    Were you on the second floor over the Dyno Cells?

     

    Jack

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rsc
    rsc over 7 years ago in reply to jack.chaney56

    Hi Jack,

    I started downtown, then moved to Auburn Hills 3rd floor engine and chassis controls for large car platform.  The coolest toy they had was the engine simulator cube.

    Scott

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jack.chaney56
    jack.chaney56 over 7 years ago in reply to rsc

    Nice, so you knew Fred, Ron, Dale, and Bob, or were you after that (probably yes if you came from HP).

     

    Jack

    ps. Trying to keep names and details obscure to protect the innocent.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rsc
    rsc over 7 years ago in reply to jack.chaney56

    I'm trying to think of who Fred is...…...I worked for Kissel, then Cwiek.

    I remember watching them build the first Dodge Viper in the plastics shop on a dune buggy frame in HP.

    Scott

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jack.chaney56
    jack.chaney56 over 7 years ago in reply to rsc

    Hi Scott,

    Came over from AMC/Jeep (Plymouth Rd). Fred was Meisterfeld. and Dale Koch. Was part of Neon Launch (dare to be different). Then went over to IT to work on DRBIII.

     

    Jack

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jack.chaney56
    jack.chaney56 over 7 years ago in reply to rsc

    Hi again,

     

    Back to your first statement, about volume of work for a single programmer.  I guess it might be... but I am an old, retired, programmer. This is a good exercise to see if it really can be done.

     

    My problem is, I do need help with the hardware stuff (circuit design and layout). My stuff is all using breadboard, LEDs, and some Rube Goldberg mechanical devices.  I think I have the software working, but would really appreciate some partnership assistance from time to time

     

    Jack

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rsc
    rsc over 7 years ago in reply to jack.chaney56

    Hardware is usually vehicle specific, what is your target platform?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • jack.chaney56
    jack.chaney56 over 7 years ago in reply to rsc

    Funny you should say that. The truth is the hardware is pretty much portable. The difference for system timing comes down to the cam and crank wheels and the signals they produce. I have software that does the cam decoding for simple pulse or half moon, Mopar 4/6/or 8 cylinder, and GM VVT. The crank signal is based on the call out for how many teeth, and if there are filled or missing teeth. The other parameters are for injector size and the variety of sensors. I had similar code operating a GM LS, a MOPAR SRT, and a Ford Cobra (with multi-strike CD), The input signals might need some conditioning for hall effect, I will need to see about that. My focus is primarily on the coding side of the process.

     

    The primary target for the controller project is actually Porsche and VW 4 cyl, and Corvair 6 cyl. But I have built the code and my breadboard to run up to 8 cylinder COP, with direct sequential injection.

     

    Jack

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • jack.chaney56
    jack.chaney56 over 7 years ago in reply to rsc

    Funny you should say that. The truth is the hardware is pretty much portable. The difference for system timing comes down to the cam and crank wheels and the signals they produce. I have software that does the cam decoding for simple pulse or half moon, Mopar 4/6/or 8 cylinder, and GM VVT. The crank signal is based on the call out for how many teeth, and if there are filled or missing teeth. The other parameters are for injector size and the variety of sensors. I had similar code operating a GM LS, a MOPAR SRT, and a Ford Cobra (with multi-strike CD), The input signals might need some conditioning for hall effect, I will need to see about that. My focus is primarily on the coding side of the process.

     

    The primary target for the controller project is actually Porsche and VW 4 cyl, and Corvair 6 cyl. But I have built the code and my breadboard to run up to 8 cylinder COP, with direct sequential injection.

     

    Jack

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube