Axiometa
IR Transceiver
IR Transceiver
SKU:AX22-0040
59 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 41 // IR receiver pin
#define TX_PIN 14 // IR transmitter pin
#define IR_BRAND NEC // Options: NEC, SONY, SAMSUNG, RC5, RC6, etc.
#define IR_CODE 0xC1AAFC03 // Your hex code
#define IR_BITS 32 // Number of bits
#define SEND_INTERVAL 1000 // Milliseconds between sends
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;
irTxPin = TX_PIN;
xTaskCreatePinnedToCore(recvIR, "recvIR", 4096, NULL, 10, NULL, 1);
Serial.printf("\nSending %s code: %#x every %d ms\n",
proto[IR_BRAND].name, IR_CODE, SEND_INTERVAL);
}
void loop() {
sendIR(IR_BRAND, IR_CODE, IR_BITS, 1, 1);
delay(SEND_INTERVAL);
}