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

Offline kamelryttarn

  • High Voltage Technician
  • ***
  • Posts: 100
  • 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 Technician
  • ***
  • Posts: 118
  • Karma: +8/-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 Technician
  • ***
  • Posts: 100
  • 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: 25
  • 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 Re: adventures in homemade flyback bobbins.
[Transformer (ferrite core)]
ElectroXa
Today at 02:22:09 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
August 19, 2019, 09:08:12 PM
post Re: Drsstc 3
[Dual Resonant Solid State Tesla coils]
Netzpfuscher
August 19, 2019, 02:27:06 PM
post Flashing light prize 2019
[Electronic circuits]
Avalanche
August 19, 2019, 02:12:41 PM
post Re: Drsstc 3
[Dual Resonant Solid State Tesla coils]
Hydron
August 19, 2019, 10:44:35 AM
post Re: Drsstc 3
[Dual Resonant Solid State Tesla coils]
Netzpfuscher
August 19, 2019, 07:37:07 AM
post Re: Drsstc 3
[Dual Resonant Solid State Tesla coils]
oneKone
August 19, 2019, 03:29:24 AM
post Re: My second DRSSTC
[Dual Resonant Solid State Tesla coils]
erdal
August 18, 2019, 05:05:24 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
Bert911
August 18, 2019, 01:04:35 PM
post Re: You would think this would be easy to find.
[Spark gap Tesla coils]
thedoc298
August 17, 2019, 11:09:16 PM
post Re: You would think this would be easy to find.
[Spark gap Tesla coils]
thedoc298
August 17, 2019, 11:00:32 PM
post Re: You would think this would be easy to find.
[Spark gap Tesla coils]
Fumeaux
August 17, 2019, 09:44:07 PM
post You would think this would be easy to find.
[Spark gap Tesla coils]
thedoc298
August 17, 2019, 09:01:00 PM
post Re: Twin System Build
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
August 17, 2019, 08:06:42 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
Lane
August 17, 2019, 10:45:26 AM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
Lane
August 17, 2019, 06:21:45 AM
post Re: My second DRSSTC
[Dual Resonant Solid State Tesla coils]
Hydron
August 17, 2019, 12:59:20 AM
post Re: Twin System Build
[Dual Resonant Solid State Tesla coils]
fnordest
August 17, 2019, 12:18:48 AM
post Re: Drsstc 3
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
August 16, 2019, 10:34:46 PM
post Re: Teardown of Danfoss VLT6000 4kW Variable Frequency Drive
[Electronic circuits]
Mads Barnkob
August 16, 2019, 10:26:19 PM
post Re: My second DRSSTC
[Dual Resonant Solid State Tesla coils]
Mads Barnkob
August 16, 2019, 10:19:18 PM
post Re: [Development] Project of an SSTC driver.
[Solid state Tesla coils]
Mads Barnkob
August 16, 2019, 10:07:31 PM
post Re: Suitable capacitors and switches? 10kV
[Capacitor banks]
T3sl4co1l
August 16, 2019, 09:28:35 PM
post Re: Suitable capacitors and switches? 10kV
[Capacitor banks]
ElectroXa
August 16, 2019, 09:17:04 PM
post Re: ESAB Power TIG 200 Welder Teardown
[Electronic circuits]
T3sl4co1l
August 16, 2019, 09:14:36 PM
post ESAB Power TIG 200 Welder Teardown
[Electronic circuits]
Mads Barnkob
August 16, 2019, 08:03:18 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
August 16, 2019, 01:49:53 PM
post Suitable capacitors and switches? 10kV
[Capacitor banks]
MrFox
August 16, 2019, 12:21:36 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
Lane
August 16, 2019, 11:22:45 AM
post Re: Small Phase change build R600a
[General chatting]
DashApple
August 15, 2019, 06:23:40 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
rikkitikkitavi
August 15, 2019, 06:17:55 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
Lane
August 15, 2019, 01:51:04 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
petespaco
August 14, 2019, 07:05:57 PM
post Re: Help for people buying the "12-48 Volt 1800/2500 Watt ZVS induction Heater"
[Electronic circuits]
Bert911
August 14, 2019, 03:42:34 PM
post Re: Van de Graaf is leaking charge
[Static electricity]
Patric
August 14, 2019, 02:56:49 PM
post Re: Van de Graaf is leaking charge
[Static electricity]
ElectroXa
August 14, 2019, 01:42:21 PM
post Re: My second DRSSTC
[Dual Resonant Solid State Tesla coils]
erdal
August 14, 2019, 12:53:10 PM
post Van de Graaf is leaking charge
[Static electricity]
Patric
August 14, 2019, 09:22:21 AM
post Re: Drsstc 3
[Dual Resonant Solid State Tesla coils]
oneKone
August 14, 2019, 04:39:11 AM
post Re: MMC orientation and variac
[Spark gap Tesla coils]
thedoc298
August 13, 2019, 07:10:31 PM
post Re: MMC orientation and variac
[Spark gap Tesla coils]
MRMILSTAR
August 13, 2019, 05:17:23 AM
post MMC orientation and variac
[Spark gap Tesla coils]
thedoc298
August 12, 2019, 09:54:35 PM
post Re: My second DRSSTC
[Dual Resonant Solid State Tesla coils]
erdal
August 12, 2019, 08:40:16 PM
post Re: Small Phase change build R600a
[General chatting]
Hydron
August 12, 2019, 07:27:23 PM
post Re: Teardown of Danfoss VLT6000 4kW Variable Frequency Drive
[Electronic circuits]
klugesmith
August 12, 2019, 09:18:15 AM
post Re: Teardown of Danfoss VLT6000 4kW Variable Frequency Drive
[Electronic circuits]
shrad
August 12, 2019, 09:06:34 AM
post Re: Teardown of Danfoss VLT6000 4kW Variable Frequency Drive
[Electronic circuits]
klugesmith
August 12, 2019, 09:02:38 AM
post Re: A problem solved with hand tools
[General chatting]
klugesmith
August 12, 2019, 08:29:20 AM
post Re: Ebay [US]: MITSUBISHI CM300 1200V-300A IGBT (30$ a piece)
[Sell / Buy / Trade]
oneKone
August 12, 2019, 05:25:24 AM
post Re: Ebay [US]: MITSUBISHI CM300 1200V-300A IGBT (30$ a piece)
[Sell / Buy / Trade]
acobaugh
August 10, 2019, 08:14:35 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