lights oscillate bright and dim whats going on

i find that the car starts fine,but if i watch the emergency brake light on the dash while idling it goes bright and dim rapidly and faster if i rev it..i pulled the headlights on and they are doing the same thing..iv got grounds on the alt block frame batt dash and regulator case..any one have a cure or know why..diodes maybe or alt ...help please...j