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

Offline RocketScienceSmurf

  • High Voltage Technician
  • ***
  • Posts: 125
  • 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 Engineer
  • ****
  • Posts: 271
  • Karma: +12/-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 RocketScienceSmurf

  • High Voltage Technician
  • ***
  • Posts: 125
  • 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: 32
  • 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

Offline RocketScienceSmurf

  • High Voltage Technician
  • ***
  • Posts: 125
  • Karma: +0/-0
    • View Profile
Re: Tachometer for motorcycle enginge (single cylinder four stroke)
« Reply #4 on: August 28, 2019, 08:33:57 AM »
Long overdue update to this project. I have been experimenting with a series choke on the ignition pulse and things are looking really good. I also realized that the reason the signal looked so clear at first was that I hit the "roof" of my oscilloscope input voltage. When I hooked everything up with a 20:1 passive attenuator I realized the voltage was actually ~400V which explains my shot optocoupler and constant current driver I was using.

Having realized this I started looking for ways to dampen the ringing and get voltage levels way down. The only thing I had to try at first was a Hammond choke bought for another project. It is specd at 330mH and when I hooked it up with a 680 Ohm resistor to ground I got REALLY nice pulses but the fall time looked a bit too filtered and it is a very bulky choke so I bought a couple of axial ones, one 100mH and one 330uH and tried them out yesterday. They do the trick but I was surprised at how big difference it was between the Hammond one that looks like small transformer and the axial 100mH. The inductance value is about one third but the signal show much more ringing than the big iron core choke. Could this be due to the difference of core material?

The axial one is a Vishay IHD3EB104L

The pic 100mh inductor.gif  shows about 400V but this is due to a software bug and the actual voltage is about 40V
« Last Edit: August 28, 2019, 08:36:25 AM by kamelryttarn »

Offline shrad

  • High Voltage Experimenter
  • **
  • Posts: 54
  • Karma: +1/-0
    • View Profile
Re: Tachometer for motorcycle enginge (single cylinder four stroke)
« Reply #5 on: August 28, 2019, 09:59:34 AM »
hi

I would have a look at a simple wire that you would coil around the ignition wire, like under ten turns, let one end open and the second end to your circuit referenced to ground

you'll have a pulse between the wire end and ground which should be more manageable than 400v, and you can play with the number of turns to get different voltages

Offline RocketScienceSmurf

  • High Voltage Technician
  • ***
  • Posts: 125
  • Karma: +0/-0
    • View Profile
Re: Tachometer for motorcycle enginge (single cylinder four stroke)
« Reply #6 on: August 28, 2019, 11:09:34 AM »
The signal is quite good with this setup. Here is a pic of the signal at the optocoupler. As you can see there is no need for more filtration so I am happy with the setup. I was just surprised with the big difference between the two different types and sizes of inductors. I still don't fully understand what they do and how they work so it is very educational for me to try different components and analyze the different results and try to learn from it. Hopefully the results can also help others.
« Last Edit: August 28, 2019, 01:01:42 PM by kamelryttarn »

Offline shrad

  • High Voltage Experimenter
  • **
  • Posts: 54
  • Karma: +1/-0
    • View Profile
Re: Tachometer for motorcycle enginge (single cylinder four stroke)
« Reply #7 on: August 28, 2019, 11:24:04 AM »
I understand your point, but I would still explore other solutions and especially some that are simpler and require less components, which also means less failure possible and less expensive design

a wire wrapped around the ignition cable will pick up the pulse signal directly at the output of the spark bobbin via capacitive and magnetic coupling and the level should be in the couple volts range at maximum, which could even drive your optocoupler directly with a diode back to back with the optocoupler LED, if lucky

the shaping then can occur at the transistor side of the opto, and there are even optocouplers with a Schmidt trigger output built-in which would simplify your design neven more

just my two cents to suggest alternatives

High Voltage Forum

Re: Tachometer for motorcycle enginge (single cylinder four stroke)
« Reply #7 on: August 28, 2019, 11:24:04 AM »

 


* Recent Topics and Posts

post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
MRMILSTAR
Today at 05:18:31 AM
post Re: IKY150N65EH7, is it good for DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
Today at 04:34:52 AM
post Re: How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
klugesmith
Today at 04:11:53 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
Today at 04:02:44 AM
post Re: 100kHz CM300 gate resistor choice
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
Today at 03:35:52 AM
post Re: How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
MRMILSTAR
April 17, 2024, 11:54:05 PM
post 100kHz CM300 gate resistor choice
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
April 17, 2024, 11:37:16 PM
post Re: Has anyone tried to build a TMT (extra coil) Tesla coil?
[General Chat]
Michelle_
April 17, 2024, 02:29:30 AM
post Re: Has anyone tried to build a TMT (extra coil) Tesla coil?
[General Chat]
MRMILSTAR
April 16, 2024, 11:56:12 PM
post Re: How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
klugesmith
April 16, 2024, 11:46:57 PM
post Re: How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
Bobakman
April 16, 2024, 10:40:11 PM
post Has anyone tried to build a TMT (extra coil) Tesla coil?
[General Chat]
Michelle_
April 16, 2024, 09:21:39 PM
post Re: Medium Drsstc question
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
April 16, 2024, 08:04:16 PM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
April 16, 2024, 06:48:05 PM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
Michelle_
April 16, 2024, 06:18:40 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 16, 2024, 06:14:53 PM
post Re: 3D printed mini-slayer: world's weakest tesla coil
[Solid State Tesla Coils (SSTC)]
unrealcrafter2
April 16, 2024, 05:44:44 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
MRMILSTAR
April 16, 2024, 03:12:12 PM
post Re: Drsstc voltage spike question
[Dual Resonant Solid State Tesla coils (DRSSTC)]
unrealcrafter2
April 16, 2024, 02:28:01 PM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Saattvik24
April 16, 2024, 01:56:26 PM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 16, 2024, 06:50:47 AM
post Re: IKY150N65EH7, is it good for DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Anders Mikkelsen
April 16, 2024, 04:57:47 AM
post Re: IKY150N65EH7, is it good for DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
ethanwu0131
April 16, 2024, 03:40:53 AM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
April 16, 2024, 01:31:17 AM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
Michelle_
April 15, 2024, 11:19:52 PM
post 3D printed mini-slayer: world's weakest tesla coil
[Solid State Tesla Coils (SSTC)]
Michelle_
April 15, 2024, 11:10:19 PM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
alan sailer
April 15, 2024, 11:04:19 PM
post Re: Ignitron trigger drive ideas?
[Capacitor Banks]
Twospoons
April 15, 2024, 11:02:05 PM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
Michelle_
April 15, 2024, 10:57:59 PM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
Michelle_
April 15, 2024, 10:55:46 PM
post Re: Return of Electronics Flea Market in "Silicon Valley"
[Sell / Buy / Trade]
klugesmith
April 15, 2024, 10:37:32 PM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Saattvik24
April 15, 2024, 10:05:00 PM
post Re: How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
MRMILSTAR
April 15, 2024, 09:28:50 PM
post Ignitron trigger drive ideas?
[Capacitor Banks]
klugesmith
April 15, 2024, 09:06:42 PM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
April 15, 2024, 08:46:32 PM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
Benbmw
April 15, 2024, 08:38:39 PM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
sky-guided
April 15, 2024, 08:23:40 PM
post How to get a GE Yokogawa AB40 Sync Scope to rotate without a powerplant.
[Laboratories, Equipment and Tools]
Bobakman
April 15, 2024, 06:43:23 PM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
April 15, 2024, 06:29:10 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 15, 2024, 05:21:53 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 15, 2024, 05:15:33 AM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 15, 2024, 04:07:54 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
davekni
April 15, 2024, 03:49:03 AM
post Re: Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
alan sailer
April 14, 2024, 09:46:30 PM
post Small-ish 3D printed SGTC via cheap ZVS flyback build, humbly asking a couple ?s
[Spark Gap Tesla Coils (SGTC)]
Michelle_
April 14, 2024, 07:31:00 PM
post Re: First DRSSTC SKM100
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Saattvik24
April 14, 2024, 02:26:19 PM
post Re: mg75q2ys40 IGBT
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
April 14, 2024, 07:20:54 AM
post Re: IKY150N65EH7, is it good for DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
April 14, 2024, 07:18:20 AM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
Michelle_
April 13, 2024, 06:46:40 AM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
Michelle_
April 13, 2024, 04:18:42 AM
post Re: Upper and Lower Explosive Limits on Confined Flammable Vapors at -79 C.
[General Chat]
alan sailer
April 13, 2024, 03:24:20 AM
post Re: Game changing tesla coil secondary winding suggestions
[General Chat]
alan sailer
April 13, 2024, 03:20:46 AM
post Game changing tesla coil secondary winding suggestions
[General Chat]
Michelle_
April 13, 2024, 03:13:22 AM
post Re: Capacitor Blowout
[Sell / Buy / Trade]
lbattraw
April 12, 2024, 09:14:58 PM
post mg75q2ys40 IGBT
[Dual Resonant Solid State Tesla coils (DRSSTC)]
thedark
April 12, 2024, 08:40:18 PM
post Re: UD 2.7 OCD LED stays on, no output during inital test
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 12, 2024, 07:20:30 PM
post Re: Mosfet Buffer Stage Questions
[Beginners]
davekni
April 12, 2024, 07:12:43 PM
post IKY150N65EH7, is it good for DRSSTC
[Dual Resonant Solid State Tesla coils (DRSSTC)]
ethanwu0131
April 12, 2024, 04:47:33 PM
post Re: UD 2.7 OCD LED stays on, no output during inital test
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Admiral Aaron Ravensdale
April 12, 2024, 11:43:36 AM
post Mosfet Buffer Stage Questions
[Beginners]
Egg
April 12, 2024, 12:49:02 AM
post Re: UD 2.7 OCD LED stays on, no output during inital test
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 12, 2024, 12:41:16 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 12, 2024, 12:22:41 AM
post Re: Capacitor Blowout
[Sell / Buy / Trade]
Michelle_
April 11, 2024, 10:45:53 PM
post Re: UD 2.7 OCD LED stays on, no output during inital test
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Admiral Aaron Ravensdale
April 11, 2024, 07:39:30 PM
post Re: UD 2.7 OCD LED stays on, no output during inital test
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
April 11, 2024, 07:24:52 PM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
sky-guided
April 11, 2024, 06:09:30 PM
post UD 2.7 OCD LED stays on, no output during inital test
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Admiral Aaron Ravensdale
April 11, 2024, 12:55:16 PM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
April 11, 2024, 03:40:00 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
sky-guided
April 11, 2024, 03:05:07 AM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
Michelle_
April 11, 2024, 02:57:33 AM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
alan sailer
April 11, 2024, 01:44:32 AM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
Michelle_
April 11, 2024, 01:31:40 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
OmGigaTron
April 11, 2024, 01:11:00 AM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
alan sailer
April 11, 2024, 12:58:52 AM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
Michelle_
April 11, 2024, 12:31:37 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
April 11, 2024, 12:30:21 AM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
alan sailer
April 10, 2024, 11:41:46 PM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
Mads Barnkob
April 10, 2024, 11:33:32 PM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
Michelle_
April 10, 2024, 10:41:33 PM
post Re: Tesla coil safety questions, risk analysis quantified
[Beginners]
MRMILSTAR
April 10, 2024, 10:31:31 PM
post Tesla coil safety questions, risk analysis quantified
[Beginners]
Michelle_
April 10, 2024, 09:56:35 PM
post Re: Drsstc voltage spike question
[Dual Resonant Solid State Tesla coils (DRSSTC)]
unrealcrafter2
April 10, 2024, 08:59:26 PM
post Re: Drsstc voltage spike question
[Dual Resonant Solid State Tesla coils (DRSSTC)]
markus
April 10, 2024, 06:35:30 PM
post Re: Drsstc voltage spike question
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
April 10, 2024, 05:35:14 PM
post Medium Drsstc question
[Dual Resonant Solid State Tesla coils (DRSSTC)]
unrealcrafter2
April 10, 2024, 03:07:02 PM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Michelle_
April 10, 2024, 03:42:12 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Michelle_
April 10, 2024, 03:41:04 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
sky-guided
April 10, 2024, 02:50:23 AM
post Re: DRSSTC V1 using BSM1500
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Unrealeous
April 10, 2024, 01:32:17 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
OmGigaTron
April 10, 2024, 01:26:29 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
OmGigaTron
April 10, 2024, 01:18:35 AM
post Re: Big Coil Big Sparks
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Mads Barnkob
April 09, 2024, 07:34:19 PM
post Re: DRSSTC V1 using BSM1500
[Dual Resonant Solid State Tesla coils (DRSSTC)]
flyingperson23
April 09, 2024, 06:14:27 PM
post Re: CM400 Induction Heater
[Electronic Circuits]
markus
April 09, 2024, 06:08:53 PM
post Re: DRSSTC V1 using BSM1500
[Dual Resonant Solid State Tesla coils (DRSSTC)]
markus
April 09, 2024, 05:15:19 PM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Michelle_
April 09, 2024, 05:11:04 PM
post Re: Big Coil Big Sparks
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Benjamin Lockhart
April 09, 2024, 06:32:16 AM
post DRSSTC V1 using BSM150
[Dual Resonant Solid State Tesla coils (DRSSTC)]
Unrealeous
April 09, 2024, 04:04:47 AM
post Re: Plasma Torid - Class E Self Resonant Dual/Stereo - Plasma Torid Build
[Dual Resonant Solid State Tesla coils (DRSSTC)]
alan sailer
April 09, 2024, 03:27:11 AM
post Re: Big Coil Big Sparks
[Dual Resonant Solid State Tesla coils (DRSSTC)]
davekni
April 09, 2024, 03:25:47 AM

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 
SimplePortal 2.3.6 © 2008-2014, SimplePortal