void setup() Serial.begin(9600); IrReceiver.begin(IR_RX_PIN, ENABLE_LED_FEEDBACK);
Note: If this is not an IR receiver (e.g., if it’s on a power supply board), please check the marking context below. However, 99% of inquiries for GM4E01 point to the Sharp IR module. 1. Overview The GM4E01 is a miniature, epoxy-molded IR receiver module designed for infrared remote control systems. It receives modulated IR signals (typically 38 kHz or 40 kHz) from a remote control, amplifies them, demodulates them, and outputs the digital data signal for a microcontroller (e.g., Arduino, ESP32, PIC). gm4e01
void loop() if (IrReceiver.decode()) IrReceiver.printIRResultShort(&Serial); IrReceiver.resume(); // ready for next code void setup() Serial