Page 1 of 2 12 LastLast
Results 1 to 15 of 22

Thread: Filtering Tacho signal to 5v pulses

  1. #1
    Gary Motorsport Inc. Too Much Toyota takai's Avatar
    Join Date
    Oct 2005
    Location
    Victoria
    Posts
    5,543

    Default Filtering Tacho signal to 5v pulses

    Ok, just doing a bit of work with an Arduino for an exhaust controller and i need to filter the 12v pulse for the tacho down to 5v pulses for the arduino to count.

    I was planning on doing this:

    Tacho output ----20k----> Arduino
    .....................|
    .....................4.7v 1w zener
    .....................|
    .....................Gnd


    I was going to use this Zener for the ground pull: http://www.jaycar.com.au/productView...r&form=KEYWORD because i have a bunch lying around.

    Will it work? Thoughts?
    -Chris | Garage takai - Breaking cars since 1998
    Sparky - AE86 IPRA Racer | RZN149 Hilux - Parts and Car Hauler
    I never saw a wild thing sorry for itself. A small bird will drop frozen dead from a bough without ever having felt sorry for itself. - D.H.Lawrence

  2. #2
    Junior Member Carport Converter RA35GT's Avatar
    Join Date
    Nov 2005
    Location
    Western Australia
    Posts
    1,820

    Default Re: Filtering Tacho signal to 5v pulses

    Wouldn't a voltage divider with two resistors be easier?
    1977 RA35 Celica GT - I4 | 2007 GSV40R Aurion - V6
    Don't live life being scared of death, live in the fear of not truly living. RP 2012

  3. #3
    Gary Motorsport Inc. Too Much Toyota takai's Avatar
    Join Date
    Oct 2005
    Location
    Victoria
    Posts
    5,543

    Default Re: Filtering Tacho signal to 5v pulses

    Easier, yes. But the Zener provides a bit better overvoltage protection.
    -Chris | Garage takai - Breaking cars since 1998
    Sparky - AE86 IPRA Racer | RZN149 Hilux - Parts and Car Hauler
    I never saw a wild thing sorry for itself. A small bird will drop frozen dead from a bough without ever having felt sorry for itself. - D.H.Lawrence

  4. #4
    Is a Chief Engine Builder wilbo666's Avatar
    Join Date
    Sep 2005
    Location
    QLD
    Posts
    3,468

    Default Re: Filtering Tacho signal to 5v pulses

    Another option is to have the tacho signal drive an NPN and have a pull up to +5V on Atmel side (Or use the internal pull up...).



    Cheers
    Wilbo
    Wilbo's Wiki (Includes 2JZ-GTE Wiring, etc! )

    Wilbo's JZA80
    Wilbo's JZZ12

  5. #5
    Toymods Net Nazi Too Much Toyota river's Avatar
    Join Date
    Sep 2005
    Location
    NSW
    Posts
    7,061

    Default Re: Filtering Tacho signal to 5v pulses

    Hi,

    Just run it through an opto isolator. 12volt into the opto part and run your 5v off the transistor output. Depending on the opto device you use, you may need to run a shunt resistor to limit the current, as per any normal LED running on 12v.

    30mA is a good value for current through the LED on the opto, so you'll need to run a 470ohm resistor from the output of the tacho into the opto.

    Use something like the 4N27 device. You can find its data sheet on the web Here it is.....

    http://www.datasheetcatalog.org/data...ild/4N27-M.pdf

    If you're not sure how to connect/use the opto, here's a link witha few circuits to help you out...
    http://www.discovercircuits.com/O/opto.htm

    seeyuzz
    river
    The thinking man's clown and the drinking woman's sex symbol
    RA25GT - There is no substitute | 18R-G - Toyota's Dependable Masterpiece
    Toymods Car Club Treasurer, assistant Historic Plate Registrar & Forums Admin

  6. #6
    Gary Motorsport Inc. Too Much Toyota takai's Avatar
    Join Date
    Oct 2005
    Location
    Victoria
    Posts
    5,543

    Default Re: Filtering Tacho signal to 5v pulses

    Quote Originally Posted by wilbo666 View Post
    Another option is to have the tacho signal drive an NPN and have a pull up to +5V on Atmel side (Or use the internal pull up...).



    Cheers
    Wilbo
    Yeah, but surely the voltage limiting is easier?

    Quote Originally Posted by river View Post
    Hi,

    Just run it through an opto isolator. 12volt into the opto part and run your 5v off the transistor output. Depending on the opto device you use, you may need to run a shunt resistor to limit the current, as per any normal LED running on 12v.

    30mA is a good value for current through the LED on the opto, so you'll need to run a 470ohm resistor from the output of the tacho into the opto.

    Use something like the 4N27 device. You can find its data sheet on the web Here it is.....

    http://www.datasheetcatalog.org/data...ild/4N27-M.pdf

    If you're not sure how to connect/use the opto, here's a link witha few circuits to help you out...
    http://www.discovercircuits.com/O/opto.htm

    seeyuzz
    river
    Seems quite overly complex when all i have to do is drop the voltage from 12v to 5v.

    Tacho is currently spliced into the IGF pin on the ECU.
    -Chris | Garage takai - Breaking cars since 1998
    Sparky - AE86 IPRA Racer | RZN149 Hilux - Parts and Car Hauler
    I never saw a wild thing sorry for itself. A small bird will drop frozen dead from a bough without ever having felt sorry for itself. - D.H.Lawrence

  7. #7
    Toymods Net Nazi Too Much Toyota river's Avatar
    Join Date
    Sep 2005
    Location
    NSW
    Posts
    7,061

    Default Re: Filtering Tacho signal to 5v pulses

    Hi,

    Yeah, a single resistor and a 6pin chip can over complicate things.

    seeyuzz
    river
    The thinking man's clown and the drinking woman's sex symbol
    RA25GT - There is no substitute | 18R-G - Toyota's Dependable Masterpiece
    Toymods Car Club Treasurer, assistant Historic Plate Registrar & Forums Admin

  8. #8
    Gary Motorsport Inc. Too Much Toyota takai's Avatar
    Join Date
    Oct 2005
    Location
    Victoria
    Posts
    5,543

    Default Re: Filtering Tacho signal to 5v pulses

    A single resistor and a diode does nigh on exactly the same thing.

    Also the 4N27 has a ramped output, rather than a single pulse. Depends on the edge detection of the Arduino, but it could get quite finnicky.
    -Chris | Garage takai - Breaking cars since 1998
    Sparky - AE86 IPRA Racer | RZN149 Hilux - Parts and Car Hauler
    I never saw a wild thing sorry for itself. A small bird will drop frozen dead from a bough without ever having felt sorry for itself. - D.H.Lawrence

  9. #9
    Junior Member Too Much Toyota oldcorollas's Avatar
    Join Date
    Aug 2005
    Location
    sydney
    Posts
    12,496

    Default Re: Filtering Tacho signal to 5v pulses

    the opto isolates it tho.. so rather than relying on the zener to pull voltage down and save your arduino from smoke, the opto/NPN removes the possibility?

    how ramped is the tach pulse compared to the output of the other options?
    "I'm a Teaspoon, not a mechanic"
    "There is hardly anything in the world that a man can not make a little worse and sell a little cheaper" - John Ruskin (1819 - 1900)

    AU$TRALIA... come and stay and PAY and PAY!!! The moral high horse of the world!

  10. #10
    Toymods Net Nazi Too Much Toyota river's Avatar
    Join Date
    Sep 2005
    Location
    NSW
    Posts
    7,061

    Default Re: Filtering Tacho signal to 5v pulses

    Hi,

    Yes, the extra advantage of the opto is it isolates the system from 12V. If the zener goes AWOL you'll get 12V into the Arduino.

    seeyuzz
    river
    The thinking man's clown and the drinking woman's sex symbol
    RA25GT - There is no substitute | 18R-G - Toyota's Dependable Masterpiece
    Toymods Car Club Treasurer, assistant Historic Plate Registrar & Forums Admin

  11. #11
    Gary Motorsport Inc. Too Much Toyota takai's Avatar
    Join Date
    Oct 2005
    Location
    Victoria
    Posts
    5,543

    Default Re: Filtering Tacho signal to 5v pulses

    And if the resistor goes i lunch the opto... not much difference. The Arduino has polyfuses incase of overvolting.

    Also, getting the opto is a pain. Its either Farnell or RS components, and ill almost be paying more for postage than an entirely new Arduino.

    NPN is readily available. Not sure of the ramping characteristics though.
    -Chris | Garage takai - Breaking cars since 1998
    Sparky - AE86 IPRA Racer | RZN149 Hilux - Parts and Car Hauler
    I never saw a wild thing sorry for itself. A small bird will drop frozen dead from a bough without ever having felt sorry for itself. - D.H.Lawrence

  12. #12
    Junior Member Carport Converter RA35GT's Avatar
    Join Date
    Nov 2005
    Location
    Western Australia
    Posts
    1,820

    Default Re: Filtering Tacho signal to 5v pulses

    I used IGT as the input to my tacho corrector. On the UZ it was already 0-5v.
    1977 RA35 Celica GT - I4 | 2007 GSV40R Aurion - V6
    Don't live life being scared of death, live in the fear of not truly living. RP 2012

  13. #13
    Gary Motorsport Inc. Too Much Toyota takai's Avatar
    Join Date
    Oct 2005
    Location
    Victoria
    Posts
    5,543

    Default Re: Filtering Tacho signal to 5v pulses

    Interesting about IGT already being 5v, ill have to check what it is on the 2JZ ecu.

    NPN looks easy enough to implement, especially that they have added code to allow for interrupts on falling.

    Any suggestions for an NPN to handle a 5-12v input?
    -Chris | Garage takai - Breaking cars since 1998
    Sparky - AE86 IPRA Racer | RZN149 Hilux - Parts and Car Hauler
    I never saw a wild thing sorry for itself. A small bird will drop frozen dead from a bough without ever having felt sorry for itself. - D.H.Lawrence

  14. #14
    Toymods Net Nazi Too Much Toyota river's Avatar
    Join Date
    Sep 2005
    Location
    NSW
    Posts
    7,061

    Default Re: Filtering Tacho signal to 5v pulses

    Hi,

    Why not just use an open collector buffer? Run 12v into the device and tie the output to 5v with a resistor. That's simple and also keeps the unit isolated. You can use a TTl or CMOS open collector chip.

    seeyuzz
    river
    The thinking man's clown and the drinking woman's sex symbol
    RA25GT - There is no substitute | 18R-G - Toyota's Dependable Masterpiece
    Toymods Car Club Treasurer, assistant Historic Plate Registrar & Forums Admin

  15. #15
    Gary Motorsport Inc. Too Much Toyota takai's Avatar
    Join Date
    Oct 2005
    Location
    Victoria
    Posts
    5,543

    Default Re: Filtering Tacho signal to 5v pulses

    Because again, getting parts sucks. Farnell charge through the nose for their "service" and Jaycar stocks buggerall.
    -Chris | Garage takai - Breaking cars since 1998
    Sparky - AE86 IPRA Racer | RZN149 Hilux - Parts and Car Hauler
    I never saw a wild thing sorry for itself. A small bird will drop frozen dead from a bough without ever having felt sorry for itself. - D.H.Lawrence

Similar Threads

  1. Tacho tech
    By Hen in forum Tech and Conversions
    Replies: 45
    Last Post: 04-08-2009, 05:10 PM
  2. HELP: 1GGTE running slow, Error code 11.. what is it? *FIXED*
    By Jabtronic in forum Tech and Conversions
    Replies: 28
    Last Post: 31-01-2009, 02:05 PM
  3. Toyota diganostic error code, where can i find them?
    By MarkIIRx12 in forum Tech and Conversions
    Replies: 3
    Last Post: 19-03-2008, 01:42 PM
  4. 4 Cyl ---> 6 Cyl Tacho Swap.
    By Lambolica in forum Tech and Conversions
    Replies: 13
    Last Post: 30-01-2007, 10:36 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •