Coin sorting and detection is old art, mostly mechanical engineering. One way to learn about the stuff is to look patent data bases. For example,
h**p://www.freepatentsonline.com/6868955.html and many other similar inventions.
I hope you can find there something relevant for your needs. You may use keywords such as coin detection, and browse around!