Author Topic: Tachometer for motorcycle enginge (single cylinder four stroke)  (Read 154 times)

Offline kamelryttarn

  • High Voltage Experimenter
  • **
  • Posts: 97
  • Karma: +0/-0
    • View Profile
A while ago I bought a motorcycle and even though there is not need for it, I thought I would make a small arduino-based "computer" for it to monitor different parameters and one thing that would be neat to have is tachometer to see the current rpm. My plan was to use the ignition pulse before the ignition coil. I took my Hantek 1008 oscilloscope and hooked it up and was very pleased with how the signal looked.  It was way cleaner than I had first thought it would be.

Some time later when I had a plan of how to construct it and also an embryo of arduino code for it I connected everything and things did not work as expected so I hooked up my oscilloscope again and this time things looked a lot different. Even though screenshots suggest the time base is the same it was not. The first time I had the software set too 500ms but then I zoomed in and since the actual bandwidth of the 1008 isn't very good I fooled myself a little bit when I looked at the pictures.

I now realize I need the clean up the signal before I send it to my optocoupler and my question is: What is the best way to filter out the noise/ringing without sacrificing too much of the part of the signal I need?

My idea was to basically construct a "speaker crossover" consisting of two capacitors and an inductor in between creating a third order CLC-filter. The two main components to filter out is the ~2kHz ringing when the coil discharges and a much larger in amplitude ringing or possibly "bounce" happening when the coil is charged and that one looks to be close to 17kHz according to my readings.

Offline petespaco

  • High Voltage Experimenter
  • **
  • Posts: 82
  • Karma: +2/-0
    • View Profile
    • French Creek Valley Activities
Re: Tachometer for motorcycle enginge (single cylinder four stroke)
« Reply #1 on: April 07, 2019, 06:05:31 PM »
How about a Schmitt trigger?  That would clean up the signal.
Google:
schmitt trigger IC sine to square wave
You can get a hex inverting schmitt trigger chip for USD $0.55 from Digikey.

But, if you can find a place farther back in the ignition system, maybe you can find a nice clean  square wave.  Off of the Hall Effect sensor, if it has one.   

I can't really tell from your pictures how high the excursions are.  As you probably know, the Arduino doesn't like voltages higher than 5.

If you really want to get into the whole "ECU" thing, go to:
https://speeduino.com/wiki/index.php/Speeduino

Pete Stanaitis
----------------

Offline kamelryttarn

  • High Voltage Experimenter
  • **
  • Posts: 97
  • Karma: +0/-0
    • View Profile
Re: Tachometer for motorcycle enginge (single cylinder four stroke)
« Reply #2 on: April 07, 2019, 07:22:42 PM »
Signal peak-to-peak is just over 20V so I need to get it down to TTL logic levels which I planned to do with an optocoupler.

There is a short negative spike that I thought I could just handle with a single diode. But the problem with the rest of the signal is that I can't just make it to square wave with a schmitt trigger because that would still give me something like 3-4 pulses for every falling edge in the ingition system and that would seriously mess up my arduino math (I use hardware interrupts so it will pick up every single hickup on the signal). Hence the idea to use some capacitors and chokes to smoothen out the signal.

Offline dexter

  • High Voltage Enthusiast
  • *
  • Posts: 19
  • Karma: +2/-0
    • View Profile
Re: Tachometer for motorcycle enginge (single cylinder four stroke)
« Reply #3 on: April 07, 2019, 09:52:08 PM »
Use a monostable with the time constant a bit higher than the length of the noise or a low pass RC between 2 Schmitt trigger gates with the time constant a bit higher than the length of the noise

High Voltage Forum

Re: Tachometer for motorcycle enginge (single cylinder four stroke)
« Reply #3 on: April 07, 2019, 09:52:08 PM »

 


* Recent Topics and Posts

post Easy access to optimal resonance frequency but the benefit is quite small
[Dual Resonant Solid State Tesla coils]
VNTC
May 21, 2019, 11:35:57 PM
post Re: Offgrid 48V solar to 24V battery setup
[Electronic circuits]
Mads Barnkob
May 21, 2019, 09:59:54 PM
post Re: General Oscilloscope Probing Techniques for (DR)SSTC h-bridge
[Beginners]
Mads Barnkob
May 21, 2019, 09:51:27 PM
post Re: ZVS Mazzilli circ with active gate driver - what causes ringing?
[Electronic circuits]
T3sl4co1l
May 21, 2019, 09:49:03 PM
post Re: ZVS Mazzilli circ with active gate driver - what causes ringing?
[Electronic circuits]
82026
May 21, 2019, 09:02:10 PM
post Re: DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
Vaclav
May 21, 2019, 08:59:57 PM
post Re: DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
May 21, 2019, 08:28:43 PM
post Re: Identification of unknown embedded computer, help needed.
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Mads Barnkob
May 21, 2019, 08:22:28 PM
post Re: DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
Vaclav
May 21, 2019, 06:21:37 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
May 21, 2019, 06:12:55 PM
post Re: DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
profdc9
May 21, 2019, 04:06:38 PM
post Re: DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
Vaclav
May 21, 2019, 03:56:56 PM
post Re: DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
Vaclav
May 21, 2019, 03:46:56 PM
post Re: DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
profdc9
May 21, 2019, 02:32:59 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
May 21, 2019, 06:12:18 AM
post Re: Offgrid 48V solar to 24V battery setup
[Electronic circuits]
profdc9
May 20, 2019, 11:30:34 PM
post DRSSTC design questions + project progress
[Dual Resonant Solid State Tesla coils]
Vaclav
May 20, 2019, 06:38:54 PM
post Re: General Oscilloscope Probing Techniques for (DR)SSTC h-bridge
[Beginners]
Teravolt
May 20, 2019, 06:33:49 PM
post Re: ZVS Mazzilli circ with active gate driver - what causes ringing?
[Electronic circuits]
82026
May 20, 2019, 02:27:59 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
hightemp1
May 20, 2019, 02:57:46 AM
post Re: ZVS Mazzilli circ with active gate driver - what causes ringing?
[Electronic circuits]
T3sl4co1l
May 20, 2019, 01:06:27 AM
post Re: ZVS Mazzilli circ with active gate driver - what causes ringing?
[Electronic circuits]
82026
May 19, 2019, 09:14:59 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
May 19, 2019, 06:40:41 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
flyrod
May 19, 2019, 04:04:12 PM
post Re: Offgrid 48V solar to 24V battery setup
[Electronic circuits]
Mads Barnkob
May 19, 2019, 11:24:46 AM
post Re: ZVS Mazzilli circ with active gate driver - what causes ringing?
[Electronic circuits]
flyrod
May 19, 2019, 03:22:54 AM
post Re: Are bleeder resistors necessary if I can easily discharge my capacitor?
[Spark gap Tesla coils]
profdc9
May 19, 2019, 03:18:52 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
May 18, 2019, 10:48:59 PM
post Re: Is one of these good?
[Dual Resonant Solid State Tesla coils]
Golddustpeak
May 18, 2019, 04:19:11 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
May 17, 2019, 10:57:17 PM
post Are bleeder resistors necessary if I can easily discharge my capacitor?
[Spark gap Tesla coils]
jpb133
May 17, 2019, 09:41:56 PM
post Re: Is one of these good?
[Dual Resonant Solid State Tesla coils]
Uspring
May 17, 2019, 12:41:17 PM
post ZVS Mazzilli circ with active gate driver - what causes ringing?
[Electronic circuits]
82026
May 16, 2019, 04:15:58 PM
post Re: Identification of unknown embedded computer, help needed.
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Fumeaux
May 16, 2019, 02:19:39 PM
post Re: Is one of these good?
[Dual Resonant Solid State Tesla coils]
Golddustpeak
May 16, 2019, 01:50:44 PM
post Re: Is one of these good?
[Dual Resonant Solid State Tesla coils]
Uspring
May 16, 2019, 12:17:01 PM
post Re: Identification of unknown embedded computer, help needed.
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Fumeaux
May 16, 2019, 08:45:15 AM
post Re: Identification of unknown embedded computer, help needed.
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Mads Barnkob
May 15, 2019, 11:49:59 PM
post Re: Identification of unknown embedded computer, help needed.
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Hydron
May 15, 2019, 10:51:33 PM
post Identification of unknown embedded computer, help needed.
[Computers, Microcontrollers, Programmable Logic, Interfaces and Displays]
Mads Barnkob
May 15, 2019, 09:35:41 PM
post Re: Is one of these good?
[Dual Resonant Solid State Tesla coils]
Golddustpeak
May 15, 2019, 05:07:20 PM
post Re: Mounting LCD CFL's around DRSSTC?
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
May 15, 2019, 12:46:33 PM
post Re: General Oscilloscope Probing Techniques for (DR)SSTC h-bridge
[Beginners]
Mads Barnkob
May 15, 2019, 10:08:11 AM
post Re: Is one of these good?
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
May 15, 2019, 10:04:59 AM
post General Oscilloscope Probing Techniques for (DR)SSTC h-bridge
[Beginners]
L_Mangold
May 15, 2019, 12:42:46 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
hightemp1
May 14, 2019, 11:28:43 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
badpeter
May 14, 2019, 09:58:28 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
hightemp1
May 14, 2019, 08:35:28 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
badpeter
May 14, 2019, 07:41:48 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
hightemp1
May 14, 2019, 06:05:25 PM

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30