EasyManua.ls Logo

Keywish Hummer-Bot - PS2 Handle (Optional); Infrared Remote Control Instructions

Keywish Hummer-Bot
108 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
86
analogWrite(M1, val); //the speed value of motorA is val
analogWrite (E2,0);
analogWrite(M2, val); //the speed value of motorA is val
irrecv.resume(); // 接收下一个值
}
Serial.println(results.value, HEX); // Output the receive code in hexadecimal
Serial.println();// Add a blank line for easy viewing of the output
irrecv.resume();
}
}
The above is the infrared remote reference program, you can open it in the CD and download to the
development board, the instructions of remote control in shown in Fig.3.2.38.
Fig.3.2.38. Infrared Remote Control Instructions
3.2.6 PS2 Handle (Optional)
3.2.6.1 Suite Introduction
PS2 handle is SONY game remote control handle, SONY series game host is very popular in the world.
Someone has come up with the idea of the PS2 handle, cracked the communication protocol, so that the
handle can be connected to other devices for remote control, such as remote control of our familiar four
wheeled vehicles and robots. Its outstanding features are cost-effective,rich buttons and easy to extend to
other applications, Fig.3.2.39 shows a commonly used PS2 wireless handle.

Table of Contents