the12volt.com spacer
the12volt.com spacer
the12volt.com spacer
the12volt.com spacer
icon

tach frequency to voltage


Post ReplyPost New Topic
< Prev Topic Next Topic >
redstealthrt 
Member - Posts: 37
Member spacespace
Joined: October 15, 2008
Location: Tennessee, United States
Posted: December 31, 2008 at 11:26 PM / IP Logged  
KPierson: Would something like this work (or is this something u are talking about) http://2.bp.blogspot.com/_ZlBzpWAhs1E/SOdsafZjT2I/AAAAAAAAADA/c-7cD9NyQJ0/s1600-h/RPM+2x16+Display+Schematik.JPG? Of course i do not know what type of resister they are using there...
Or how about this http://www.arduino.cc/playground/Main/ReadingRPM? but they both really do not go into detail what all was used and where to put it...
But going back to what u described:
Tach wire->2n3906->Arduino pin?
And is it normal for a car to have volts when in ACC/ON position? (Car ON/ACC = 0.17v and less)
BTW, HAPPY NEW YEAR 2009!tach frequency to voltage - Page 2 -- posted image.
David
KPierson 
Platinum - Posts: 3,527
Platinum spaceThis member consistently provides reliable informationspace
Joined: April 14, 2005
Location: Ohio, United States
Posted: January 01, 2009 at 12:21 AM / IP Logged  

The first picture just shows how to hook up an LCD screen.  The second picture shows (and tells I believe) how to hook up a hall effect sensor to monitor RPM - this is basically what you want.  A hall effect sensor will pulse once per revolution so  its the same theory.  Now, his code looks like he is sending the RPM out to an LCD, you'll need to modify that slightly, but to what extent is hard to say since I'm not familiar with the platform.

I don't consider 0.17v voltage.  Anything less then about .5 volts can be considered 0.  Once you get closer to 0.7 you'll get in to a range that is triggerable as a voltage by some electronics.

Kevin Pierson
Mad Scientists 
Silver - Posts: 380
Silver spacespace
Joined: February 07, 2004
Location: United States
Posted: January 01, 2009 at 9:36 AM / IP Logged  
KPierson wrote:

If you're shooting for 850 RPM and you're using a fuel injector you can calculate frequency -

An injector fires one time per 2 motor revolutions, so your fuel injector, at 850rpm, would pulse 425 times per minute.  That would equal 7.08 pulses per second which would be 7.08hz.   

So, if you want to know when the motor is spinning faster then 850RPM you would need the time between pulses to be equal to 0.141 seconds or lower. 

Now, keep in mind that you can't shut the motor off as soon as you hit your setpoint, you'll want several confirmation pulses before shutting the starter off.

If you go this route you can use a bjt transistor (such as a 2n3906) and run the output of the transistor directly to the uC.  With the transistor you won't need a zener diode. 

If you were to use a voltage follower the output would be 12vdc (equal to the input) so a zener diode could be used to clamp that voltage down to 5.1vdc (standard value). 

Just to step in here for a moment.. perhaps not for the vehicle in question, but depending on the injection system being used, the 1:2 ratio injector pulse to RPM isn't an absolute.. I'm thinking of the older GM TBI injection systems, or 'batch fired' injection vs. true sequential. Also, the duty cycle on injection varies greatly compared to ignition pulse train.

Mentioned only for others who might be considering something like this, or just using an RPM signal for something else.. not to discourage, but to suggest verifying actual signals for your specific vehicle.

Jim

KPierson 
Platinum - Posts: 3,527
Platinum spaceThis member consistently provides reliable informationspace
Joined: April 14, 2005
Location: Ohio, United States
Posted: January 01, 2009 at 10:05 AM / IP Logged  

In "most" batch injection systems you will still have one pulse per fuel injector per 2 complete motor revolutions - the only difference between a batch injector signal and a true sequential injector signal is the timing (and length of signal as batch injectors open longer to make up for the ineffiencies of firing at the "wrong" time) compared to ignition.  You will have multiple injectors firing at the same time, but they will still only fire once per every two motor revolutions.

The duty cycle of the fuel injector only comes in to play under one circumstance - 100%.  Since we are measuring total pulse width (from one positive to negative transistion to the next positive to negative transition) the length of time that the pulse is positive or negative is completely irrelevent to engine RPM.  However, at 100% duty cycle there will be no positive to negative transistion (the injector will just stay negative for multiple motor cycles and make the controller "think" the engine isn't running anymore.  No fuel injection system should ever run the injectors at 100% but I've seen it done on OEM cars (like the Saturn Ion Redline) and I see it happen on modified cars all the time when people don't want to spend the money to upgrade their fuel system correctly.  But, you are correcft, ignition systems maintain a very low duty cycle, even at higher RPM while the duty cycle of fuel injectors can increase exponentially with RPM.

The duty cycle, for this applicaiton, is completely irrelevent due to the fact he is only monitoring the tach signal while cranking.  Now, if he wanted to continuously monitor tach so that the start/stop button will also stop the car but only if the motor is running it may be necesarry to consider the 100% duty cycle issue - but I doubt anyone would ever try to push the start/stop button at WOT and high RPM!

Kevin Pierson
Mad Scientists 
Silver - Posts: 380
Silver spacespace
Joined: February 07, 2004
Location: United States
Posted: January 01, 2009 at 12:33 PM / IP Logged  
KPierson wrote:

In "most" batch injection systems you will still have one pulse per fuel injector per 2 complete motor revolutions - the only difference between a batch injector signal and a true sequential injector signal is the timing (and length of signal as batch injectors open longer to make up for the ineffiencies of firing at the "wrong" time) compared to ignition.  You will have multiple injectors firing at the same time, but they will still only fire once per every two motor revolutions.

 I would respectfully disagree.. my experience has been (generally stock production stuff) that batch fire triggers every revolution.

"Injectors are typically fired in either a batch or individually in a sequential order. Batch fire is when all the injectors fire simultaneously at one time for each revolution of the crankshaft. This means each injector offers a wider response of fuel-flowing capacity since it is fired twice for every four-stroke engine cycle. A sequential EFI system fires each injector only once based on the firing order of the engine.s are typically fired in either a batch or individually in a sequential order. Batch fire is when all the injectors fire simultaneously at one time for each revolution of the crankshaft. This means each injector offers a wider response of fuel-flowing capacity since it is fired twice for every four-stroke engine cycle. A sequential EFI system fires each injector only once based on the firing order of the engine."

http://www.chevyhiperformance.com/techarticles/90778_efi_swap_part_2/index.html

"< color=#ff0000>"Most early EFI systems were batch-fire systems where the ECM fired all eight injectors simultaneously. Usually batch-fire systems fire the injectors once per engine revolution. This way, the injectors could be sized small enough to be more easily controlled at idle. Later, sequential EFI systems were refined to fire an injector a few degrees before the intake valve opened. Generally, sequential injection offers more precise fuel control at the price of increased complexity. But on production engines, the benefits are more in the area of emissions and driveability than in performance"

(quote from GM performance)

 Additionally, I'm reading that some stuff (production and aftermarket) can be set up to fire off multiple times during each rev. And to further muddy the waters, some sequential systems go to batch fire in the higher RPM ranges.

KPierson wrote:

The duty cycle of the fuel injector only comes in to play under one circumstance - 100%.  Since we are measuring total pulse width (from one positive to negative transistion to the next positive to negative transition) the length of time that the pulse is positive or negative is completely irrelevent to engine RPM.  However, at 100% duty cycle there will be no positive to negative transistion (the injector will just stay negative for multiple motor cycles and make the controller "think" the engine isn't running anymore.  No fuel injection system should ever run the injectors at 100% but I've seen it done on OEM cars (like the Saturn Ion Redline) and I see it happen on modified cars all the time when people don't want to spend the money to upgrade their fuel system correctly.  But, you are correcft, ignition systems maintain a very low duty cycle, even at higher RPM while the duty cycle of fuel injectors can increase exponentially with RPM.

 Also 0%.. which would be seen in 'Clear Flood' mode and closed throttle deceleration. CTD 0% probably happens every time the car is driven on the road. This is easily seen with a scan tool..

 It's not so much that the ignition system is a low duty cycle, more that it's a stable one. Using an injection trigger, at any given RPM you could have multiple duty cycles.. depending on engine temp, throttle position, etc. If the actual transition event is being read it's one thing, but if it's a voltage reading being measured (because at any given RPM, apparent voltage would increase with an increase of duty cycle) then changes due to cold enrichment etc would result in an incorrect reading.

KPierson wrote:

The duty cycle, for this applicaiton, is completely irrelevent due to the fact he is only monitoring the tach signal while cranking.  Now, if he wanted to continuously monitor tach so that the start/stop button will also stop the car but only if the motor is running it may be necesarry to consider the 100% duty cycle issue - but I doubt anyone would ever try to push the start/stop button at WOT and high RPM!

 It looks like he(she) is using some sort of PLC or ucontroller.. if you're gonna have an input, might as well use it for all you can, right? It's just a matter of writing some code. Using an injector signal would allow you to drive a light that brightens with throttle (somewhat like the old Nissan 300ZX digital dash did). Ignition signal would let you program shift lights, multiple stage nitrous activation, overrev protection, etc. Road speed could allow you to program movable body panels like the Boxster does with the spoiler.

 consider this.. seeing some of the widebody conversions I see running around.. set up a controller with brake light switch input (digital), road speed input (analog) and override switch (digital).

If OVERRIDE is 'OFF' , BRAKELIGHT is 'ON', ROADSPEED is > 30mph - 'deploy airbrake panels'

if OVERRIDE is 'OFF' BRAKELIGHT is 'ON' , ROADSPEED is <15 - 'retract airbrake panels'

 Or do what this guy did with his Christmas lights..

http://www.snopes.com/photos/arts/xmaslights.asp

 Regards..

 Jim

redstealthrt 
Member - Posts: 37
Member spacespace
Joined: October 15, 2008
Location: Tennessee, United States
Posted: January 01, 2009 at 2:52 PM / IP Logged  
Jim: Thanks for your contribute to this topic. However, Kevin is correct as i am only needing to know when the car has started and thats all. Nothing more fancy-pants than that I'm afraid. To make it worth my while to do what u have suggested, i would need at least the tach and the speedo wires to make a nice user interface, etc etc... but that's on down the line.. far down the line :o)
Ok well i cant seem to find a Hall-effect sensor that looks like the one in the picture....?
Is the square chip on the breadboard the Hall-Effect chip? It doesn't seem to be connected to anything??? I have circled it in the picture below..
tach frequency to voltage - Page 2 -- posted image.
David
KPierson 
Platinum - Posts: 3,527
Platinum spaceThis member consistently provides reliable informationspace
Joined: April 14, 2005
Location: Ohio, United States
Posted: January 01, 2009 at 9:28 PM / IP Logged  

Like I said, in "most" systems batch injection is still only once per motor revolution.  That's not to say that there weren't a few systems between 1982-1985 that did fire once per crank revolution, I just feel that they are not the "norm" and that the majority of batch firing were at least twice per full motor revolution (a form of batch firing called bank firing).  By the mid 80s the technology was more then capable of at least bank firing.

That all being said, when I laid out my calculations I showed how the end number was achieved and anyone should be able to follow that guide and calculate the correct value for their specific car.

There are distinct reasons though that I recommended a fuel injector over an ignition source.  I have never seen (or even heard of until you posted) a sequential combustion engine that fires the fuel injector more then one time per crank revolution but I have seen cars that fire the spark plugs multiple times per crank revolution - this is used to decrease emissions by making sure all fuel is burnt before being exhausted.  Ignition systems, generally, are much noisier as well, making it hard to distinguish between a spark event and noise in the system.  Fuel injectors give you a wide window to work with where you can debounce the turn on by 10-20mS where a spark event generally doesn't last long enough to do much verification on.  Lastly, ignition systems can vary greatly from one car to the next, but generally all vehicles use the same fuel injector principal (tie one end of a solenoid to 12vdc and pulse the other side with a (-) output from an ECU).  This gives predictability from one vehicle to the next.  The last thing I have to consider is the fact that sequential (and batch) systems always fire at about the same time (x amount of degrees after TDC generally).  Spark events differ with timing and if you have a knock event on a late model car you going to see extreme retarding of timing which will cause at least two cycles to report erronious RPM values (the first cylce of the retardation and the last where timing goes back to normal). 

On my TT G35 coupe I'm using a fuel injector signal to trigger a shift light and to trigger a two step module that can hold RPM to the exact value programmed.  I had once tried to hook my shift light up to the ignition output but found it too noisy to be compatible with the hardware/software I was using.  If you choose to monitor the ignition pulses much more hardware/software filtering will be necesarry.  On a similar note I just recently read on this forum that it is not recomended to use ignition triggers on the tach input of DEI remote starts - I guess they have had similar issues monitoring tach signals that way. 

If you want to get really technical neither the fuel injector nor the ignition is the "best" place to get RPM data - the cam or crank angle sensors would provide the absolute most accurate data as they are mechanically bound to the actual RPM of the motor.  The issue there though is that most crank and cam angle sensors don't report linear data so you have to decode the information - this makes it almost impossible to make "universal" interfaces for any RPM based product as all cars use slightly different pulses per revolution and timing flags.

I've honestly never worked on a batch injected car - the closest I came is when a friend and I were talking about converting his Caddy to sequintial from batch.  However, when I told him we would have to retune the entire fuel table he opted not to go through with it!

Kevin Pierson
KPierson 
Platinum - Posts: 3,527
Platinum spaceThis member consistently provides reliable informationspace
Joined: April 14, 2005
Location: Ohio, United States
Posted: January 01, 2009 at 10:22 PM / IP Logged  

redstealthrt wrote:
Jim: Thanks for your contribute to this topic. However, Kevin is correct as i am only needing to know when the car has started and thats all. Nothing more fancy-pants than that I'm afraid. To make it worth my while to do what u have suggested, i would need at least the tach and the speedo wires to make a nice user interface, etc etc... but that's on down the line.. far down the line :o)
Ok well i cant seem to find a Hall-effect sensor that looks like the one in the picture....?
Is the square chip on the breadboard the Hall-Effect chip? It doesn't seem to be connected to anything??? I have circled it in the picture below.. 
David

The hall effect sensor can't be seen in the picture - it is the sensor that measures actual RPM so it should be built in to the fan motor.  The hall effect sensor sends a signal back to the processing board through one of the wires.  I'm not that familiar with computer fans so I'm not exactly sure how they do it but I do know the hall effect sensor needs to be mounted by the rotational object that you are trying to measure RPM of.

Kevin Pierson
redstealthrt 
Member - Posts: 37
Member spacespace
Joined: October 15, 2008
Location: Tennessee, United States
Posted: January 01, 2009 at 10:26 PM / IP Logged  
Hum... i don't think i saw an answer to my question in your last post, Kevin? Or did i miss it?
David
redstealthrt 
Member - Posts: 37
Member spacespace
Joined: October 15, 2008
Location: Tennessee, United States
Posted: January 01, 2009 at 10:28 PM / IP Logged  
Ok, sorry i didnt see that you posted another one...
So, are you saying i should stick with the 2n3906 to do that then?
David
Page of 4

  Printable version Printable version Post ReplyPost New Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

  •  
Search the12volt.com
Follow the12volt.com Follow the12volt.com on Facebook
Tuesday, April 23, 2024 • Copyright © 1999-2024 the12volt.com, All Rights Reserved Privacy Policy & Use of Cookies
Disclaimer: *All information on this site ( the12volt.com ) is provided "as is" without any warranty of any kind, either expressed or implied, including but not limited to fitness for a particular use. Any user assumes the entire risk as to the accuracy and use of this information. Please verify all wire colors and diagrams before applying any information.

Secured by Sectigo
the12volt.com spacer
the12volt.com spacer
the12volt.com spacer
Support the12volt.com
Top
the12volt.com spacer
the12volt.com spacer