Cytron Technologies Shield-PS2 Manuel utilisateur

ROBOT . HEAD to TOE
Product User’s Manual – Shield-PS2
Index
1. Introduction and Overview 3
2. Packing List 4
3. Product Specification and Limitations 5
4. Board and Product Layout 6
5. Hardware Interface 8
5.1 Choose PS2 Dual Shock Controller 10
6. Protocol 15
6.1 PS2 Button and joystick status 15
6.2 On Board vibrator motor control 16
6.3 All PS2 button and joystick status 17
7. Warranty 19
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 2

ROBOT . HEAD to TOE
Product User’s Manual – Shield-PS2
1.0 INTRODUCTION AND OVERVIEW
Cytron PS2 Shield (SHIELD-PS2) is an Arduino compatible shield which is compatible with
Arduino UNO,Arduino Duemilanove,Arduino Mega, Arduino Leonardo and possibly other
pin compatible main boards. Cytron PS2 Shield offers a compact yet reliable PS2 Controller
Converter for user. Cytron PS2 Shield is powered from Arduino main board. with Cytron PS2
Shield Reading Joy-stick and button’s state of PS2 controller will be as easy as reading
UART data. It offers a standard connector for SONY PS2 controller to plug-in, either wired
or wireless.
Shield-PS2 has stackable side headers which allows for more Arduino shields to be stacked
on top of it. Besides, user has option to use either hardware or software UART with
Arduino’s main board to communication to get the PS2 controller status. Shield-PS2 reset is
connected to arduino’s analog pin 1 (A1). User can pull down this analog pin to reset the
shield.
Features:
●5V powered, low current consumption.
●Simple to use UART protocol
●Vibrator motor on PS2 is controllable.
●Wired and Wireless PS2 controller is supported.
●PS2 Controller will automatically operate in analog mode.
●A status LED
●Jumper selector to select different UART Baud Rate (4800, 9600, 57600, 115200).
●Jumper selectors to select different digital pin as UART TX and RX pin.
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 3

ROBOT . HEAD to TOE
Product User’s Manual – Shield-PS2
3.0 PRODUCT SPECIFICATION AND LIMITATIONS
Dimensions
No
Parameters
Min
Typical
Max
Unit
1
Input Voltage (Logic Operation Voltage)
4.5
-
5.5
V
2
Current Consumption
100
150
500
mA
3
VIOH (Logic Input – High Level)
3.5
5.0
5.5
V
4
VIOL (Logic Input – Low Level)
0
0
1.0
V
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 5

ROBOT . HEAD to TOE
Product User’s Manual – Shield-PS2
4.0 PRODUCT LAYOUT
Components on Shield-PS2 and their functions:
1. Stackable Analog Input Header
This is the analog port of the Arduino. The stackable header allows other stacked
shield to utilize these pins.
2. Stackable Power Pins Header
This is the power port of the Arduino. The stackable header allows other stacked
shield to utilize these pins.
3. Main Board reset button
Arduino main board will require around 30ms to ready after reset.
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 6

ROBOT . HEAD to TOE
Product User’s Manual – Shield-PS2
4. Status indicator LED (Orange)
This LED will blink and illuminate with different brightness depending on the PS2
status.
LED Condition
Description
Blink with
different brightness
Once power up, if there is no SONY PS2 controller connected or
detected..
Stay illuminated
with low brightness
SONY PS2 controller detected and communication is working fine.
Stay illuminated
with high
brightness
Digital button on SONY PS2 controller is pressed.
5. Power indicator LED (Green)
Indicator to shows that power is supplied to Cytron PS2 Shield.
6. Baud Rate selector
To select the preferable UART baud rate For Cytron PS2 Shield to obtain latest
baudrate from selector, Shield-PS2 need to be reset to update the board’s baud rate.
7. On board Cytron PS2 Shield reset button
PS2 RST button will only reset the SHIELD-PS2 but not the Arduino Main board.
8. Stackable Digital I/O Headers
JP4 and JP7 are Digital I/O pins stacked to the Arduino main board.
9. RX Pin Selector
User may select D0, D2, D8 or D10 as the RX pin from Arduino main board with the
mini jumper. If Arduino UNO or Mega is used, recommended to move the RX pin
selector to D2, D8 or D10 as D0 is used for bootloader (loading program).
10. TX Pin Selector
User may select D1, D3, D9 or D11 as the TX pin from Arduino main board with the
mini jumper. If Arduino UNO or Mega is used, recommended to move the TX pin
selector to D3, D9 or D11 as D1 is used for bootloader (loading program).
11. SONY PS2 Connector Socket
Please connect PS2 Controller plug here, wireless or wired.
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 7

ROBOT . HEAD to TOE
Product User’s Manual – Shield-PS2
5.0 HARDWARE INTERFACE
This section shows the example of using SHIELD-PS2 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 SHIELD-PS2 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 Shield-PS2 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 Shield-PS2 before start to
program the main board. Programming of main board may fail if the Shield-PS2 is stacked on
mainboard and PS2 controller connector is connected. Select desired baudrate for Shield-PS2
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

ROBOT . HEAD to TOE
Product User’s Manual – Shield-PS2
USB cable to Arduino main board and load example code. Sample source code and
Arduino’s Library can be downloaded from the SHIELD-PS2 product page at Cytron’s
website.
Connect the PS2 joystick to the PS2 connector socket on SHIELD-PS2 as shown. Don’t
forget about the power source for the Arduino main board too. Power source for the Arduino
main board is from DC adaptor plug.
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 9
Autres manuels pour Shield-PS2
1
Table des matières
Autres manuels Cytron Technologies Conseil des transporteurs
Manuels Conseil des transporteurs populaires d'autres marques

CTJ
CTJ TX2 Manuel utilisateur

Amfeltec
Amfeltec AngelShark Series Manuel utilisateur

Advantech
Advantech CPC-2420 Manuel d'installation et d'exploitation

Bob's Space Racers
Bob's Space Racers BSR-3000 Manuel utilisateur

RTimes
RTimes Z509 Manuel utilisateur

mikroElektronika
mikroElektronika Clicker 2 Manuel utilisateur















