- Google. Believe me, all these things have been done over and over and over and over again.
- Find out which examples are relevant to your specific hardware and your specific application.
- Read this.
- Feel free to post your questions!
And remember: the more specific the question, the more specific the answer (and the other way around as this reply shows you).