hi,i am newbie to microcontroller,so i am not quite understnading how to write the code.this is my first time mini project,basically the project is relate about a tachometer,and when we move it,a tachometer will sense the pulse and then record by using counter,and display in lcd-speed and distance.BUt how we can built own encoder?HAve any schematic for encoder?