Welcome back, John.
You know, the idea that it doesn't happen and then it does almost sounds like it could be a crankshaft sensor going bad. Take a look through this link:
https://www.2carpros.com/articles/symptoms-of-a-bad-crankshaft-sensor
Here are the directions for removal and replacement of the crank sensor:
See pics 1, 2, and 3 correlate with these directions.
Removal
1. Turn the ignition switch OFF and disconnect the battery negative (-) cable.
2. Disconnect the crankshaft position sensor connector (A).
picture 1
3. Remove the protector (A).
picture 2
4. Remove the installation bolt (A), and then remove the crankshaft position sensor.
picture 3
Installation
CAUTION:
- Install the component with the specified torques.
- Note that internal damage may occur when the component is dropped. In this case, use it after inspecting.
CAUTION:
- Apply the engine oil to the O-ring.
CAUTION:
- Insert the sensor in the installation hole and be careful not to damage when installation.
1. Installation is reverse of removal.
Crankshaft position sensor installation bolt:
9.8 - 11.8 N.m (1.0 - 1.2 kgf.m, 7.2 - 8.7 lb-ft)
Crankshaft position sensor protector installation bolt (M6):
9.8 - 11.8 N.m (1.0 - 1.2 kgf.m, 7.2 - 8.7 lb-ft)
Crankshaft position sensor protector installation bolt (M8):
18.6 - 23.5 N.m (1.9 - 2.4 kgf.m, 13.7 - 17.4 lb-ft)
Next, the pinging you heard can be caused by a knock sensor. This sensor is designed to fine tune ignition timing for best performance.
https://www.2carpros.com/articles/how-a-knock-sensor-works
Here are the directions for removal and replacement of the knock sensor. Check to make wiring to it is clean and tight. Pictures 4 and 5 correlate with these directions.
Removal
1. Turn the ignition switch OFF and disconnect the battery negative (-) cable.
2. Drain the engine coolant .
3. Remove the radiator upper hose .
4. Disconnect the knock sensor connector (A).
imageOpen In New TabZoom/Print
5. Remove the intake manifold .
6. Remove the installation bolt (A), and then remove the sensor from the cylinder block.
imageOpen In New TabZoom/Print
Installation
CAUTION:
- Install the component with the specified torques.
- Note that internal damage may occur when the component is dropped. In this case, use it after inspecting.
1. Installation is reverse of removal.
Knock sensor installation bolt:
18.6 - 23.5 N.m (1.9 - 2.4 kgf.m, 13.7 - 17.4 lb-ft)
Also, a vacuum leak could cause idle issues and stalling. Take a look through this. It shows how to check for a leak:
https://www.2carpros.com/articles/how-to-use-an-engine-vacuum-gauge
By chance, do you have the diagnostic trouble code that comes up at times?
One last thing. The engine idle speed is controlled by an idle air control valve (IAC). The IAC allows a metered amount of air to enter the engine when your foot is off the throttle. If it is failing or dirty it can cause stalling or rough idle issues.
_______________________
If you have the code that shows up, let me know what it is. It will help me pinpoint possible issues.
Joe
Images (Click to make bigger)
Thursday, March 7th, 2019 AT 5:34 PM