Hi Guys.
I thank you for all your great help so far. So far the last few post have been very helpful. I am very good with auto electrical in general, looking at wiring diagrams and figuring out what the ecu is doing or not doing or what sensor is intermittent but when it comes to microcomputers and code programming I have to say that is on my weaker side. I admit I truly suck at it and that is why I am here asking for help from knowledgeable people.
So the idea I had... here is what I would like to program into the arduino or at least get some help with it.
Starting with the previous questions...
How are you detecting that the car is at a standing still? I will use the signal wire from the speed sensor on the car, the speed sensor has 3 wires, one ground, one 5 volt and one signal wire. Arduino has to look for 0 sine wave then one "if statement" will be accomplished. Or if rpm is below 1200 rpm, then its an accomplished task.
Do you have the switch mounted to detect the clutch is depressed? there is almost always a switch on the clutch pedal, mine has one.
Input that tells you that the car is in neutral? There will be a momentary switch mounted on the shift lever above the transmission.
To detect the temperature? I was thinking of using a thermistor, but I could use a 50C on/off temp sensor to do the job.
Do you even have any method to detect if the engine is, indeed, running? To detect that the engine is running I would get a clamp style pince inductive pickup, similar to the ones used on timing lights. That way I can clamp it to one of the spark plug wires and when the clamp produces inductance as there is spark, then it would tell the arduino to stop cranking.
I would like to put the same arduino in my wife's golf diesel, and for crank signal im not sure what kind of feedback i would use, maybe increase in battery voltage as it would go from 12.5V to 14.4 volts, actually it might be easier to detect the battery voltage and keep it simple. Voltage increase stops cranking type of thing. Or I could take a signal wire from the crank sensor to have a signal for the arduino to see, soon as it sees the square wave, stops cranking.
Ken would you be able to explain in detail what you mean? I really like the idea but I want the system to be foolproof. We are all on the right track I believe. Lots and lots of great info. The relay part I get, the arduino part I don't. The coding you sent over, what does that actually do?
Morgan, as for the logical problem, I would like to differentiate between " clutch and clutch" the arduino has to see that I have depress the clutch, then the shift lever has to be in neutral, then release the clutch pedal, then the car stops, the engine only restarts if you depress the clutch pedal. Seems simple but I cant get my head around it even though I've been in the automotive field for 15 years full time.
As for fuel cut off, diesel is simple, splice into the fuel cut off solenoid, then arduino activates a 12v relay then applies voltage to the solenoid, engine shuts off, as for the gas engine, cut the 12V side of the fuel pump, or spice into the fuel relay wire.
Jimbo thank you for those great sites. I will read through them for sure.
Would I have to do the entire coding myself or would some you be able to help me code my arduino R3, its a little over the top when it comes to coding.
Thank you guys