In this chapter, we will look at a couple of ways that we can control our Arduino project remotely. For the first project, we will use the Keyestudio IR (infrared) receiver, which uses the HX1838 infrared control module. The HX1838 infrared control module is used in numerous IR receivers that can be used by the Arduino. Therefore, you do not need to specifically get the Keyestudio one that we use here.
An infrared transmitter has an LED that emits infrared radiation, which is picked up by the infrared receiver. When a button is pressed on the remote control, the LED on the transmitter will blink very quickly for a fraction of a second and the receiver will read the pattern of blinks and interpret it.
The Keyestudio IR receiver that we will be using in this chapter looks like the following photograph:
The pin marked with the S is the signal pin and should be connected...