HE351 code for me78569

  • 384 Replies
  • 21836 Views
*

Offline Bdubb'z

  • Member
  • **
  • 34
    • 2003 CrewCab Cummins
Re: HE351 code for me78569
« Reply #15 on: June 12, 2015, 12:11:55 PM »
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. 
   

*

Offline Rx7man

  • Crazy guy
  • Hero Member
  • *****
  • 908
  • Jack of all trades
    • '94 Dodge dually
Re: HE351 code for me78569
« Reply #16 on: June 12, 2015, 12:40:56 PM »
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 dodge, Colt Cam, head worked, NV5600, 3.55's, SB clutch, Ford manual hubs w. hawk brakes, custom flatdeck, custom aluminum bumper, cab off restoration, totally new engine, Mahle pistons @19:1..HE351VE with 67mm turbine and 67x95mm compressor
440hp/1000 ft lb @ 2400 RPM

*

Offline Rx7man

  • Crazy guy
  • Hero Member
  • *****
  • 908
  • Jack of all trades
    • '94 Dodge dually
Re: HE351 code for me78569
« Reply #17 on: June 12, 2015, 12:44:42 PM »
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 dodge, Colt Cam, head worked, NV5600, 3.55's, SB clutch, Ford manual hubs w. hawk brakes, custom flatdeck, custom aluminum bumper, cab off restoration, totally new engine, Mahle pistons @19:1..HE351VE with 67mm turbine and 67x95mm compressor
440hp/1000 ft lb @ 2400 RPM

*

Offline Bdubb'z

  • Member
  • **
  • 34
    • 2003 CrewCab Cummins
Re: HE351 code for me78569
« Reply #18 on: June 12, 2015, 12:56:46 PM »
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. 

*

Offline me78569

  • Sr. Member
  • ****
  • 268
Re: HE351 code for me78569
« Reply #19 on: June 12, 2015, 02:24:02 PM »
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

*

Offline hakcenter

  • developer
  • Hero Member
  • *****
  • 623
    • 1998 12v Ram
Re: HE351 code for me78569
« Reply #20 on: June 12, 2015, 02:59:27 PM »
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

*

Offline hakcenter

  • developer
  • Hero Member
  • *****
  • 623
    • 1998 12v Ram
Re: HE351 code for me78569
« Reply #21 on: June 13, 2015, 04:36:37 PM »
I am curious to hear how it is running, if any better without the pot now ?

*

Offline Rx7man

  • Crazy guy
  • Hero Member
  • *****
  • 908
  • Jack of all trades
    • '94 Dodge dually
Re: HE351 code for me78569
« Reply #22 on: June 13, 2015, 09:45:18 PM »
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 dodge, Colt Cam, head worked, NV5600, 3.55's, SB clutch, Ford manual hubs w. hawk brakes, custom flatdeck, custom aluminum bumper, cab off restoration, totally new engine, Mahle pistons @19:1..HE351VE with 67mm turbine and 67x95mm compressor
440hp/1000 ft lb @ 2400 RPM

*

Offline hakcenter

  • developer
  • Hero Member
  • *****
  • 623
    • 1998 12v Ram
Re: HE351 code for me78569
« Reply #23 on: June 13, 2015, 10:57:28 PM »
Yeah 1.1.0 is tabbed just so I can make more code look smaller lol

*

Offline Rx7man

  • Crazy guy
  • Hero Member
  • *****
  • 908
  • Jack of all trades
    • '94 Dodge dually
Re: HE351 code for me78569
« Reply #24 on: June 13, 2015, 11:33:34 PM »
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 dodge, Colt Cam, head worked, NV5600, 3.55's, SB clutch, Ford manual hubs w. hawk brakes, custom flatdeck, custom aluminum bumper, cab off restoration, totally new engine, Mahle pistons @19:1..HE351VE with 67mm turbine and 67x95mm compressor
440hp/1000 ft lb @ 2400 RPM

*

Offline me78569

  • Sr. Member
  • ****
  • 268
Re: HE351 code for me78569
« Reply #25 on: June 14, 2015, 12:26:02 PM »
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

*

Offline hakcenter

  • developer
  • Hero Member
  • *****
  • 623
    • 1998 12v Ram
Re: HE351 code for me78569
« Reply #26 on: June 14, 2015, 02:25:38 PM »
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.

*

Offline me78569

  • Sr. Member
  • ****
  • 268
Re: HE351 code for me78569
« Reply #27 on: June 15, 2015, 07:01:37 AM »
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

*

Offline hakcenter

  • developer
  • Hero Member
  • *****
  • 623
    • 1998 12v Ram
Re: HE351 code for me78569
« Reply #28 on: June 15, 2015, 08:17:09 AM »
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)

*

Offline me78569

  • Sr. Member
  • ****
  • 268
Re: HE351 code for me78569
« Reply #29 on: June 15, 2015, 08:25:43 AM »
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