So after a software upgrade it ends up as an Atmega8 dev board wired up perfectly for use with V-USB, a software USB stack for AVR MCUs. I have been having fun using this as a low cost ($<10 delivered) dev board and I have some of my own project planned for the future. A few weeks ago I came across this Hackaday post:
Which is a USB dongle for an NES controller using V-USB.
V-USB Hardware + V-USB Software =
The light bulb came on, and when I got home I whipped up the following.
I already had the Betemcu USBasp, the NES controller and the controller jack from an NES autopsy. I little modification to the code and I had a working NES controller on my PC. I love it when a plan comes together.
I chose pins that were available on the ISP connector of the Betemcu USBasp and mapped them to the NES controller.
The code for the USB – NES adapter was intended for an ATtiny45 so minor code changes were made to match the pinout, some code for the fuses was commented out and the make file was updated for the Atmega8. I believe I also needed to delete “usbdrvasm.o” file. For specifics changes compare the code below to the original.
See the Project Ten Pin for more information.