Main Menu

HE351 code for me78569

Started by me78569, June 11, 2015, 09:38:57 AM

Bdubb'z

yup you're on the right track.

your switches are read every 100 ms.  I do mine at 200, but what ever works best for you. 

your lcd is 200ms, you are correct. 

I see why 0 doesn't work. increment is at the top.  It needs to increment at the end, or you can leave it, but you need to keep writing/reseting it to zero for it to work. 
   

Rx7man

the % sign is MODULUS, so it's the remainder after doing integer division.. 10%2 = 0 (10/2 = 5 with no remainder), 10%3 = 1 (10/3 = 3 with 1 as a remainder)... perhaps that is what's confusing you?
'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

Sorry, I had to look back in the code..

So
  if (timer % 200) { UpdateLCD; }

means if timer modulus 200 is not 0, update lcd... which means that if the timer fires every millisecond, the LCD will update every 200 milliseconds
'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

Bdubb'z

Oh yeah, and the 5v ref from the truck.  You should be fine because you are 'bonded' with the truck ground.  If they isolate their 5v reference from the common ground then you would/could have issues with a 'floating' ground. 

me78569

Got ya,

Thanks for the clarification on that.

When the count started at 0 vs 1 the lcd screen wouldn't show anything. like it reset to 0 then the count went to 1 before the lcd was updated.
2000 Dodge 2500 quad-cab 5.9 Cummins slt, homebuilt 47re revmax 3.5 messed with vb, Quad adr iquad, 4" tbe , pureflow 150 gph. he351ve in the works 100hp DFI inj

hakcenter

#20
Lulz ya, sorry simple typos

Keep Time runs at 1ms, look at the setup code. So % 100 = 100ms, etc. Anything non critical at computing time, can be put in there, cause it won't really add latency to the timer.

your code didn't have double reads, so i just glossed over it and didnt add them

I'll probably convert the common code to tabbing on the next update to 1.1
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.

hakcenter

I am curious to hear how it is running, if any better without the pot now ?
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 think you'll like the tabbed code once you get used to it.. though the order of the tabs ARE important if you have global variables... just to let you know.. I had to figure that one out myself
'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

Yeah 1.1.0 is tabbed just so I can make more code look smaller lol
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 was just at a buddy's wedding, turns out his step son is doing electromechanical engineering.. he's a young fellow, but I might be able to pick his brains a little on circuitry
'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

me78569

I am waiting on some parts before I can get it onto the road so I haven't run the turbo at all yet.  Just bench testing with pots to simulate boost/drive.
2000 Dodge 2500 quad-cab 5.9 Cummins slt, homebuilt 47re revmax 3.5 messed with vb, Quad adr iquad, 4" tbe , pureflow 150 gph. he351ve in the works 100hp DFI inj

hakcenter

This was the only thing I had to buy to hook up to my intercooler piping, just clocked the compressor housing until it lined up and cut some of the elbow to fit.

2 75 3" 3 Ply 45° Elbow Intake Turbo Intercooler Silicone Reducer Hose T Clamp | eBay

It isn't super rigid but it hasn't blown off either. Got t-bolts and a local shop for a couple bucks.
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.

me78569

yea I looked at doing that, but I felt that the charge tube would rub on the lower coolant hose.   

I figured for $80 it was worth the pipe.  knowing that you used a 45* reducer makes me wish I would have tried at least haha.
2000 Dodge 2500 quad-cab 5.9 Cummins slt, homebuilt 47re revmax 3.5 messed with vb, Quad adr iquad, 4" tbe , pureflow 150 gph. he351ve in the works 100hp DFI inj

hakcenter

Ya it rubs, no big deal thou. Maybe some day pick up a hx35 or hx40 compressor housing and have it machined out.

Still wasn't an issue doing an oil filter change  8)
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.

me78569

#29
I have a he300vg cover that ill sell you for cheap.  It needs to be machined out but I can't find anyone local to do it for me.   

Spec wise it is the same as a hx35 but it has the right vband style cover so it fits on the 351 without any mods.

Holset HE300VG ve VGT turbocharger Compressor Housing | eBay

Theres my ebay ad, you can have it for $75 shipped if you want it.  Just trying to get my money back out of it.
2000 Dodge 2500 quad-cab 5.9 Cummins slt, homebuilt 47re revmax 3.5 messed with vb, Quad adr iquad, 4" tbe , pureflow 150 gph. he351ve in the works 100hp DFI inj