simply send IR code

Moderators: grovkillen, TD-er, Stuntteam

Post Reply
Message
Author
secgin@gmail.com
Normal user
Posts: 5
Joined: 19 Mar 2020, 18:47

simply send IR code

#1 Post by secgin@gmail.com » 20 Mar 2020, 21:06

Hello,
I have esp(8266)01s
I want to switch on/off my tv with ESP01s + IR LED.
I want to copy my TV remote control code. Esp01 received the code with the IR reciver and the code like 2167155753.
Now I want to send the code to TV via IR LED but I cannot found how can I do that. Could you please help me

secgin@gmail.com
Normal user
Posts: 5
Joined: 19 Mar 2020, 18:47

Re: simply send IR code

#2 Post by secgin@gmail.com » 20 Mar 2020, 21:09

I have attached the pictures
Attachments
unnamed.jpg
unnamed.jpg (2.1 MiB) Viewed 1793 times
unnamed (1).jpg
unnamed (1).jpg (1.94 MiB) Viewed 1793 times

User avatar
ThomasB
Normal user
Posts: 690
Joined: 17 Jun 2018, 20:41
Location: USA

Re: simply send IR code

#3 Post by ThomasB » 21 Mar 2020, 02:17

It appears you are using the IR receive Plug-in from the old R120 branch. I suggest flashing to the latest Mega release.

The Mega branch has an updated P016_IR receive Plug-in (Communication - TSOP4838) and the instructions for using it can be found at the top of the source code:
https://github.com/letscontrolit/ESPEas ... _IR.ino#L1

The PO035_IRTX Plug-in (Communication - IR Transmit) is used for transmitting the IR data. Instructions are found at the top of the source code:
https://github.com/letscontrolit/ESPEas ... 5_IRTX.ino

There are also some instructions in the wiki (but I don't know if it has been updated for the latest IR plug-ins):
https://www.letscontrolit.com/wiki/inde ... /IR-Remote

These two IR plug-ins are in the Mega bin files that include _IR_ or _IRext_ in the file names.

I don't use the IR feature; This information is merely being passed along in case some of it helps you out.

- Thomas

secgin@gmail.com
Normal user
Posts: 5
Joined: 19 Mar 2020, 18:47

Re: simply send IR code

#4 Post by secgin@gmail.com » 23 Mar 2020, 19:37

thank you very mutch for your reply
I downloaded and installed the new version of espeasy (ESP_Easy_mega-20200310_minimal_IRext_ESP8266_1M.bin)
Everything seems ok

unfortunatelly, I can receive IR code but I cannot send it.
I received this (551489775) turn off code from TV remote. I want to send same code on tv or IRX receiver but it doesn't work..

I found belowe link that, the code should be 32bit NEC
https://github.com/1technophile/OpenMQT ... de-samples

so I send the command as shown belowe
http://192.168.1.246/control?cmd=IRSEND ... 1489777,32

on tv I couldnot see anything
on IR receiwer; I can only see the light which is on the receiver and in the esp the code don't change.

I am doing a simple mistake I am sure but I cannot solved it. Please help me for this issue.
Attachments
IMG-0137.JPG
IMG-0137.JPG (2.29 MiB) Viewed 1698 times
IMG-0288.JPG
IMG-0288.JPG (2.59 MiB) Viewed 1698 times
IMG-0296.JPG
IMG-0296.JPG (4.11 MiB) Viewed 1698 times
IMG-0299.JPG
IMG-0299.JPG (4.53 MiB) Viewed 1698 times
IMG-0307.JPG
IMG-0307.JPG (2.49 MiB) Viewed 1698 times

User avatar
ThomasB
Normal user
Posts: 690
Joined: 17 Jun 2018, 20:41
Location: USA

Re: simply send IR code

#5 Post by ThomasB » 23 Mar 2020, 22:00

Some debugging ideas:

1. Use serial log (set to info level) and check the log messages when when IR commands are sent and received. The messages may provide some debugging help.

2. Capitalize the NEC protocol keyword, like this:

Code: Select all

http://192.168.1.254/control?cmd=IRSEND,NEC,551489777,32
3. Try the IRSEND command with the repeat parameter, like this:

Code: Select all

http://192.168.1.254/control?cmd=IRSEND,NEC,551489777,32,10
4. Your photo shows that the IR LED is directly driven by the ESP8266 GPIO Pin. Normally a transistor is used to provide sufficient current to drive the LED. Also, when testing the TV's remote operation I suggest placing the IR LED directly on the TV's IR sensor window to ensure a strong/reliable signal.

Other than those ideas, I don't have any other suggestions to help troubleshoot the problem.

- Thomas

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests