Log in

View Full Version : PIC-based USB conversion for an NES controller



wraggster
September 4th, 2012, 01:16
http://hackadaycom.files.wordpress.com/2012/09/pic-based-nes-usb-controller-e1346690065952.jpg
[Andres] wrote in to share his USB for NES controller project (http://tecnologicobj12.blogspot.mx/2012/07/control-nes-usb-pic18f2455255044554550.html) (translated (http://translate.google.com/translate?hl=en&sl=auto&tl=en&u=http%3A%2F%2Ftecnologicobj12.blogspot.mx%2F2012% 2F07%2Fcontrol-nes-usb-pic18f2455255044554550.html)). It enumerates as a USB keyboard and is easily mapped on most emulators. Over the weekend we looked in on an AVR programmer used for this purpose (http://hackaday.com/2012/08/31/hackaday-links-august-31-2012/). [Andres] went a different direction, using a PIC microcontroller and eventually incorporating his circuit into the body of the controller.
The prototype circuit can be seen above. [Andres] uses a breakout board for the PIC 18F4550 to test the circuit. The chip has native USB support, and reading the button states from the controller’s shift register is a snap. You can see him using this test rig to play Super Mario Bros. on an emulator in the video after the break.
The second iteration of the project moves from breadboard to a soldered circuit. A 18F2550 is used as it comes in a rather small DIP package. If the legs are flattened there’s room inside the controller case for it, along with a few capacitors and a crystal. The original controller cord is removed to make way for a USB cable.
http://hackaday.com/2012/09/03/pic-based-usb-conversion-for-an-nes-controller/