That's the EVAP system purge valve. It's normal for that part to click while it's working.
The EVAP system captures and stores gasoline vapors so they don't get into our atmosphere. When the engine is running, the system dumps the stored hydrocarbons into the intake to burn them up. This valve is how the ECM controls the rate of dumping. The ECM will pulse the valve open/closed and watch for changes in the exhaust chemistry (O2 sensor). The pulses can be made longer or shorter to change the amount of flow.
Is your Check Engine Light on? Get the car scanned for trouble codes. The codes may offer some clues as to what is causing the rough idle.
The EVAP system captures and stores gasoline vapors so they don't get into our atmosphere. When the engine is running, the system dumps the stored hydrocarbons into the intake to burn them up. This valve is how the ECM controls the rate of dumping. The ECM will pulse the valve open/closed and watch for changes in the exhaust chemistry (O2 sensor). The pulses can be made longer or shorter to change the amount of flow.
Is your Check Engine Light on? Get the car scanned for trouble codes. The codes may offer some clues as to what is causing the rough idle.