No username? Register here.
  #1  
Old 15-06-2017, 11:29 AM
jonbills's Avatar
jonbills jonbills is online now
Z Club member
Fifth gear
 
Join Date: Sep 2005
Location: M6
Posts: 2,362
Member 254
Knock sensor

I've started building a knock sensor, mainly for fun, but inspired by wanting to know if my engine is pinking or worse.
It's based on an Arduino uno kit with a Hyundai Accent knock sensor.
So far, if progressively lights 3 LEDs, depending on force of the 'knock'.
https://youtu.be/L48oXoT2nMo

Next step is to add a potentiometer so I can dynamically change the force thresholds that it lights the LEDs at and then attach it to the engine and see what happens with it running.

How many on here are have done Arduino projects? Any Z related?
__________________
1974 260z
Reply With Quote
  #2  
Old 15-06-2017, 01:43 PM
Paul_S's Avatar
Paul_S Paul_S is online now
Z Club member
Fourth gear
 
Join Date: Jan 2007
Location: Nr Ashford, Kent
Posts: 704
Member 408
Very cool!

I'm playing with the 370Z stereo steering wheel controls changing tracks, play/pause, etc. on my tablet. That's using a Teensy.
__________________

Reply With Quote
  #3  
Old 15-06-2017, 02:09 PM
jonbills's Avatar
jonbills jonbills is online now
Z Club member
Fifth gear
 
Join Date: Sep 2005
Location: M6
Posts: 2,362
Member 254
Quote:
Originally Posted by Paul_S View Post
Very cool!

I'm playing with the 370Z stereo steering wheel controls changing tracks, play/pause, etc. on my tablet. That's using a Teensy.


I hadn't heard of Teensy - are you using an ARM one? What made you choose it over Arduino etc?
__________________
1974 260z
Reply With Quote
  #4  
Old 15-06-2017, 02:57 PM
Paul_S's Avatar
Paul_S Paul_S is online now
Z Club member
Fourth gear
 
Join Date: Jan 2007
Location: Nr Ashford, Kent
Posts: 704
Member 408
It's not ARM (I think!) It's based on Arduiono but is much smaller and can emulate keyboards, mice, joysticks, serial, etc. out of the box.

It's a neat little thing that is very easy to hide away in the dash.

I got one to play with a long time ago and invented this use for it!


Edit: I just checked, it is ARM. I'd obviously forgotten that!
__________________


Last edited by Paul_S; 15-06-2017 at 04:09 PM..
Reply With Quote
  #5  
Old 15-06-2017, 06:05 PM
Russell's Avatar
Russell Russell is offline
Z Club member
Third gear
 
Join Date: Jul 2012
Location: Billingshurst
Posts: 265
Member 959
Love an Arduino!

I'm using a small colour screen that will hide in one of the switch blanks and connect to all the error sources on the 1JZ ECU so that I will be able to see Engine light, Oil Pressure, Oil Level etc. etc. in the correct pictoral format as you would on a modern car.
Reply With Quote
  #6  
Old 15-06-2017, 10:57 PM
jonbills's Avatar
jonbills jonbills is online now
Z Club member
Fifth gear
 
Join Date: Sep 2005
Location: M6
Posts: 2,362
Member 254
Quote:
Originally Posted by Russell View Post
Love an Arduino!



I'm using a small colour screen that will hide in one of the switch blanks and connect to all the error sources on the 1JZ ECU so that I will be able to see Engine light, Oil Pressure, Oil Level etc. etc. in the correct pictoral format as you would on a modern car.


That sounds smart - does it cycle round the those things or show them all at the same time? How's it talking to the ecu? Is it obd?
__________________
1974 260z
Reply With Quote
  #7  
Old 15-06-2017, 11:00 PM
Paul_S's Avatar
Paul_S Paul_S is online now
Z Club member
Fourth gear
 
Join Date: Jan 2007
Location: Nr Ashford, Kent
Posts: 704
Member 408
Nice!
__________________

Reply With Quote
  #8  
Old 15-06-2017, 11:14 PM
Russell's Avatar
Russell Russell is offline
Z Club member
Third gear
 
Join Date: Jul 2012
Location: Billingshurst
Posts: 265
Member 959
Quote:
Originally Posted by jonbills View Post
That sounds smart - does it cycle round the those things or show them all at the same time? How's it talking to the ecu? Is it obd?


It really got cracking with it yet, just thinking about the code which is simple.

The screen has an sd card which can display picture files stored on it.

The ECU has a separate wire for each "error", each of which is an earth.

The Arduino detects a pin being pulled to earth and displays the relevant error by displaying the appropriate picture file.

Will probably set it to cycle if multiple pins are earthed at once.

It will either be off or display Z logo of some form when no errors are reported.

An led in front of me will light when any errors occur which will make me look at the screen for the issue.

I could go nuts and add engine temp, fuel level and other things but no point making it more complicated than it has to be.

The stereo has a clock, boost gauge will go where the clock is, boost controller by my knees, still deciding on whether to go for a round wideband afr or a digital one but everything else I would need to know will already be displayed somewhere and as subtle as possible so sitting in the drivers seat doesn't give away what's under the Bonnet until the key is turned.



Sent from my iPhone using Tapatalk
Reply With Quote
  #9  
Old 15-06-2017, 11:38 PM
jonbills's Avatar
jonbills jonbills is online now
Z Club member
Fifth gear
 
Join Date: Sep 2005
Location: M6
Posts: 2,362
Member 254
That sounds doable - I was imagining some heavy obd or canbus stuff. That would be scary from scratch.

I guess once you've got it in the car you can keep adding functions.
I'm already imagining I could perhaps use it to get replace my add on AFR and oil temp gauges.
__________________
1974 260z
Reply With Quote
  #10  
Old 16-06-2017, 10:43 AM
Russell's Avatar
Russell Russell is offline
Z Club member
Third gear
 
Join Date: Jul 2012
Location: Billingshurst
Posts: 265
Member 959
Quote:
Originally Posted by jonbills View Post
That sounds doable - I was imagining some heavy obd or canbus stuff. That would be scary from scratch.

I guess once you've got it in the car you can keep adding functions.
I'm already imagining I could perhaps use it to get replace my add on AFR and oil temp gauges.
Na, keep it simple I say.

Would love to see how to integrate a Wideband into it and not need another screen. My issue is that it would have to work perfectly all the time!
Reply With Quote
  #11  
Old 09-09-2017, 02:43 PM
jonbills's Avatar
jonbills jonbills is online now
Z Club member
Fifth gear
 
Join Date: Sep 2005
Location: M6
Posts: 2,362
Member 254
Knock sensor

My knock sensor is now in test!
https://youtu.be/QDOppYRy9DA

There's a potentiometer to adjust the knock detection thresholds and 3 leds to show progressively how strong any knock is.

Test procedure I've come up with is to set the threshold just above the noise level from the engine running unloaded in the garage with definitely no knock.

So far no knock reported at any engine speed, with and without vacuum advance.
Next step, advance the ignition so it will knock to see if it detects it.
__________________
1974 260z

Last edited by jonbills; 09-09-2017 at 03:46 PM..
Reply With Quote
  #12  
Old 09-09-2017, 03:48 PM
jonbills's Avatar
jonbills jonbills is online now
Z Club member
Fifth gear
 
Join Date: Sep 2005
Location: M6
Posts: 2,362
Member 254
Knock sensor

Surprisingly, that worked first time!
I set all-in spark timing to 40 and my knock sensor detects knock at about 3500 rpm.

I think I'll do an engine management system next
__________________
1974 260z

Last edited by jonbills; 10-09-2017 at 02:47 PM..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:49 AM.

The Future Is Bright... The Future Is ZClub!

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright ZClub.net, All Rights Reserved.