Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Hello everyone!
I don't know how to connect a gamepad to PIC 16F877A.can you help me?
I need the circuit anh code for gamepad comunicating with PIC16F87A.Thanks!
Depends on the controller. I have few ps2 controlelrs here (and a few wireless ones ) that I haven't got round to interfacing.... but it could be SPI (or an SPI-like serial protocol) or if its a basic game pad, just buttons.
First step would be google. Search for your gamepad, and its pinout, that would as least give some clue to its 'protocol'. For example 'clk' and 'data' lines would indicate a synchronous serial type affair... 'B1, B2, B3' would seem to be direct connections to buttons on the gamepad. You've probably got a console gamepad, like the PS2, or Xbox, both I believe use SPI, which the 877A has a hardware module for, so you could write a test program, with an LCD, or a serial connection to your PC (hyperterminal) that just reads the data from the gamepad, and displays it in raw hex. So at least you can find out what buttons/sticks send what data.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.