DIY Pulse Adapter?
Anyways both channels were up and running briefly but as expected the piezo signal is waaay higher than the "Crank Position Sensor". I had the grounds tied together on both of them and it was causing the signal from the Piezo to bleed into the "CPS" channel rendering it unreadable. I will try to post a picture.
Okay there it is again, hopefully going to the right thread this time!
I have rebuild the CPS "Crank Position Sensor" previously called RPM sensor or something. I have increased the number of windings of wire on the nail from 5 to about 60 so that should in theory bump up my sensitivity a little bit on the CPS. I brought the whole assembly back inside but am kind of wondering what is the best way to wire the thing into my input recorder. I am going to put a diagram of how I have it now. Maybe somebody can chime in.
Ford Trucks for Ford Truck Enthusiasts
*/
// these constants won’t change:
const int ledPin = 13; // led connected to digital pin 13
const int knockSensor = A0; // the piezo is connected to analog pin 0
const int threshold = 100; // threshold value to decide when the detected sound is a knock or not
// these variables will change:
int sensorReading = 0; // variable to store the value read from the sensor pin
int ledState = LOW; // variable used to store the last LED status, to toggle the light
void setup() {
pinMode(ledPin, OUTPUT); // declare the ledPin as as OUTPUT
Serial.begin(9600); // use the serial port
}
void loop() {
// read the sensor and store it in the variable sensorReading:
sensorReading = analogRead(knockSensor);
// if the sensor reading is greater than the threshold:
if (sensorReading >= threshold) {
// toggle the status of the ledPin:
ledState = !ledState;
// update the LED pin itself:
digitalWrite(ledPin, ledState);
// send the string “Knock!” back to the computer, followed by newline
Serial.println(“Knock!”);
}
delay(100); // delay to avoid overloading the serial port buffer
}
With the adjustable threshold it seems like it could be set just above the noise level to catch only the injector popping. Of course connect the coil pack to pin 13, where he has the led connected. This sounds easy and it just might be. I don't have the time to play with it right now so maybe someone here can run with it and let us know the progress. I have some Arduino experience (enough to be dangerous) so I might be able to answer some questions about loading the code and getting it running.
Did anybody ever give any more thought to my last post? "

You might be waiting for a while for a reply, some of those posters
have not logged on in a couple years.
Clock on their name and check their profile and it will tell when last logged on.
Charlie











