Custom diesel PCM? QBasic? Microcontrollers? Insane Idea?
I think that using these less advanced chips is a "downgrade" in terms of raw processing power, but the learning curve and ease of use would make it worth while.
Yes, I'm sure there will be lots of mundane programming to make it work, but it should be a lot easier to understand!
Writing simple code to control fueling IS relatively straightforward, and rather simple in terms of what you're actually doing.
The complexity comes from handling error conditions. What happens when you miss a CMP signal only ONCE? The program craps out (and your engine dies), without error-handling.
The injector controller will count between signals and identify missing signal, bad injector etc...
What happens when your alternator dies, (and you don't know it), and 30 minutes after failure, all your voltage needs go haywire because you don't have a steady 12-volt reference signal? The list of possible failure modes (and thus the code required to deal with them) is nearly endless.
The PCM and equipment has will have a power supply, it will run fine until theres no power, then just shut off.
Writing code for a simple speed-density fuel injection controller is what the Mega-Squirt is all about; but when you try to work on an engine with more than four sensor inputs (in this case, TPS, MAP, temp, and trigger), the complexity goes haywire.
Theres lots of sensors, but lots are backups or doubles. Using these cool new chips, reading sensors should be a very simple process. And with QBASIC coding, using their values to make decisions will be fairly easy.
The reason why there aren't several hundred PCM alternatives out on the market is because truly mission-critical fuel injection programming is NOT easy. You're talking several THOUSAND lines of code.
(Factory engineers aren't stupid; they just have to answer the questions given with answers that almost by necessity don't match YOUR answers.)
-blaine
I bet the truck could be running with 5 kb of code.
After that, provisions could be made to log data, create error handling, etc.
Serial port to CAN adapter.
I wonder just what these commands will look like over the CAN network while the truck is running .
I suppose if the CAN commands could be learned, there would be no need to make a IDM module.
Anyone have any clue where to start leaning about that? Searches going nowhere.
Parallax Memory Stick Datalogger - RobotShop
Just monitor key values on the homemade PCM, like EGT and EOT/ECT and boost, and log the rest to USB stick !
Monitor all the sensors, and every second, write them all to the file with a time / date stamp. If you have any issues, just toss the USB stick in your pc and take a look.
This would be truly the best, because it keeps the truck simple, but allows you to look at detailed data if you need to.
I meant asides from the IDM.
The IDM will read the timing sensors and count cycles to time till injection event. It will also send info to the pcm about gaps between injections to calculate a bad injector so such problem.
All the PCM will need to do is tell the IDM how much advance, and how much fuel.
Thats the good thing about QBASIC; it doesn't take a lot of code to get a lot done.
millions of lines of seemingly random (and sometimes non-printing) characters if viewed in Hyperterminal.
You will also not see any of the processing done by the CAN modules themselves... only the messages sent out on the CAN-Bus. For instance, the throttle position request doesn't have to be sent constantly... only when there is a change. Once the modules that use the throttle position request receive the message, they can run their process with that data until a new request comes along...
after the throttle position request is received by the actuators, the throttle position is actually set, and the "actual throttle position" is sent to the Bus (the request and the settling position won't necessarily match, but they will stay within an acceptable range of difference). Some modules that use throttle position will ignore the actual position and only pay attention to the request (or vice-versa), some will use both.
As far as deciphering the CAN-Bus messages, unless you can find access to the SAE standards that this particular application uses, you'll have to shell out the several thousand dollars required to get your own copy of the standards... which are just a few thousand pages of text explaining that particular protocol and the heirarchy of the messages available to be sent...
Ford Trucks for Ford Truck Enthusiasts
You will also not see any of the processing done by the CAN modules themselves... only the messages sent out on the CAN-Bus. For instance, the throttle position request doesn't have to be sent constantly... only when there is a change. Once the modules that use the throttle position request receive the message, they can run their process with that data until a new request comes along...
after the throttle position request is received by the actuators, the throttle position is actually set, and the "actual throttle position" is sent to the Bus (the request and the settling position won't necessarily match, but they will stay within an acceptable range of difference). Some modules that use throttle position will ignore the actual position and only pay attention to the request (or vice-versa), some will use both.
As far as deciphering the CAN-Bus messages, unless you can find access to the SAE standards that this particular application uses, you'll have to shell out the several thousand dollars required to get your own copy of the standards... which are just a few thousand pages of text explaining that particular protocol and the heirarchy of the messages available to be sent...
I thought the CAN bus was used for IDM, PCM, TCM and ABS , the throttle and sensors look fairly simple.
I thoought CAN bus was for engine-tranny-cluster communication only
This apparently all changed in 2008 with the 6.4L.










