there is a ton info over at the E90post side...it depends on which system you have...
here is one thread...
http://www.e90post.com/forums/showthread.php?t=134066
they have the wiring diagrams and everything...badfish and technic are two really cool members who have some really great posts...if want to seach them...