Axiometa
IR Receiver
IR Receiver
SKU:AX22-0033
21 in stock
Regular price
$2.99
Regular price
Sale price
$2.99
Unit price
per
Taxes included.
Shipping calculated at checkout.
Couldn't load pickup availability

Technical Details
Pinout
Arduino Example Snippet
#include "esp32-rmt-ir.h" // by junkfix
#define RX_PIN 14
void irReceived(irproto brand, uint32_t code, size_t len, rmt_symbol_word_t *item) {
if (code) {
Serial.printf("IR %s, code: %#x, bits: %d\n", proto[brand].name, code, len);
}
if (true) { //debug
Serial.printf("Rx%d: ", len);
for (uint8_t i = 0; i < len; i++) {
int d0 = item[i].duration0;
if (!item[i].level0) { d0 *= -1; }
int d1 = item[i].duration1;
if (!item[i].level1) { d1 *= -1; }
Serial.printf("%d,%d ", d0, d1);
}
Serial.println();
}
}
void setup() {
Serial.begin(115200);
irRxPin = RX_PIN;
xTaskCreatePinnedToCore(recvIR, "recvIR", 4096, NULL, 10, NULL, 1);
}
void loop() {
//loop does nothing
}