Main Menu

My life, My coding

Started by Rx7man, May 27, 2015, 09:09:36 AM

Rx7man

I usually set mine somewhere around 15-16*... I just add a bit to the stock 'pin timing', start it up and see how it likes it, rinse, repeat until I find what I'm looking for.. there's a distinct change in the smell of the exhaust as you get it advanced a few degrees, it goes from being a eye-watering acid and thick black to a little more grayish and less irritating.

At least you got the air in the system out
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

Rx7man

Mouser just contacted me saying  a part number and pricing has changed.. told the to just ship the damn thing.

In other news, I'm working on a Husky 61 chainsaw, MAJOR machine work on it, I'm putting a big bore and making my own stroker crank.. it's going from 48mm x 36mm to 52mm x38mm for a 77 cc displacement.. It'll take some fiddling, but it should be a wicked saw when it's done
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

Rx7man

OK, my order has shipped... I should have it next week... Yippee!
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

Rx7man

buddy I got the stuff shipped to was out of town for a couple weeks.. I should have my stuff monday.. yeah, I been waiting a while!

Been doing lots of farm work, and I finished my 'manhattan project' chainsaw, runs good.. ready to cut some firewood now.. we'll see if it lasts!
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

hakcenter

TS2009 Deḇarim 8:2
"And you shall remember that יהוה your Elohim led you all the way these forty years in the wilderness, to humble you, prove you, to know what is in your heart, whether you guard His commands or not.

Rx7man

Well.. haven't really done much more work on the Dodge.. I'll need to do brake rotors (one has a crack in it suddenly).

But I did get my chainsaw bored, stroked, ported and piped!!  the thing is crazy fast
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

Rx7man

'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

Rx7man

Well, I'm getting back into code mode... A buddy of mine has a TPS sensor he doesn't need, so I'll take that off his hands...

I've got my stuff from Mouser, I think I have most everything except etching fluid for the raw board I have... I have lots of trim pots, caps, and resistors, zener diodes and power transistors.

I got the comms to the turbo working, it responds well.. in another thread I mentioned my turbo firmware may be a little different from other models... as well as the wiring colors.. it doesn't timeout until 75ms have passed with no command, and it has a safety that slows it down if it moves too far in a certain amount of time. 

I'm also working on reading the CAN messages, it seems that you can at least read the actual vane position (bytes 6 and 7), and I'm going to work on seeing if I can read any temps or pressures from it.. The more data I can get from it the better.. can implement some other controls :)
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

Rx7man

Wow.. the Uno boards sure don't have much memory... as far as I can tell, for what I need the processing speed is plenty, but it sure doesn't take much to run out of memory.

Currently, it takes 1100microseconds to read the values from the analog inputs, and about the same to calculate (though that will increase as it gets more complex)... I seem to have plenty of time to work with, but the Uno is definitely not capable of controlling the AFC.. nevermind it doesn't have the pinouts needed
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

Rx7man

Well, I think I've got the basics done for this

Reading (including smoothing) the inputs takes 1300 microseconds
Calculating the vane position take 900 microseconds.. I'm surprised it's pretty quick!

I rewrote most everything from the ground up, the Uno is rather less capable than the Mega.. I'm pushing the limits on memory, but it fits!

I currently have a spare analog input, not sure what I'll use it for, but I'm mounting 2 of them perhaps with some LED's on my dash where my cupholder was (it broke the mounts).  I even found the knobs for them on an old stereo!

I've even got warmup mode and a bunch of other little goodies in there
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

Rx7man

Well, my piece of exhaust pipe and a coupler come in tomorrow (I'll get them thursday probably).. I think I'm close to ready to install this thing.. just gotta mount it in a box and find a place to mount it.. drill a hole in the firewall too.  I got a TPS sensor from a friend, and am going to look for the wiring harness for it now... that'll complete the parts list I hope
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

Rx7man

Update :)

I made a sparkfun protoboard into a "mega" adapter, so I can use the arduino Mega now.. lots more memory for me.. YAY!

Of course that means I have to make use of it.. There's now a bunch more modes
Idle mode, where it'll open up if the idle falls too much below the setpoint
Warmup mode, where it'll attempt to keep XX PSI of boost as long as the idle doesn't drop too much
Startup mode, where it'll be fully open while cranking, then creep it's way closed to normal mode
Jake mode, where it'll keep a certain amount of exhaust pressure
Turbine overspeed mode comes on top of all of those since you never want to overspeed, and that works in 2 ways, the first method as you exceedd the "yellow line" it works off acceleration only, and gets more aggressive the closer it gets to "orange line"... and continues on from "orange line" to redline, except in addition to that it will force the VGT open more the closer it gets based on actual RPM as well.. this should make it come up in speed at the top end smoothly, while not affecting normal driving or being too noticeable.

I am going to hack into my cruise control system as well to give me a fast idle I can use whether I'm driving or not... again very nice for warming up in cold weather, jumpstarting Fords, etc

Currently at 800 lines of code, but that's with generous white lines and moderate commenting.
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

Rx7man

Update :)

Turbo is mounted on the engine now, now comes the plumbing... and then the wiring.  I will probably be driveable by tomorrow night, at least in 'manual mode' where it doesn't take any sensor inputs other than shaft speed. 
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles

hakcenter

Pretty sure this is the elbow I used, I got mine for like 6$.. preeeetty sure its 2.5 on the compressor and definitely 3" on the intercooler piping.

2 1 2" 2 5" to 3" 64mm 76mm Silicone 45 Degree Elbow Reducer Pipe Hose Black | eBay

I had to cut the length down to make it fit thou.
TS2009 Deḇarim 8:2
"And you shall remember that יהוה your Elohim led you all the way these forty years in the wilderness, to humble you, prove you, to know what is in your heart, whether you guard His commands or not.

Rx7man

I managed (at least temporarily) to use the 3-3" boot with some heavy clamping.. it didn't kink up so it might work.  I extended the charge pipe by about 6 1/2" with one from a parts truck, it had just the right bends in it. 

I think the turbo outlet is 2 3/4, I'd never have been able to fit it if it was 2 1/2.

Do you have any way of reading the engine RPM on your system?
The hall effect sensor has an 8V supply to it, so perhaps it's outputting a 5v square wave?  Another option is to tap into the tach signal, but I don't know if that's a 12V square wave, 0-12V analog, or 0-5V analog... I might make an arduino oscilloscope to figure it all out... if I tap into the hall sensor side of it I have the benefit of exact readings, while if I use an tach signal I have less math to do (if it's analog).
'94 dually,  67/67 HE351VE, NV5600, ~600hp
'93 ECLB 47RH, new toy truck, H pump project, 1000hp goal, 300K miles
93 XCLB auto, bone stock, 350K miles
93 XCLB 5spd, bone stock, 100K miles