Understanding our IoT joystick application
In Chapter 7, we developed a device to remotely arm an IoT alarm system. Building on this experience, our application in this chapter involves creating an IoT joystick using a Raspberry Pi Pico WH. This joystick will remotely control a ROS TurtleSim robot and thus display a practical application of IoT in robotics.
We will use the Raspberry Pi Pico WH for our design given Wi-Fi capability and pre-soldered pin headers. In our application, we’ll integrate a PS2 joystick module, an LED, and an arcade-style pushbutton with a Raspberry Pi Pico WH. The Raspberry Pi Pico WH will be programmed to transmit MQTT messages that reflect the joystick’s movements, the status of the joystick button, and the arcade button’s state. Additionally, the LED will serve a dual-purpose role, indicating both the Wi-Fi connectivity status and the MQTT connection status sequentially:
Figure 12.1 – Overview of...