Hello
My Infrared transmitter has a range of about 20 cm and it works on my TV, but when I try it on my AC it won't work.
It seems like my transmitter is not strong enough (even if I put it on the AC, it will still not work).
I know that my AC does use infrared and does work with my transmitter (it only works once every hundred times)
I'm using an eps32
This is the module I'm using:
here's my code:
#include <Arduino.h>
#include <IRremoteESP8266.h>
#include <IRsend.h>
const uint16_t kIrLed = 4; // ESP8266 GPIO pin to use. Recommended: 4 (D2).
IRsend irsend(kIrLed); // Set the GPIO to be used to sending the message.
uint16_t tvTURN[68]={
4535, 4502, 567, 1675, 570, 1678, 566, 1678,
568, 556, 565, 556, 568, 557, 564, 558,
565, 560, 560, 1682, 572, 1674, 566, 1679,
569, 555, 531, 592, 531, 590, 544, 581,
542, 580, 539, 585, 536, 1709, 536, 586,
534, 588, 535, 590, 533, 589, 560, 564,
557, 567, 557, 1687, 557, 566, 557, 1687,
560, 1685, 557, 1688, 526, 1719, 525, 1719,
525, 1720, 526, 1000};
uint16_t acTURN[100]={
9083, 4574, 592, 1682, 617, 1663, 594, 552,
618, 532, 617, 537, 618, 540, 617, 543,
620, 1666, 619, 520, 619, 1660, 620, 1660,
617, 533, 618, 534, 644, 511, 645, 516,
644, 505, 646, 494, 646, 498, 644, 1635,
646, 504, 644, 510, 643, 513, 646, 515,
643, 508, 642, 496, 642, 1637, 642, 505,
640, 509, 639, 514, 638, 1654, 640, 520,
638, 1649, 614, 524, 641, 501, 638, 507,
638, 512, 635, 515, 633, 523, 632, 527,
606, 543, 604, 536, 601, 543, 595, 549,
595, 556, 591, 564, 589, 568, 586, 598,
561, 572, 536, 1000};
void setup() {
irsend.begin();
#if ESP8266
Serial.begin(115200, SERIAL_8N1, SERIAL_TX_ONLY);
#else // ESP8266
Serial.begin(115200, SERIAL_8N1);
#endif // ESP8266
}
void loop() {
if (Serial.read() != -1) {
irsend.sendRaw(acTURN, 100, 38);
}
}
Please can someone tell me what can I do?
use a different module (what module?)
use more current/voltage (and how?)
Thank you