Sunday, December 29, 2013

Arduino Inductive Spark Plug Sensor Engine RPM Meter Shift Lights


Arduino Inductive Spark Plug Sensor Engine RPM Meter Shift Lights by Kostas Kokoras 


 Arduino Inductive Spark Plug Sensor Engine RPM Meter Shift Lights



[English]
It's an engine (car or motorbike) RPM-Meter with shift lights. It uses an inductive spark plug sensor to sense the sparks. The sensor needs a few (8-10) turns of one clone cable around the spark plug. The signal from the spark plug then drives a transistor which passes 5V pulses to the Schmit Trigger SN74LS14N and then to Pin 2 of Arduino. The Arduino code counts the pulses and then display the results to the two 7-segment displays. The number that is displayed X 100 gives you the RPM of the engine. When the RPM reaches a adjustable through the dip switch then starts to light on the shift lights.

[Ελληνικά]
Πρόκειτε για ένα στροφόμετρο κινητήρα (αυτοκινήτου, μηχανάκι, κ.α.) . Χρησιμοποιεί έναν επαγωγικό αισθητήρα στροφών, με τον οποίο ανιχνεύει την υψηλή τάση στο καλώδιο του μπουζί. Για να γίνει αυτό απαιτείται να υπάρχει ένα τύλιγμα 8-10 στροφών γύρω από το μπουζοκαλώδιο. Προσοχή το καλώδιο του τυλίγματος πρέπει να είναι μονόκλωνο. Κάθε φορά που έχουμε υψηλή τάση στο μπουζοκαλώδιο δημιουργείτε ένας παλμός που οδηγεί το τρανσίστορ ώστε να περάσει ένας παλμός 5V στο SN74LS14N (Schmitt Trigger) για τετραγωνοποίηση του παλμού, ο οποίος με την σειρά του οδειγήται στο Pin 2 του Arduino. Από εκεί και πέρα αναλαμβάνει το λογισμικό το οποίο μετράει του παλμούς, υπολογίζει τις στροφές ανα λεπτό και τις εμφανίζει στα στα 7-segment Led Displays. Ο αριθμός που εμφανίζεται Χ 100 μας δίχνει τις στροφές ανά λεπτό του κινητήρα. Με τα dip switches ρυθμίζεις στις πόσες στροφές θα ανάβουν τα LED του Shift Light.


The Inductive Spark Sensor


You can view the schematics here.

You can have the Arduino Code here.

Don't forget to visit my youtube channel here to check out my other Arduino videos.

NOTICE : Use all information in this page (hardware schematics, Arduino Code, etc) in your own risk.


50 comments:

  1. Very interesting RPM meter!
    I was wondering why u used a SN74LS14N and not go directly to the Arduino?

    ReplyDelete
    Replies
    1. Just for more stable and more rectangular pulses.

      Delete
  2. I think that this 100uF capacitor in schema need to be 100nF? and that schottky diode symbol is mean to be zener diode?

    ReplyDelete
    Replies
    1. It is an 100nF capacitor and it is a 5,1V zener diode.

      Delete
  3. i have followed all step that you write in this blog. But i have problem, my arduino port always can't be detected when i run serial monitor arduino. I can't fix it by my self. Could you help me, please ? :)

    ReplyDelete
    Replies
    1. Hi, the baud-rate of arduino serial monitor and the command " Serial.begin(baud-rate); " should be the same. e.g. 9600

      Delete
  4. Is the zener missing on the photo sensor1? The parts do not seem to match total in schematic? Thanks very much

    ReplyDelete
  5. Hi, I am very impressed with the inductive spark plug sensor. I was wondering if it can be used for a 2-stroke motor which gives a very high voltage output? Is there a code available for just the spark plug sensor? Thanks

    ReplyDelete
  6. Hi. Thanks for share your circuit,

    I'm working with this model , very fine!!!
    I think in photo #4 pin 1 must be pin 7 of sn74ls14n
    Photo: http://3.bp.blogspot.com/-wFHmtHn6vS8/UsCTLV6pM0I/AAAAAAAAAHU/dVX7zW5JamY/s1600/schmittrigger.jpg

    Capacitors are 1uF or 1nF? , sorry, i can´t distinguish

    Thank you very much

    ReplyDelete
  7. Dear Sir..!

    First i want say im really new to Arduino projects and Im really interest your projects "Arduino Inductive Spark Plug Sensor Engine RPM Meter Shift Lights"
    ..My problem is i cant fined " SN74LS14N" IC in my area..but i can find below IC's in my area.which one is most suitable for replace to above IC

    01. SN74LS32N (Quadruple 2-Input Positive-OR Gates)

    02. HD74LS14P (Hex Schmitt Trigger Inverters)

    03. SN74LS47N (BCD to 7-Segment Decoder/Driver )

    04. SN74LS273


    Pleas reply me as soon as sir,


    Thank you very much

    ReplyDelete
    Replies
    1. Hello Mr. Udana Gayan . For the SN74LS14N you can use HD74LS14P (Hex Schmitt Trigger Inverters) but you need to invert outputs. Both chips are complementary.

      Cheers

      Delete
    2. Hello Mr.Udana
      I check the datasheet for SN74LS14N and HD74LS14P and both have the same outputs they share everything ?
      may you explain why we should invert outputs on HD74LS14P
      thanks alot

      Delete
  8. What is SCR number connect to the 7 segment?

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. hi my name is pranav.
    i have problem with the inductive spark plug sensor.
    i connect the one led to the collector with 1k resistor but it doesn't blinking.
    please help me........

    ReplyDelete
  11. how to identify the output of a wire wounded on a spark plug.

    ReplyDelete
  12. i have facing the problem that i don't get the output from wire wounded on a spark plug wire.

    ReplyDelete
    Replies
    1. You need a one clone wire around spark plug, 8-10 turns. Try more turns if you don't get anything. Good luck! !

      Delete
  13. i tried upto 20 wire turns but it can't give output.
    how to check the the output of clone wire.
    the capacitor of 100nf is electrolytic or ceramic.

    ReplyDelete
    Replies
    1. i connect this type of capacitor.
      http://ecx.images-amazon.com/images/I/41uLexGseAL._SY300_.jpg
      is it ok.

      Delete
    2. The one you use is ceramic. It is not polyester. I dont know if its much of a difference. Look for polyester capacitor.

      Delete
  14. what is a clone wire ?
    please explain me.........

    ReplyDelete
  15. I mean a solid hook up wire like this
    http://www.jameco.com/Jameco/workshop/productnews/wire-cable-fig1.jpg

    DONT use stranded hook up wire like this
    http://www.jameco.com/Jameco/workshop/productnews/wire-cable-fig2.jpg

    ReplyDelete
  16. can you tell me how to check the output of wire wounded on spark plug wire?

    ReplyDelete
    Replies
    1. I dont know. What kind of engine do you have? What kind of spark plug? Because there are some with shield and you cant use this sensor.

      Delete
  17. Do you think we can use a 555 instead of the SN74LS14N ? then, how do you wire it?

    ReplyDelete
    Replies
    1. I think you can, I dont know how to wire it. Look for it.

      Delete
    2. Hi, I have built the circuit, no result. Can anyone confirm voltage from coil using multimeter please?

      Delete
  18. can you give me a working of inductive spark plug.......

    ReplyDelete
  19. Hi. sn74ls14n datasheet says ground must be to pin7 . You connected it to pin1. Where to connect it according to your second picture scheme ?

    ReplyDelete
  20. sir,pls help. i got some problem, i made those spark plug sensor exactly like u posted but the output of it realy noisy, then i replace it by schmitt trigger with IC NE555 that supplied by LM7805 but the output still noisy. this unstable current pickup cause of unstable power supply, no matter what ever kind of spark plug sensor i use the interrupt incorrectly. can u give me tips to solve this??

    ReplyDelete
  21. kalhspera file,katarxhn mprabo polu kalh doyleia,deuteron antimetwpizw merika problhmata me ta sxediagramata sou,an mporeis epikoinwnise mazi moy
    summonerfox96@gmail.com

    ReplyDelete
    Replies
    1. Eyxaristo gia ta kala sou sxolia. steile mou e-mail.
      kokoras.konstantinos@gmail.com

      Delete
  22. What should be the area of the cross section of the clone wire?

    ReplyDelete
  23. Hi, Konstantinos!
    Could you,pls, tell me: What should be the area of the cross section of the clone wire?

    ReplyDelete
  24. What is the series of zeinner diode you use?

    ReplyDelete
  25. Thanks for sharing but i still confuse with the arduino code that posted in the blog. Can you explain which arduino code that read analog signal from the spark plug cable?

    ReplyDelete
    Replies
    1. There is no analog reading. Sensor converts every spark to 5V pulse. Arduino counts the pulses and calculates the RPM. There is a variable called "pulsesPerRev" which in my case is equal to 1. it represents the sparks per engine cycle.

      Delete
  26. Hi, could you share a picture of the back side of the sensor1 picture?
    Also, is the 5.1 zener on the picture?

    ReplyDelete
  27. Hi kokoras, i just built one like yours, apply it on 100cc 4 stroke bike is working fine. But when apply it on 150cc 2 stroke honda nsr, sometimes arduino restart, serial monitor to pc is hang, LCD Character shows alot of letters and numbers. Seems like arduino catch alot of EMI (I use ferrite magnet already). Can you help me here? Thx.

    ReplyDelete