There are two lines for power supply, i.e. The arduino board uses 4 lines to simulate the working of a PS/2 keyboard. The board then sends logic signal through its ports to whatever device is connected to it. bytes, coming from the laptop's keyboard. next, the arduino receives the scancodes, i.e.first, key strokes are read by the python script, converted to valid PS/2 scancodes and sent to the arduino via the serial port.The software part of the emulator is split into two parts: They really should go the opposite direction in the real PS/2 keyboard setup, but the arduino already have access to power, so, be careful with these two lines.Ĭlock and data lines are supposed to be connected to some interface between the keyboard and the host CPU.Īpart from this, hardware is pretty free :-) 2 The software. +5V and ground could provide power to shift register, to go from serial data to parallel data as briefly mentionned here. The hardware part is fairly simple here and involves not swapping wire coming from the arduino board. In case of any issue, please open an issue on the repo or contact us at Table Of Content. Please refer to the below Table Of Content (TOC) for more details about this document. In this directory, some code is provided to emulate a PS/2 keyboard using an arduino board an python code.