Page 81 - Robot Design Handbook ROBOCON Malaysia 2019
P. 81
i. The Transmitter
The controller consists of a joystick shield, Arduino UNO micro-controller board,
and the master Bluetooth (HC-05) which transmits the command to the receiver. After
connecting the Arduino with the joystick shield as shown in Table 2, the Arduino code is
downloaded and tested the action of the joystick by opening the serial monitor to see the
data that will be transmitted.
Table 2: Connection between the Arduino and Joystick Shield
Arduino Pin Joystick
A2 Transmitter
A3 Receiver
Figure 1 shows the transmitting and receiving process started by serial connection
on digital pins of the Arduino and then defines the Bluetooth and joystick shield pins. After
all definitions, the baud rate and pin mode are set, then the Arduino enters the loop to check
the button pin each time and send the data are sent by the Bluetooth.
77

