Jump to content
SAU Community

Vct Controller For Rb20 And Non Vct Enabled Ecus On Rb25s, Anyone Interested?


Recommended Posts

I haven't written the code yet so they won't do anything. What I meant by working is the boards are functional and can turn FET on and off to control a solenoid. I have no idea how much current is needed however and what kind of voltage so that needs to be tested along with actually writing the code. Shouldn't be too much work but until then unless you can program C for a dsPIC microcontroller they wont be much use.

edit: Once I have something working I will be sure to let you know though. I'm going to hard code the rpm points for turning on/off initially but might add a DIP switch to change the lower/upper points in 500rpm increments finally.

If your after some basic circuit idea's that might help the project...

You can use a 741 op amp as a comparitor, allowing an adjustable reference voltage to be input with a POT (0-5V), compared to say an TPS input voltage, and the output of the IC will swing high or low. http://www.technologystudent.com/elec1/opamp3.htm

As for driving the solenoid, using a BUK456 TO220 package mosfet with a 5 watt 60v zener diode setup reverse bias from the gate to ground is the easiest method ive found to switch big currents (up to 20amp). No heatsync required to. And the input of the mosfet just needs an input pulled high to 5V with a 100ohm resistor. Ive used these for driving fuel injectors and they work great. The zener is needed to stop the voltage spike the solenoid generates from cooking the mosfet.

With RPM sensing, had you though of using an outside RPM detection method like an RPM activated switch such as Autometer/MSD sell? That way you can just change rpm pills to alter the activation RPM's of your circuit and the output is either high or low. Makes it a simple "no brainer" adjustment method.

Good effort on having a go at this. Im with you in that there is a lot of satisfaction to be had from making something like this yourself. You'd be amazed what you can make when you start applying some of your trade knowledge to something you actually have passion about!

Edited by GTRNUR

I have something on the go aswell was just hoping your's was finished before mine.

Using an Amtel processor, reading RPM signal from ecu it will the ground the VTC wire.

Also looking at at using it as a boost controller and a datalogging device to send real time data via serial

Thanks for the suggestion GTRNUR on what config to use to drive the solenoid, I will definitely give that a shot. Do you know how many volts the solenoid needs to run? save me testing. Pulling the mosfet high via a digital IO pin will be much easier than using an opamp as well, will add all of that to the next board revision.

With the RPM sensing that is definitely a possibility but as I want to keep it as low cost as possible and I want to be able to easily change rpm ranges. A DIP switch with a few pre set rpm points is the easiest way, however I could add some pots with an LCD or a COM port to set it that way. Leaning towards the DIP switches as there is unlikely to be much gain from changing the rpm points from standard much.

Crans what do you mean it will ground the VTC wire? Is the solenoid already wired to the battery and just needs the ground wire to be switched? I had just assumed it needed the active wire switched as it could just use any of the chassis for the ground, would save running two wires, I guess Nissan might have had their reasons if that is the way it is wired up though.

Also using a 741 as a comparator that would certainly work but I am more of a software guy and this way I can easily add more features to the project.

As far as i know the vct is activated by grounding the wire that goes to the ecu

Correct. The VCT valve works the same as an ignition coil or injector (no resistor pack to limit current though). +12V is always present on one side of the injector, and the activation requires just pulling to ground.

The BUK456 mosfet is an N-channel fet. Gate is your +5v trigger with a 100 ohm input to limit activation current. Source connects to the solenoid grounding wire and the zener diode anode end, and the drain connects to chassis ground and the zener diode cathode end.

Most RPM/frequency comparing circuits ive seen (that can then result in a boolean trigger) that used dip switches use the switches to turn on/use different RC circuits. Ie.... Time=Resistance*Capacitence. These circuits would switch in different RC combinations to a frequency comparitor IC. You can actually get all kinds of cool IC's developed to do just this sort of thing. Saves you having to design all your own circuits. The accuracy of these methods isnt necessarily very good though as component tolerances vary a fair bit. Entirely microprocessor is much more accurate.

If you want to go entirely down the microprocessor path there is a far more accurate method of calculating RPM. A few years ago I made a whole efi computer. I developed a method of calculating RPM by using reciprical maths and counting micro seconds between ignition pulses. Basically I used an 8253 IC programed to operate as a micorsecond counter(uS not mS). Every igntion event it would stop the clock, read the counter of elapsed uS, reset the clock and start it again. The equation was something like this...

RPM = 1/((timer count in uS+fudge factor constant to account for calculation and data aquistion time) * ignition pulses per 360 degrees )

The downside of this method was the processing overhead would also take a few micro seconds... thus the need to add a fudge factor. Even then it was extremely accurate as the calculation fudge factor is a constant, not variable. Once identified with bench testing it was a set and forget value.

With the last version of my efi computer I did as much in hardware as was possible. I used 74LS373 IC's to operate as a buffer stage between analogue to digital hardware, and the 8354 timer. External triggering would trigger a circuit that would stop the counters, load the value into the 373 buffers, reset the counter, and start it again. The microprocessor could then read the values at their leisure, or when an interrupt was detected when a new value was loaded into the buffer that related to the 8253.

I hope I havent geeked out too much here, but your a programmer with some hardware knowledge so Im sure you might find some of this useful.

No problem at all with the details, I work as an Electronic/Computer Systems engineer so I work with this stuff everyday.

Whilst the method you mentioned would be very accurate I am happy with +-50rpm accuracy and a few ms delay on switching the solenoid as it does not need to be very accurate.

Polling the RPM signal and then firing the IO pin to the mosfet should be effective enough. I might add a fudge factor to the rpm as well to account for any delay when firing the mosfet/solenoid/calculation time as you said you did.

Thanks for the info though, appreciate it. Always good to find someone else who knows what they are talking about.

Bit of info for ya,

A mate got his rb30/25 tuned by a well know tuner/drifter in nz and he set the vct to operate between 1300 - 4300 AND only with 30% throttle or higher

His words were 'at light throttle you will get better economy and emissions and with some throttle the cam will advance and make some more torque to accelerate'

If you can make it trigger off rpm and tps it could be more versatile

Edit - possibly 20% throttle. I forget

Edited by fletch rb30

Yeah TPS should be pretty simple to add in.

My system is going to be tunable via USB and some windows software.

Its awhile off being done tho that is why i wanted to test your's out Rolls

  • 5 months later...

Due to my eboost street having a window auxiliary controller built in I've discontinued this, I have the schematic available but no real code if anyone wants to continue it, just don't have time with work to finish it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

  • Latest Posts

    • Hi guys my 94 r33 gtst fuel pump has gone out. I have a walbro 525 ready to go in but am unsure if I need to upgrade the fuel tank bulk heads? Ive heard that others have issues with the stock wiring melting... Ive seen alot of people recommend this: https://frenchysperformancegarage.com/products/fpg-nissan-skyline-r33-r34-silvia-s14-s15-billet-fuel-tank-bulkhead-hat-top-an6-with-high-current-connector-apex-2-8-delphi-fpg-100?variant=42873255198898 My current pump that stopped working is aftermarket but I had no relay mod or upgraded connectors. Need some advice please. TIA
    • It’s new. It’s the cd009. I did take the transmission apart to mill down the bellhousing and had both housings come off the gears so wondering is something isn’t in right. I am running redline. I can get it in gear running too but it’s just not easier and it’s almost like 2, 4, 6, and reverse all the back gears aren’t happy going in
    • I’ll remember that as a last choice. It’s brand new
    • Got keys and did a walk around the yard planning the landscaping works with the family that I will be doing Main effort: remove all the woodchip in the gardens that are around (attached) to the outside of the house and replace with 10mm blue metal, having woodchip close to the house is a recipe for inviting white ants, currently there are no white ants within the block and I would like to keep it that way I'll be buying some large raised garden beds to grow veggies and stuff, and the woodchip will be mulched with everything else that gets dug up, pulled out, or cut down during works Next will some minor drainage and landscaping maintenance up one side of the house, where the fuse box, AC, and solar stuff will go, about 12 mtrs long by 2 meters wide, I'll break up the soil, add gypsum and then I'll dig in a French drains about 300mm deep x 300mm wide and fill it with agg pipe and blue metal, then level out the whole area with a 50mm layer of blue metal, the soil, whilst currently pretty compacted, will break up well with the gypsum to aid in drainage, I'll then cover the area with a 50mm layer of more blue metal In saying this, the drainage issue is minor, but that little hidden away area down the side is untidy and weedy, and as all of the main elec stuff is there I want it neat and tidy to appease my OCD Again, the material excavated from the French drains with be added to the garden bed mulch, as will some rose bushes and some other crap looking garden plants, and a old apricot tree that is looking worse for wear The apricot tree is currently in a little roundish garden bed that is in the middle of the back yard with few other crappy looking plants around it, that will all be removed, levelled, re-turfed, and is a perfect spot for a hills hoist There is also a area about 3m x 2m between the rear fence and shed that will get some attention, it looks like some stuff was stored there and the grass is dead, that will also get broken up and mulched, and is a prime spot for a pumpkin patch I've guestimated that I'll need: 3 tonnes of blue metal, 12 meters of agg pipe, 5kg of Gypsum, and a hills hoist, so a few bags of concrete as well to set it in place (the house currently has one of those pull out 4 line jobs, whilst it works, I want a retro old school hills hoist), I am also going to run some chickens, there's a great spot for a coop, so a chicken coop to suit 4 of those lovely egg laying bitches will also be on the job card That should keep me busy for a while, and will finish off the back yard ready for a early spring planting of some veggies and berries  Once the main effort is done I'll start out the front, there's a large rock garden that could use some TLC, but that is only minor works Should be fully moved in within 2 weeks, the landscaping works will start then Fun times, retirement is good  
    • It happens, that's what your single stage filler is used for.  If it is still visible after the 3 coats of 2k primer, it will be visible after the paint is laid down.  Its hard to give 100% perfect advice without being there in person, I'm very tempted to say stop where you are, fill your pin holes with a single stage putty first then keep going. 
×
×
  • Create New...