My life, My coding

  • 257 Replies
  • 10333 Views
*

Offline Rx7man

  • Crazy guy
  • Hero Member
  • *****
  • 908
  • Jack of all trades
    • '94 Dodge dually
Re: My life, My coding
« Reply #15 on: June 03, 2015, 09:35:24 PM »
I also want to change a bunch of the program flow... for example I have a whole bunch of stuff I want to do every 100millis.. but I think it would help the processor if I didn't do them all on the same 100 millisecond interval.. so I'll split it into 10 millis and do something different every time.

I'm still trying to wrap my head around how I'm going to update this all via serial.. especially the floating point stuff.. Just keeping track if it is going to be a nightmare, so I think I'm going to start a new minor version soon.. I'll have an array of ints that will hold ALL the global ints, with an enumerator so i can keep track mentally of which is which..  Repeat for the floats and bytes.. that will make serial parsing SO much easier as I'll just be able to reference it by index rather than having a million damn "if" statements... Another good thing is the enumerators copy over to VB very nicely, just have to remove the semicolons and you have the VB version, so I don't get confused that way either.
'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: My life, My coding
« Reply #16 on: June 03, 2015, 10:42:26 PM »
OK, here's 1500 lines of code so far, and I don't have the serial parsing done yet or the EEPROM saving.. I forecast another 500 lines for that, but that'll only happen after the rewrite I mentioned before.




Take a look at it and tell me what you think
'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: My life, My coding
« Reply #17 on: June 08, 2015, 12:47:53 AM »
You folks have sure been quiet recently..

Anyhow, I have a ton of outdoor work to do.. like going around a field 100 times cutting hay.. It gives me lots of time to think about how I'm going to solve a problem.

So I put pretty much all my global float typed variables into an array that I'm accessing by using an enumerator.. It is not helping readability on things that span 2 lines as it is, but I think in the long run it'll pay off, especially when trying to update stuff over serial port, and getting information back to the laptop.. I don't think I'll have the arduino send much periodic information over the serial port by default.. perhaps a few basics, RPM, boost, VGT position, but all the other advanced stuff the laptop will send a request for.  I really want to see how the PID system I have works, all I can say is I'm hopeful!...

The math is really complicated, and a lot of the PID components will probably be unnecessary in the final version, but it's easier to put them all in and set their sensitivity to 0.. I think for tuning I will start with all Proportional sensitivities at 1, and integral and derivative sensitivities at 0, then if it's too laggy, overshoots, or doesn't ever get to the setpoints, I can play with the 'I' and 'D' components
'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: My life, My coding
« Reply #18 on: June 08, 2015, 05:46:17 PM »
sometimes life gets you down haha

*

Offline Rx7man

  • Crazy guy
  • Hero Member
  • *****
  • 908
  • Jack of all trades
    • '94 Dodge dually
Re: My life, My coding
« Reply #19 on: June 08, 2015, 10:04:36 PM »
Yep, life gets in the way of doing what you want to do

I bought the  piece of tubing today I'm going to use to make my downpipe.. 4" all the way.. the turbo V band flange I'm going to cut myself on the lathe so it fits nice, and then I should be ready for the physical installation.. Yes, I need to get more stuff :rolleyes:
'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: My life, My coding
« Reply #20 on: June 09, 2015, 01:45:35 PM »
The 4" i got from DAP, barely BARELY fits. I mean like 1/16" between frame and transmission!

*

Offline Rx7man

  • Crazy guy
  • Hero Member
  • *****
  • 908
  • Jack of all trades
    • '94 Dodge dually
Re: My life, My coding
« Reply #21 on: June 09, 2015, 01:57:25 PM »
On mine all but the very first part of the DP is 4", and it fits nicely.. perhaps the routing is a bit different?
'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: My life, My coding
« Reply #22 on: June 09, 2015, 01:59:58 PM »
damn it's been hot here.. we had 100F in the shade yesterday, about 96 today, I was up til 4AM baling hay and in a T shirt the whole night.. was hoping for a touch of dew but that wasn't happening.. another couple days of this grind and it's done for a while.. then the irrigation goes like mad again
'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: My life, My coding
« Reply #23 on: June 10, 2015, 05:24:48 PM »
Well, I ran into something that is going to cause me problems down the road with the serial interface... not sure how I'm going to deal with it yet.. Serial.parseInt is a blocking function, which will wreak havoc in the timing of everything else, so I may have to do some serious thinking about how I'm going to work around it.. *grumbles*

I'm thinking of sending everything in binary format, but that makes for unreadable transfers, and in integer form I run into problems too
'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: My life, My coding
« Reply #24 on: June 10, 2015, 05:38:42 PM »
but blocking is super cool  :o

*

Offline Rx7man

  • Crazy guy
  • Hero Member
  • *****
  • 908
  • Jack of all trades
    • '94 Dodge dually
Re: My life, My coding
« Reply #25 on: June 10, 2015, 07:50:37 PM »
I hear Lego blocks too

it was another day of 96F, I was up til 4 am last night, and will be again tonight... and tomorrow night.. *sigh*...
'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: My life, My coding
« Reply #26 on: June 15, 2015, 02:44:14 PM »
Well, the haying is done.. now it's back to watering...

I spent a couple hours today on the lathe, I made my downpipe adapter, looks pretty good, and fits properly.. 4" is going to look huge in comparison to the 2 1/2 or whatever the HX35 is... I'll try and post a pic later.
'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: My life, My coding
« Reply #27 on: June 15, 2015, 06:49:26 PM »
Oh it's massive! I think the stock dp is like 3" at best.

You might want to like... make more on the lathe for other people that can't actually get a 351ve v-band cause all anyone sells is the cw's and calls it he351.

Btw you make me peanut butter and jelly having a lathe. I need a mill first... but damnit I should have a lathe too

*

Offline Rx7man

  • Crazy guy
  • Hero Member
  • *****
  • 908
  • Jack of all trades
    • '94 Dodge dually
Re: My life, My coding
« Reply #28 on: June 15, 2015, 07:21:24 PM »
The lathe is so nice to have.. I probably spend 100 hours on it a year.. and I'm supposedly a farmer... The adapter I made doesn't have a perfectly smooth finish like a CNC lath would have, but it'll do the job.  The lathe I have is a 40" bed, 10" max swing.. it's a taiwanese lathe, it came from the high school I went to... I have a VFD controlling the 3hp motor on it.. we don't have 3 phase power here, so we needed a drive for it anyhow, and well.. a nice Allen Bradley wasn't needed at a jobsite and it found it's way home here.. SUPER nice to get just the right cutting speed... though I do have to invest in more tooling for it, especially boring bars and carbide tool holders.

Since the mandrel bends aren't actually 4" OD on the bend, I tapered where the DP fits on from 4.05" to 3.9" so you have a good fit whatever the size is, and you have a groove to weld in. 
'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: My life, My coding
« Reply #29 on: June 15, 2015, 07:27:31 PM »
Here's some of the pictures attached
'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