HELP! Electrical Issue - 3 Codes - Inconsistent
I am having electrical issues on my 2006 Scion tC:
About 6 weeks ago the alternator started making a strange noise and smelt like burning rubber, so we replaced it fairly easily.
About 10 days ago, the battery light started going on and off during my drive home. When I was able to look at the alternator there were sparks coming from the B post. We determined then that there was a short and that the negative post cable was going bad. So we connected another battery post cable to the frame, and it started working again.
Over the weekend there was a lot of rain, and on my way to work today the car died on me. Even when the key was out of the ignition some of the electronics on the dashboard stayed on for about 10-15 seconds. When I tried to turn on the hazard lights, every light on the dashboard began to flash and I heard a strange buzzing/clicking sound. Eventually, after some time the car started up again so we took it straight home.
The engine light was on and threw the codes:
P0335: Crankshaft Position Sensor “A” Circuit Malfunction
P0351 indicates there's an electrical problem in either the primary ( the computer side ) or the secondary ( the spark plug side ) of the Ignition Coil "A" Circuit
P0340 code is often caused by a failure in the Camshaft Position Sensor itself
I suspect there could be a short, that is maybe caused by humidity in the air. Does anyone have an idea what could be happening here? I have been researching for a while, and it is hard to determine because it is so inconsistent.
About 2 hours later, I tried to start the car and it started up fine, no engine light or anything. I am uncomfortable driving the car anywhere.