The officer just needs to have a reasonable belief that you were about to commit or had committed a crime before he can pull you over. A broken taillight, burned out license plate light, can or other equipment violations can provide a ready excuse for an officer to stop you. If the officer, can’t just the stop in court on these grounds, the judge could refuse to consider any evidence obtained as a result of this illegal stop.