“Your time is limited, so don't waste it living someone else's life. Don't be trapped by dogma - which is living with the results of other people's thinking. Don't let the noise of other's opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.” Steve Jobs quoteste it living someone else's life. Don't be trapped by dogma - which is living with the results of other people's thinking. Don't let the noise of other's opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.” STEVE JOB

10Bit Joystick

Project : DIY USB controller for games on PIC18F2455
Publisher : Willy
English Translation : Dr. Andy Amer
MAIN FEATURES :
• 6 axis 10 bit (1024 steps)
• 32 buttons
• Hat witch with precision ( 0 to 315 )
SPECIAL FEATURES :
• Incorporated Bootloader
• Easily extended with with small extra auxiliary cards.

Note:
This project is republish with permission off Willy 
This tutorial is only intended as a guide to construct the card without going into the
complicated USB connection issues, HID devices, or programming of micro-controllers.
Only a basic understanding of electronics, soldering components and the construction of
printed circuit boards (PCB) are needed.

DISCLAIMER
THIS DOCUMENTATION IS PROVIDED FOR THE PURPOSE TO BE USEFUL AID FOR
IMPLEMENTING THE ABOVE MENTIONED CARD FOR YOUR OWN APPLICATION. IT IS
MEANT TO BE USED WHILE COMPLYING WITH ALL SAFETY AND SENSITIVE
ELECTRONICS HANDLING MEASURES. WE CAN NOT BE HELD RESPONSIBLE FOR
ANY DAMAGE OR INJURY OF ANY KIND WHICH MAY OCCUR OR COULD OCCUR
EITHER DURING BUILDING, TESTING, USE OR STORAGE. USE THIS MATERIAL AT
YOUR OWN RISK AND JUDGEMENT.

The project relies heavily on changing the sample included in the Mouse V2.4 Framework
board from Microchip PICDEM FS USB development.
My special thanks to Rawin Rojvanit without their contribution this project would not have
been possible.

The MCHPFSUSB can be downloaded from:
MCHPFSUSB Framework v2.4

http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2651&param=en534494

Schematic Design
I worked from Figure A-2 found in the documentation "PICDEM FS USB User 51526a.pdf Guide "included in the Framework.
The basic changes are:
I've changed the mode for entering the bootloader in order to facilitate the availability of pin 25
of the PIC (RB4 – AN11). Also the switch S2 now connects to the pin 6 (RA4).



Component list:
1 PIC18F2455 Microcontroller 1 (PIC18F2550) (IC1)
1 28 Pin integrated Soket, failing one 20 and one 8
1 Crystal 20 MHz (Y1)
2 Switch for PCB (S1, S2)
1 LED (D2)
2 Resistors 10Kohm (R1, R2)
2 Resistors 470ohm (R2, R4) can be 1Kohm
1 Resistors 1Kohm (R5)
1 Resistors 1Mohm (R6)
1 Electrolytic Capacitor 470nF, 16V (C6)
1 Electrolytic Capacitor 10uF, 16V (C5)
2 Ceramic Capacitors 22pF (C2, C3)
2 Ceramic Capacitors 0.1uF (104) (C1, C4)
2 Diodes 1N5817, 1N4001, 1N4148 (D1, D39) 1N4148 are convenient for the small size
1 Cable USB to connect to the PC
1 Strip of 40 pins
1 Strip of 40 pins female connectors
2 Strip of 20 cover for connectors. (jumpers)

PCB Construction
The PCB is designed for a single layer to be simple and we can accommodate all the
components on the same layer, hence no need for double sided design. Also space is not
critical.
Moreover, being a DIY version, it is convenient to use a basic technique to make it easy
to construct. Anyway, I have not started yet to construct a double-sided PCB.
The method used for construction is to use a household iron to transfer the circuit
from the printed paper to a copper plated PCB.


Here the PCB design with dimensions in millimeters so that you can scale them.
Download Link CAD file for printing "plate 18F2455 LT97.dwg"
http://uploading.com/files/O04HQ4KE/Placa 18F2455 LT97.dwg.html


1 comment:

  1. Can I use a PIC18f2550 to this project?

    Regards

    ReplyDelete