Hi,
I have never worked with an arduino before, but I have an idea for a little project and I am trying to gauge how feasible it is before getting started.
It turns out that both PS2 keyboards and NES controllers are fairly simple. The idea is to be able to use a PS2 keyboard as an NES controller by connecting the PS2 wires to an Arduino nano or micro, and also wiring an NES extension cord to the same board.
The arduino would be powered by the 5v wire coming from the NES, and would also need to supply power to the keyboard on its 5v wire. Then I need to write code on the arduino that reads scan codes coming from the keyboard, and emulates a shift register so that it looks like a controller to the NES.
In addition to 5v/ground for both the NES cable and PS2 cable, I would need these input/outputs:
Input:
PS2 Clock
PS2 Data
NES Clock
NES Latch
Output:
NES Data
I'm most unsure about the power requirements. Can I safely power the arduino from the NES via the 5v pin and also provide 5v to the keyboard? There is only one 5v pin, so would I just connect both wires to it?
Rough schema:
Any other things that I should be aware of?
TIA,
Gabe