This tutorial is about to make a data acquisition.To make a DAI you need a hardware part which can measure analog data and sends the digital data to computer. A PC app shows the data.Before starting the tutorial take a look to the result. The figure below shows the hardware where i used pic18f4550 to communicate with PC via usb.Two pots are inserted to make analog values here i named these as voltage and speed.pic18f2550 collects the analog value and sends to PC where a PC app i already made to show the data. The red is for testing purpose,it toggles by a button pressed from the PC app.