The Flex Your Rights Foundation has an interesting article on their website on how you can protect your civil rights when dealing with the police during a traffic stop.
Their six tips are:
Keep Your Private Items Out of View
Be Courteous & Non-Confrontational
Just Say “No” to Warrantless Searches
Determine if You Can Leave
Do Not Answer Questions without Your Attorney Present