#include <Arduino.h>
#include <IRremote.hpp>
#define IR_SEND_PIN 3
void setup() {
Serial.begin(9600);
IrSender.begin(IR_SEND_PIN);
Serial.println("IR-Sender bereit");
}
const uint16_t rawData[68] = {
4500, 4450,
600, 1650, 600, 1600, 650, 1600, 600, 500,
650, 500, 600, 500, 650, 450, 650, 500,
600, 1650, 600, 1600, 650, 1600, 650, 450,
650, 500, 600, 500, 650, 500, 600, 500,
600, 1650, 600, 1650, 600, 1600, 650, 500,
600, 500, 600, 500, 650, 500, 600, 500,
650, 450, 650, 500, 600, 500, 650, 1600,
600, 1650, 600, 1600, 650, 1600, 650, 1600,
600
};
void loop() {
uint16_t samsungAddress = 0x7; // Standard-Adresse für Samsung TVs
uint8_t samsungCommand = 0x7; // Beispiel: Power
uint8_t repeats = 0;
IrSender.sendSamsung(samsungAddress, samsungCommand, repeats);
//IrSender.sendRaw(rawData, sizeof(rawData) / sizeof(rawData[0]), 38);
Serial.println("Samsung Power gesendet");
delay(5000);
}
I try to send an ir signal to my samsung tv. Both options (sendSamsung and sendRaw) failed. I validated the rawData and the protocol and command before through a tsop receiver. I already tested with a normal led and checked if it flashs and this worked.