MEGAsquirt A place to collectively sort out this megasquirt gizmo

adding a knock sensor to DIYPnP 1.6

Thread Tools
 
Search this Thread
 
Old 01-17-2012, 12:30 PM
  #61  
Baz
Junior Member
 
Baz's Avatar
 
Join Date: Jun 2009
Posts: 126
Total Cats: 4
Default

Originally Posted by yank
Just ordered a Turboxs knocklite last night. In for this solution. Thanks for doing the leg work Baz.
You're welcome. I just hope we can get it all working, its so close......
Barry
Baz is offline  
Old 01-17-2012, 02:42 PM
  #62  
Elite Member
iTrader: (10)
 
Jeff_Ciesielski's Avatar
 
Join Date: Oct 2008
Location: Rhode Island
Posts: 1,770
Total Cats: 31
Default

You could try something like this:



When the knocklite pulls down the base of the PNP, it passes its current through to the NPN's base and charges the capacitor. While the NPN is active, it drains the pullup (the MS gets the low/knock signal) and is kept open for a short time by the cap even after the knocklite returns to a positive voltage (allowing the MS to grab the signal)

The graph on the right is the base of the PNP getting pulled down, the graph on the left is the output the MS would see.
Attached Thumbnails adding a knock sensor to DIYPnP 1.6-knocklite_delay.png   adding a knock sensor to DIYPnP 1.6-pushswitch.png  
Jeff_Ciesielski is offline  
Old 01-17-2012, 03:07 PM
  #63  
Baz
Junior Member
 
Baz's Avatar
 
Join Date: Jun 2009
Posts: 126
Total Cats: 4
Default

Thanks Jeff appreciate that, could something like this be built in the proto area of the diypnp? I will try to get someone here in the UK to help me build it (give me something mechanical and I'm OK!).
Barry
Baz is offline  
Old 01-17-2012, 03:12 PM
  #64  
Elite Member
iTrader: (10)
 
Jeff_Ciesielski's Avatar
 
Join Date: Oct 2008
Location: Rhode Island
Posts: 1,770
Total Cats: 31
Default

Originally Posted by Baz
Thanks Jeff appreciate that, could something like this be built in the proto area of the diypnp? I will try to get someone here in the UK to help me build it (give me something mechanical and I'm OK!).
Barry
Absolutely.

You might have to play with the values a bit to get it to hold down the signal for the correct amount of time. I used a 4.7k pullup on the MS, a 100uf cap, and a 100 ohm between the cap and ground.
Jeff_Ciesielski is offline  
Old 01-17-2012, 03:25 PM
  #65  
Baz
Junior Member
 
Baz's Avatar
 
Join Date: Jun 2009
Posts: 126
Total Cats: 4
Default

Brilliant, knowing the knocklite offers 2 warnings, amber for light knock and red for severe knock I suppose the information I now need from TurboXS is:

What is the 5v - 0v pull down time for both warnings.

We would also need to know the minimum 5v - 0v pull down time MS needs to accept the drop in voltage.

If we know these 2 things then I assume the circuit could be built to allow 2 different timing pull rates, say 5 degrees for amber and 10 degrees for severe?

Does that make sense?
Barry
Baz is offline  
Old 01-17-2012, 05:12 PM
  #66  
Baz
Junior Member
 
Baz's Avatar
 
Join Date: Jun 2009
Posts: 126
Total Cats: 4
Default

Does anyone know the minimum time that MS2 recognises the 5v - 0v pull down in the knock circuit to activate timing retard?
Baz is offline  
Old 01-17-2012, 05:30 PM
  #67  
Elite Member
iTrader: (1)
 
richyvrlimited's Avatar
 
Join Date: Jun 2006
Location: Warrington/Birmingham
Posts: 2,642
Total Cats: 42
Default

Not a clue, but it's definitely worth asking on MSExtra, those guys must know for sure!
richyvrlimited is offline  
Old 01-18-2012, 11:06 AM
  #68  
Supporting Vendor
 
Matt Cramer's Avatar
 
Join Date: Sep 2006
Posts: 2,332
Total Cats: 67
Default

Originally Posted by Baz
Does anyone know the minimum time that MS2 recognises the 5v - 0v pull down in the knock circuit to activate timing retard?
A good safe minimum time would be 10 to 15 ms.
__________________
Matt Cramer
www.diyautotune.com
Matt Cramer is offline  
Old 01-18-2012, 11:43 AM
  #69  
Baz
Junior Member
 
Baz's Avatar
 
Join Date: Jun 2009
Posts: 126
Total Cats: 4
Default

Thanks Matt. Would you know what causes the MS to pull the timing in increments, ie 3,6 or 10 degrees, is it the time delay between 5v-0v-5v or is it dependant on the level of the voltage drop? I assume it is the time that there is zero volts?
Barry
Baz is offline  
Old 01-18-2012, 03:25 PM
  #70  
Supporting Vendor
 
Matt Cramer's Avatar
 
Join Date: Sep 2006
Posts: 2,332
Total Cats: 67
Default

It keeps backing the timing off until it stops seeing knock or hits the maximum knock retard. See this link for details.

http://www.msextra.com/doc/ms2extra/...ware.htm#knock
__________________
Matt Cramer
www.diyautotune.com
Matt Cramer is offline  
Old 01-18-2012, 03:48 PM
  #71  
Baz
Junior Member
 
Baz's Avatar
 
Join Date: Jun 2009
Posts: 126
Total Cats: 4
Default

Thank you Matt....
Baz is offline  
Old 01-21-2012, 01:11 AM
  #72  
Elite Member
iTrader: (10)
 
Jeff_Ciesielski's Avatar
 
Join Date: Oct 2008
Location: Rhode Island
Posts: 1,770
Total Cats: 31
Default

Better idea:

Invert the output from a 555 timer with a transistor and a pullup:


1k resistor and 10uF cap should net 10ms output.
Attached Thumbnails adding a knock sensor to DIYPnP 1.6-knocklite_delay_555.jpg  
Jeff_Ciesielski is offline  
Old 01-21-2012, 01:43 AM
  #73  
Baz
Junior Member
 
Baz's Avatar
 
Join Date: Jun 2009
Posts: 126
Total Cats: 4
Default

Brilliant Jeff!! I will get the parts and build this on a circuit board outside of the MS to confirm it all works then I can build it in the proto area. Thanks for your help bud..
Barry
Baz is offline  
Old 01-26-2012, 07:16 AM
  #74  
Baz
Junior Member
 
Baz's Avatar
 
Join Date: Jun 2009
Posts: 126
Total Cats: 4
Default

It Works, see https://www.miataturbo.net/showthrea...583#post826583
Baz is offline  
Old 06-22-2012, 12:30 PM
  #75  
Junior Member
iTrader: (2)
 
TheDriver's Avatar
 
Join Date: Oct 2011
Posts: 207
Total Cats: -14
Default

Do you guys recommend using megasquirts automatic knock retard timing feature? Retards 2 degrees at first knock then 1 degree for each additional knock

Thanks
TheDriver is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
StratoBlue1109
Miata parts for sale/trade
21
09-30-2018 01:09 PM
Trent
WTB
2
10-01-2015 12:15 PM
The Gleas
MEGAsquirt
3
10-01-2015 09:30 AM



Quick Reply: adding a knock sensor to DIYPnP 1.6



All times are GMT -4. The time now is 08:05 PM.