Main Menu

HE351 code for me78569

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

me78569

Found the issue.


It seems that the canbus shield uses pin 8 for an led.  If I bend the pin 8 on the canbus shield so it can't make connection with the arduino then I started to get rpm readings.  It looks like I am getting some interferience though . I seeing rpm readings steady at 1260, then jump some and settle back down at 200 something. 

Do i need to twist that pair of wires?
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

Never twisted mine. You have the 10k cap 10k on the vr lines ?
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

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

me78569

WEll I am pretty sure I burned up the canbus shield.  After I installed the 9924 and did the pullup to pin 8 ( now I find out there is an led on pin 8 of the canbus).

This is the second can shield I have burned up since starting this project, both of them sparkfun shields.  I ordered a seeed can shield and have edited my code and your 1.1 code for the new can library they use. 

More fun to come I guess,.
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

Rx7man

not having much luck it would seem!?

On the other hand, you're getting 'experience' (it's what you get just after you need it)
'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

Seems like one thing after another haha.

Oh well work through 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

hakcenter

Should just get my board... lol

if you know where the issue is thou, the mcp chips aren't that expensive to replace
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

The seeed canshield was $11 shipped. 

I will be getting on of your boards after I pay for the wedding and now the additional $2900 for the surgery my future wife needs on the 16th. 


Ugh.
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

Rx7man

Just push the wedding and surgery back a couple months, she'll understand :P
'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.

me78569

haha yea I can see that convo now,


" hey hun, gonna have to push back removing your cysts and polyps from your baby making oven.  Daddy needs some more parts"

hahahah, any you guys got a spare room for me?  dog house wouldn't cut 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

hakcenter

i got a cabana in the back, free rent no problem
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

#87
So rather than using the setup section to define what curve is selected I have done this.

////////////////////////////////Watches for the pot position when pot switch is off to see what turbo curve is selected//////////////////////////////////////////
   void Watchpotcrv() {
      if (!eb_mode && !pot_mode) {       
        if (PotentiometerValue > 970) {BoostMapMode = 'E';}
        if (PotentiometerValue > 20 && PotentiometerValue < 970){ BoostMapMode = 'D';}
        if (PotentiometerValue < 20){BoostMapMode = 'P';}
         
        if (LastBoostMapMode != BoostMapMode){
          if (BoostMapMode = 'E') {memcpy(turbo_curve,turbo_curve_1,sizeof(turbo_curve));}
          if (BoostMapMode = 'D') {memcpy(turbo_curve,turbo_curve_2,sizeof(turbo_curve));}
          if (BoostMapMode = 'P') {memcpy(turbo_curve,turbo_curve_3,sizeof(turbo_curve));}
          LastBoostMapMode = BoostMapMode;
        }
       }
      }


I know the memcpy function is slow, but I am assuming that by watching for a change in the inactive pot position and skipping the memcpy if the lastboostmapmode is the same as boostmapmode it should work right? 

I have it set in the timer section to only run this once every 900 millis or something like that. 

thoughts? 

Also in your lbb code I have a question about  "staging_enabled"   I can't find anywhere where you set it to true?  am I missing something? 
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

There is staging code in the calculate vane position, to skip the WOT top end section and just use ms timing / staging.

For people that may just have a drag only car and want a specific turbo response versus time.
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

#89
so you just manually set staging_enabled to true in the lbb common if you want that feature?
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