Anyone running VVT on Haltek?

Thread Tools
 
Search this Thread
 
Old 11-29-2020, 03:17 PM
  #81  
Elite Member
Thread Starter
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
Default

Is anyone using a haltech 12 IO canbus expander?

The canbus protocol looks to hold 17 bits for the period value, and it seems to have a resolution of 0.01ms. That is good for an input range from 100KHz to 0.762Hz, but the kicker is the high side of the resolution absolutely tanks. 100KHz would be 0x1, and 50KHz would be 0x2, 33.33KHz is 0x3...

Searching on the internet and I find that the IO box has a max input frequency of 300Hz. Not entirely true, but that is where the resolution really starts to dive. With much higher input frequencies the timer resolution starts decaying really fast, so that around 70MPH off a miata VR sensor the resolution will start jumping pretty good, 70mph, 72mph, 78mph etc. If you wanted to send a speed sensor that runs above 300Hz to the Haltech (like a turbo speed sensor or wheel speed sensor) using their IO format you'd want a divider or prescaler first.

I think I will make a board that uses the 350Z canbus format for 4 wheel speed sensors plus the transmission speed input. Then I can run them off a 1MHz clock frequency so the resolution around 2KHz doesn't suck and the MPH readings keep at least tenth a MPH resolution to above 170MPH. I know the offsets for the nissan stuff, but don't know the format. Have to wait till I get my ECU and start poking bits in manually to see if I even get any more resolution into the thing...


deezums is offline  
Old 11-30-2020, 05:43 AM
  #82  
Junior Member
 
Mr Plow's Avatar
 
Join Date: Feb 2020
Posts: 199
Total Cats: 95
Default

Originally Posted by deezums
Is anyone using a haltech 12 IO canbus expander?

Searching on the internet and I find that the IO box has a max input frequency of 300Hz. Not entirely true, but that is where the resolution really starts to dive. With much higher input frequencies the timer resolution starts decaying really fast, so that around 70MPH off a miata VR sensor the resolution will start jumping pretty good, 70mph, 72mph, 78mph etc. If you wanted to send a speed sensor that runs above 300Hz to the Haltech (like a turbo speed sensor or wheel speed sensor) using their IO format you'd want a divider or prescaler first.
I think there is someone on here running 4 wheel speed sensors through their I/O expander but not sure if they are miata VR or hall effect - think its the BMW E46 ABS system. I don't know if they have any issues.

Please keep us updated - You may be able to help a dummy like myself once I start expanding as I will probably go expander at some point.
Mr Plow is offline  
Old 11-30-2020, 10:31 AM
  #83  
Junior Member
 
ChrisLol's Avatar
 
Join Date: Mar 2016
Location: Lexington, KY
Posts: 150
Total Cats: 75
Default


Now that I've pulled that from my map, I can't honestly say that is any different than default with the 500hz frequency. I didn't screenshot it but PIDs are:
P: 500
I: 350
D: 0

I don't have a specific log saved that shows the difference between target and actual but my tuner did remark that they were almost spot-on. Better than any of the Toyotas or Nissans he regularly tunes.

Originally Posted by dan91
Count me as part of the Haltech crew. Got a 1500, PnP adapter, and wideband controller. Time to un-Hydra my wiring
Fair warning, assuming this is an NB, Grab an NA8 alternator if you don't already have one. The PnP adapter doesn't control the voltage well. You can mess with settings to get the spikes under control, but if keeping an exact voltage output is important to you, you'll be better off bringing voltage regulation outside the ECU. External voltage regulator is an alternate option, the one that the MS crowd uses will work perfect.

Originally Posted by msmola2002
Nice. I have a Google doc I have been compiling for all the haltech connectors. I also have the Tyco plugs that are used on the pnp units as well as mating females and they are also used on the io expander boxes. I need to clean up the formatting and post it here somewhere. Cos 75 bucks for a 24 pin plug and pins vs <10 from mouser sounds like a win.
Yeah, can't blame you. Although I believe by the time you piece together both connectors and all the pins, you're closer to $40 for the setup from Mouser. Still a good savings.

Originally Posted by Mr Plow
I think there is someone on here running 4 wheel speed sensors through their I/O expander but not sure if they are miata VR or hall effect - think its the BMW E46 ABS system. I don't know if they have any issues.
We were running 4-wheel traction control through an I/O Expander on James Houghton's 900hp ITR using a bolt-on (third party) hall effect sensor setup that read the 5 lug studs. It worked well for him.



ChrisLol is offline  
Old 11-30-2020, 11:57 AM
  #84  
Elite Member
Thread Starter
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
Default

I bet someone who used the haltech io expander on the 44 tooth ABS reluctors would have no problem with traction control since the resolution at low speeds is fine, but the logging resolution of speed would get pretty bad the faster you go. Decreasing the output frequency would certainly help, and I think less pulses per rev would do that well.

But you can't pipe in a turbo speed sensor over an IO box, the software won't let you. The borg warner sensor (and most, I assume) has a built in prescaler, but it still runs above 300Hz most of the time. I found a post over on the haltech forum where the input resolution is the cause for this restriction.

For alternator control, only two of the digital pulsed outputs seem to be useable. I think DPO1 will let you set any pullup voltage you want, and DPO2 is fixed to 5V pullup, all others are fixed to 12V. You would want to use DPO2 to exactly emulate what most do on MS3, and since I think the OEM ECU uses a 1.5V field control signal DPO1 with a 1.5V pullup might give better control (more resolution) over alternator control.

Am I crazy for wanting to switch to a DBW throttle body? I get to ditch the timebomb that is the miata throttle body, and I wouldn't have to deal with a skunk throttle body and it's wacky throttle curve. Make it whatever I want it to be...

https://www.summitracing.com/parts/bch-0280750151

deezums is offline  
Old 11-30-2020, 12:34 PM
  #85  
Junior Member
 
ChrisLol's Avatar
 
Join Date: Mar 2016
Location: Lexington, KY
Posts: 150
Total Cats: 75
Default

Originally Posted by deezums
Am I crazy for wanting to switch to a DBW throttle body? I get to ditch the timebomb that is the miata throttle body, and I wouldn't have to deal with a skunk throttle body and it's wacky throttle curve. Make it whatever I want it to be...

https://www.summitracing.com/parts/bch-0280750151
Also, greatly simplifies idle control (set it and forget it) and would allow tunable auto-blip (With brake and clutch switch input)

I did it on the 1.6 and the 1.8. Bonus, the NB throttle body top two stud already line up perfectly with a 58mm Bosch throttle body. Drill them out and tap them for the next larger size.
The bottom two stud holes need to plug welded and re-drilled/tapped but easy enough if you've already got the top two holes ready to align your drill template (aka 1.8t VW TB gasket...)
ChrisLol is offline  
Old 11-30-2020, 10:14 PM
  #86  
Elite Member
Thread Starter
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
Default

I think I may go to the local junkyard and pick through their throttle bodies to see if anything fits closer. I assume the VW hole pattern crosses the miata pattern, so plugging is necessary? I need a tig welder...

I think I see how to make cruise control work, too. Would be nice to get that ugly crap out of the engine bay, but I'm not getting rid of cruise.

I can't wait for this thing to show up!
deezums is offline  
Old 12-01-2020, 02:15 PM
  #87  
Junior Member
 
dan91's Avatar
 
Join Date: Jan 2011
Location: Chicagoland
Posts: 122
Total Cats: -2
Default

Originally Posted by deezums
I bet someone who used the haltech io expander on the 44 tooth ABS reluctors would have no problem with traction control since the resolution at low speeds is fine, but the logging resolution of speed would get pretty bad the faster you go. Decreasing the output frequency would certainly help, and I think less pulses per rev would do that well.

But you can't pipe in a turbo speed sensor over an IO box, the software won't let you. The borg warner sensor (and most, I assume) has a built in prescaler, but it still runs above 300Hz most of the time. I found a post over on the haltech forum where the input resolution is the cause for this restriction.
I haven't gotten into setting mine up yet, but Haltech advertises 4 synchronized pulsed inputs directly into the ECU. Would those work for wheel speeds or 3 wheel speeds and a turbo speed? Or are those four consumed by something else already?
dan91 is offline  
Old 12-01-2020, 02:55 PM
  #88  
Senior Member
 
msmola2002's Avatar
 
Join Date: Aug 2017
Location: Norwich NY
Posts: 635
Total Cats: 323
Default

For an NA PNP install, SPI 1 is allocated to VSS, 2-4 are unallocated but it suggests using SPI 2 for flex fuel sensor.

SPI 3 for an NB is allocated to the clutch with the same SPI 1 and 2 arrangements.

msmola2002 is offline  
Old 12-01-2020, 02:56 PM
  #89  
Elite Member
Thread Starter
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
Default

Those are your only 4 inputs without getting into canbus hardware or eating into ADC inputs. And, those are the only 4 that will reliably read above 300Hz. Sadly, there's not much that can be done to get around that right now, except for VSS/WSS by emulating a vehicle's canbus abs module. Really need open canbus...

For wheel speed sensors you should probably use the inputs directly on the ECU unless it's a transmission speed sensor because those are slower frequency. You can use the canbus IO box for wheel speed but it will start to lose resolution around 70mph. You cannot use a turbo speed sensor over canbus, it must be on one of the ECU SPI inputs.

I'm making something that will let you bring 4 wheel speed sensors plus a transmission speed sensor in over the OBD2 canbus without any input resolution shenanigans. I am using a 10MHz timer clock frequency and 32bit counter values so I can represent some really fine changes in frequency even at 2KHz. Updated at 50Hz, maybe faster if the ECU will take it...




deezums is offline  
Old 12-02-2020, 05:06 AM
  #90  
Junior Member
 
Mr Plow's Avatar
 
Join Date: Feb 2020
Posts: 199
Total Cats: 95
Default

My SPIs are currently:
SPI 1: Flex fuel;
SPI 2: Drivetrain speed sensor;
SPI 3: Clutch Switch;
SPI 4: Left front wheel speed sensor.

I've used all my inputs as I have one rotary switch and 2 aux switches also taking up inputs. I'll most likely swap the clutch switch onto an AVI and put the front right wheel speed sensor onto SPI 3.

I'm currently running traction control but it is slightly more sensitive to left hand corners than right hand corners due to the single front sensor input and the arc of the turns. It is clear just how effective the TC can be from playing with different levels on the rotary switch in the wet. It really wants the average of the front wheels to equal out the slip error in turns.
Mr Plow is offline  
Old 12-07-2020, 11:22 AM
  #91  
Junior Member
 
ChrisLol's Avatar
 
Join Date: Mar 2016
Location: Lexington, KY
Posts: 150
Total Cats: 75
Default

Originally Posted by deezums
I think I may go to the local junkyard and pick through their throttle bodies to see if anything fits closer. I assume the VW hole pattern crosses the miata pattern, so plugging is necessary? I need a tig welder...

I think I see how to make cruise control work, too. Would be nice to get that ugly crap out of the engine bay, but I'm not getting rid of cruise.

I can't wait for this thing to show up!
The VW hole pattern is square. The OE Mazda NB throttle body is pretty wonky. The top two studs are level and the correct distance apart to make a match with the 60mm Bosch TB, but the bottom two studs are pretty far off. Easy enough to plug weld and redrill/tap. If you don't have access to a tig welder yourself, It should be something any decent welder that does aluminum can do for you. The drilling and tapping you can do after the holes are filled.
ChrisLol is offline  
Old 12-07-2020, 11:50 AM
  #92  
Elite Member
Thread Starter
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
Default

I think I came up with a schematic that should work for cruise. Looks a little weird, but with the two button NB cruise switch I think it might be necessary.

The N mosfet is switched on by the 12V cruise control main switch, it turns on the P mosfet which enables a pullup to 5V on the cruise line. The 4K resistor makes a divider that gives a resting 4V while cruise is on. When either switch is tripped, you get different output voltages.

So, enable/disable signal is 0V, resting position is 4V, resume is 2V, and set is 1V.




My ECU is already here! Dang, wasn't expecting that so soon! I haven't even ordered connectors yet.
deezums is offline  
Old 12-07-2020, 01:47 PM
  #93  
Junior Member
 
Mr Plow's Avatar
 
Join Date: Feb 2020
Posts: 199
Total Cats: 95
Default

Originally Posted by ChrisLol

Fair warning, assuming this is an NB, Grab an NA8 alternator if you don't already have one. The PnP adapter doesn't control the voltage well. You can mess with settings to get the spikes under control, but if keeping an exact voltage output is important to you, you'll be better off bringing voltage regulation outside the ECU. External voltage regulator is an alternate option, the one that the MS crowd uses will work perfect.
How accurate are you looking for on alternator voltage?

Mine was sluggish at targeting on the base settings until I pumped up the P and I in the function settings page. It is now pretty reactive to change (e.g. fan, lights etc. turning on and off) and sits within 0.1v of target. Say targeting 13.15v - It will sit between 13.12v and 13.18v.
Mr Plow is offline  
Old 12-07-2020, 04:03 PM
  #94  
Junior Member
 
dan91's Avatar
 
Join Date: Jan 2011
Location: Chicagoland
Posts: 122
Total Cats: -2
Default

Originally Posted by deezums
My ECU is already here! Dang, wasn't expecting that so soon! I haven't even ordered connectors yet.
Did Haltech send you tracking or did it just show up? I'm away for a couple weeks over the holiday and I don't want mine sitting on the stoop while I'm away
dan91 is offline  
Old 12-07-2020, 08:49 PM
  #95  
Elite Member
Thread Starter
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
Default

I got a ups tracking notification before it shipped, no signature required though. It was quick, only two days in transit. I'm sure if you email them they can delay the shipment a little bit, or maybe add a signature request.
deezums is offline  
Old 12-17-2020, 11:14 AM
  #96  
Elite Member
Thread Starter
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
Default

Finally got my harness built. I used a molex 063811-1000 crimping tool, seems to have worked out OK.







Here's my pinout, I made this harness out of an old MS3 adapter I made. Only temporary while I figure all this stuff out, I'll make an adapter PCB later once I have my final wiring and addon boards fixed like I like them. Matches my MS3 pretty much perfectly, so I can swap between ms3 and haltech if I need to. I chopped up my stock harness a good bit. Stuff like flex, oil pressure, oil temp and stuff are all ran on old VTCS/purge/egr wiring. I used 18gauge wiring, on the 20gauge terminals. If the crimp is not flawless (perfectly round insulation crimp) it will not fit.




Also about finished with my 350z canbus adapter. 5 total speed sensor inputs, 4 VR vss inputs, 4 digital inputs (vss, brake, AC in, traction on/off) 4 digital outputs (fan1, fan2, AC clutch, CEL) and two ADC inputs (brake pressure, steering angle) It will have a few settings, I think I am going to set it up so it's configured via tunerstudio over USB. Things like teeth per VR sensor, tire size, analog or digital brake input, etc...


deezums is offline  
Old 03-17-2021, 03:44 PM
  #97  
Junior Member
 
dan91's Avatar
 
Join Date: Jan 2011
Location: Chicagoland
Posts: 122
Total Cats: -2
Default

How did the 350Z CAN bus adapter work out?
dan91 is offline  
Old 03-17-2021, 05:03 PM
  #98  
Elite Member
Thread Starter
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
Default

I still haven't ordered them yet. I try and run a bunch of projects together so I can pack all the solder stencils on one sheet. Still working on a display or two, plus a few 3d printer things.
deezums is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Brian Butler
MEGAsquirt
13
11-11-2021 04:43 AM
OptionXIII
Engine Performance
33
11-09-2020 03:58 PM
CrazedNA
MEGAsquirt
33
08-04-2019 08:33 AM
Amellrotts
MEGAsquirt
9
09-16-2013 08:34 PM
FatKao
MEGAsquirt
17
05-02-2012 11:32 AM



Quick Reply: Anyone running VVT on Haltek?



All times are GMT -4. The time now is 04:13 PM.