Could also be a relay thats overloaded and clicking...possibly a short in some wiring . If you smell smoke then you have a serious problem...likely wiring somewhere. Do a good inspection of your wiring, and check the wiring under the hood closest to the firewall...maybe the smell of came into the car from the engine compartment. But in any case...something is burning, so do some carefull inspection looking for melted insulation ect.