Arduino laser module KY-022:
Infrared (IR) beam technology has long been widely used in technological devices. The TV controls we use constantly send information to the television via infrared light signals. The infrared sensor receiver module is simply a receiver module as the name implies. It is used to detect infra-red rays at a specific frequency.
Various companies produce IR modules. If you want to make IR receiver circuit with a few electronic materials easily.
Arduino laser module KY-022 pins:
+VCC = 3.0V or 5.0V supply voltage
GND is Ground (-)
Signal will connect to Arduino, raspberry Etc…
Reception distance: 17m
Carrier Frequency: 38kHz
KY-022 INFRARED SENSOR CODE EXAMPLE FOR ARDUINO
The following code example is for the Arduino. This code will look for infrared codes from a remote control or other IR device and print the received code on the serial console.
KY-022 Sensor GND to Arduino GND
Vcc+ to Arduino +5V
Signal to Arduino PIN 10
KY-022 INFRARED SENSOR CODE EXAMPLE FOR ARDUINO:
KY-022 INFRARED SENSOR CODE EXAMPLE FOR RASPBERRY PI
The following code example is for the Raspberry Pi using the Python programming language. This code will listen for codes received by the infrared sensor and display them on the terminal window.
RASPBERRY PI WIRING:
KY-022 Sensor GND to Raspbery Pi GND
Vcc+ to Raspberry Pi PIN 2
Signal to Raspberry Pi PIN 11