Product User’s Manual – ShieldPS2
5.0 HARDWARE INTERFACE
This section shows the example of using SHIELDPS2 with Arduino UNO as the main controller.
However, other Arduino main board such as Arduino Duemilanove and Arduino Mega can also be
used.
Figure below shows that the SHIELDPS2 is stacked on the Arduino UNO. Please ensure that the
pins alignment is correct.
Select the pins for UART’s TX and RX. Pin D0 and D1 are
hardware serial
of most arduino main
board. Other selectable pin for TX and RX on ShieldPS2 are software serial pin. The default TX
pin is set to D3 while the RX pin is set to D2. However, other pins may be selected if these pins are
already used by other application. If hardware serial pin (D0, D1) is selected, user needs to
unplug
the
PS2 Connector
from the ShieldPS2 before start to program the main board. Programming of
main board may fail if the ShieldPS2 is stacked on mainboard and PS2 controller connector is
connected. Select desired baudrate for ShieldPS2 using the mini jumper.
Guideline to choose pin for software serial:
Not all pins on the Mega and Mega 2560 support change interrupts,
so only the following can be used for RX:
10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69
Not all pins on the Leonardo support change interrupts,
so only the following can be used for RX:
8, 9, 10, 11, 14 (MISO), 15 (SCK), 16 (MOSI).
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
8