arduino-heatpumpir
arduino-heatpumpir copied to clipboard
Inverted PWM Signal?
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):
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);
}