Package : DIY Module
Model Number : PS2 game joystick key module
Dissipation Power : ...
Supply Voltage : ...
Application : Computer
Type : Voltage Regulator
Origin : China
Condition : New
Operating Temperature : -40℃~+80℃
Functions : Electronic Module
Range of application : Switch And Sensor For Arduino STM
Electronic building blocks Dual PS2 game joystick button module JoyStick compatible with R3
Thanks to the selfless sharing of the user Phoenix, the following test code is written for him, suitable for testing a variety of rocker or button code. Does not differentiate the board. IDE board with 1.8.6. If the latest update is not tested)
//This code is provided by phoenix.
// Only joysticks and buttons on all interfaces are tested.
//Only test the rocker and buttons on all interfaces.
void setup(void)
{
Serial.begin(9600); // Set the serial port communication rate to 9600 baud
for ( int i = 0; i<=13; i++)// Define the button position
{
pinMode(i,INPUT_PULLUP);
digitalWrite(i, 1);
}
}
void loop(void)
{
//******************* joystick position judgment, from port to port from 0-13; A1-A5(14-20)
for ( int i = 0; i<=20; i++)// From ports 0 to 20
{
Serial.print(i);
Serial.print("=");
Serial.print(analogRead(i)); // Read the value of rocker X axis, serial port display
Serial.print(";" );
}
/ / * * * * * * * * * * * * * * * * * * * * * * * * * * * * Button position judgment, from port 0-13,; A1-A5(14-20)
int i, someInt, flag = 0;
for (i = 0; i<=20; i++) // From ports 0 to 20
{
if (digitalRead(i) == 0) // Read the status of the button and determine whether to press it
{
Serial.print("button=");
Serial.print(i);
Serial.print(";" );
}
}
Serial.println(""); // End a line
delay(100); // Refresh once 100ms
}
The line layout is compact and regular, with good electrical insulation and mechanical stability, and can maintain stable performance under different temperature and humidity environments to ensure accuracy and reliability.
In circuit design, carefully planned lines are like precision transportation networks, and lines of different widths and spacings undertake different currents and signals transmission tasks respectively. The key signal lines are impedance matching processing, which greatly reduces signal reflection and attenuation and ensures the stable transmission of high-frequency signals.
All kinds of electronic components are soldered on the circuit board, and the solder joints are full, round, and firm and reliable. Core components like chips are perfectly connected to the circuit board through fine packaging processes to achieve high-speed data processing and interaction.
This circuit board has a wide range of responses in many fields. Whether in the industrial control field that requires extremely high stability or consumer electronics field that pursues extreme performance, it can provide solid guarantees for the stable operation of the equipment with its excellent design and reliable performance, and help various electronic devices play a powerful role.