arduino-heatpumpir icon indicating copy to clipboard operation
arduino-heatpumpir copied to clipboard

Inverted PWM Signal?

Open tswonke opened this issue 6 months ago • 3 comments

Sorry for a maybe dumb question, but I don't understand the generated signal. When I start the ESP32 the signal on my chosen GPIO is LOW. With the first sent signal it flips to HIGH (s. attached picture) and stays there for ever (until the next signal):

IMG_4773 IMG_4774

Is this on purpose? From my understanding this would mean that an attached IR-LED would constantly be glowing. Or do I have to invert the signal with a transistor?

My code is very simplified for testing:

#include <Arduino.h>
#include <FujitsuHeatpumpIR.h>

IRSenderESP32 irSender(33, 0);
FujitsuHeatpumpIR *heatpumpIR;

void setup()
{
  Serial.begin(115200);
  delay(500);
  heatpumpIR = new FujitsuHeatpumpIR();
}

void loop()
{
  heatpumpIR->send(irSender, POWER_ON, MODE_FAN, FAN_3, 18, VDIR_AUTO, HDIR_AUTO);
  delay(2000);
}

tswonke avatar Jul 27 '24 14:07 tswonke