The purpose of this article is to explain how to interface a PIC microcontroller to a PC via the USB port.Although the concepts are universal, the examples are specifically for use with MikroElektronika’s ‘MikroC Pro for PIC’. PIC18F2550 and PIC18f4550 are famous for their USB Module. To stay ahead you can start with their datasheets.
The most difficult part of this project is exactly what is required to get the PIC microcontroller to communicate with the USB port. The two most important things that absolutely have to be correct are the microcontroller configuration, and the USB device descriptor. If even the smallest thing is incorrect about either of these, communication will not occur.
This project demonstrates the use of a accelerometer as a computer mouse,but first what is an accelerometer? Its a device that can measure acceleration and the pull of gravity.There are multiple ways of doing this, the particular one I’m using works with the capacitive method.
Inside the chip is a capacitor with an extra plate in the middle that can move. As you know the closer the objects are together the bigger the capacitance, the circuit inside the chip measures the capacitance difference between the two plates and the middle one.
Want to know how fast your car's going? It's easy—just glance at the speedometer!
Speed is a handy measurement that tells you how quickly you can get from one place to another. A car's top speed is generally a good indication of how powerful an engine it has, but assuming everyone stays within the speed limit, maximum speeds are just numbers on paper—little or no use to anyone.