Mi Wi GAME CONTROLLER Darwesh Shakaa With accelerometer

  • Slides: 10
Download presentation
Mi. Wi GAME CONTROLLER Darwesh Shaka’a With accelerometer Mohammad Alkharraz

Mi. Wi GAME CONTROLLER Darwesh Shaka’a With accelerometer Mohammad Alkharraz

1 -PIC 18 F 4550 ‘has a USB Port’. 2 -two PIC 18 LF

1 -PIC 18 F 4550 ‘has a USB Port’. 2 -two PIC 18 LF 4620. 3 -Adxl 335 ± 3 g accelerometer. 4 -MIWI mrf 24 j 40 “ 30 meter range”. 5 -And a PC.

PIC mrf I/O CS SDO SDI SDO SCK INTx INT I/O WAKE _______ RESE

PIC mrf I/O CS SDO SDI SDO SCK INTx INT I/O WAKE _______ RESE T

o Low Power “Total power dissipation = 1 W <they say>”. o Multiple user

o Low Power “Total power dissipation = 1 W <they say>”. o Multiple user can connect at the same time “Network star topology”. o Suitable data rate ‘ 250 kbps’.

1 -HID Report Descriptor. 2 -Adding the Descriptor to your Code. 3 -Sending Data

1 -HID Report Descriptor. 2 -Adding the Descriptor to your Code. 3 -Sending Data to the PC. 4 -The Hardware.

HID Report Descriptor is a software created by the USB. org and used to:

HID Report Descriptor is a software created by the USB. org and used to: - Device Class Definition HID The Device Class Definition for HID is intended to supplement the USB Specification and provide HID manufacturers with the information necessary to build USB-compatible devices. It also specifies how the HID class driver should extract data from USB devices. The primary and underlying goals of the HID class definition are to: 1. be as compact as possible to save device data space 2. allow the software application to skip unknown information 3. be extensible and robust 4. support nesting and collections 5. be self-describing to allow generic software applications

2 -Adding the Descriptor to your Code. Just import the hid header file to

2 -Adding the Descriptor to your Code. Just import the hid header file to your “Mp. Lab” project. Make sure that the data in the array sent by the ‘hidtxpacket’ is in the same order as the report.

The accelerometer : WHY ± 3 g ?

The accelerometer : WHY ± 3 g ?

Problem we solved… Mi. Wi keeps stalling …. Mi. Wi stop working…. Accelerometer sensitivity….

Problem we solved… Mi. Wi keeps stalling …. Mi. Wi stop working…. Accelerometer sensitivity….