I’m currently trying to create a remote for my Samsung TV. Thanks to this post esphome successfully able to recognize it is a Samsung TV. But when I try to transmit the data I capture nothing happens.
I don’t see the LED emits light with my phone camera and I can’t even capture the transmission with the receiver that is right next to it, they are connected to the same chip so maybe it interferes somehow.
I’m using an ESP8266, and TSOP38238 as a receiver. For the transmitter, I’m not sure what exactly I have but I’ve tried one dark LED that looked to me like an IR LED, and one lucid LED that looks like LED - Infrared 950nm.
This is my board:
I know it looks like a mess so I’ll explain . The receiver is connected to 3.3v, ground, and a data pin. For the transmitter, I connected the 3.3v to 4 390ohm resistors in parallel (to get about a 100ohm), and then to the LED anode. Then from its cathode to a transistor, and from the other transistor leg to the ground. The middle transistor leg is connected to another data pin.
The second LED I’ve tried is not connected but you can see how it looks like in the pictures standing on the side.
I should note that with this second LED, whenever I tried to transmit (with a toggle button in HA) it emits a very bright light, which seems weird to me that an IR LED would do that.
This is my yaml config, with two switches I’ve tried:
remote_receiver:
pin:
number: D4
inverted: True
mode: INPUT_PULLUP
dump: all
remote_transmitter:
pin: D1
# Infrared remotes use a 50% carrier signal
carrier_duty_percent: 50%
switch:
- platform: template
name: TV Power
turn_on_action:
- remote_transmitter.transmit_samsung:
data: 0xE0E040BF
- platform: template
name: TV Mute
turn_on_action:
- remote_transmitter.transmit_samsung:
data: 0xE0E0F00F
I would love some assistant to understand what I’m doing wrong. Thanks!
EDIT: I’ve tested with both front and back camera of a galaxy s9 and none of the LEDs are visible. I also tested with an IR LED that is labled IR LED (on the box) and no success. I also tested with a regular LED and it does blink when I toggle the button.