IR Transmit

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
freijn
Normal user
Posts: 29
Joined: 28 Jan 2017, 17:48

IR Transmit

#1 Post by freijn » 15 Dec 2017, 23:33

Guys

I am using GIT version: v2.0.0-dev12 and am VERY please with al the new items I found. Many thanks for all the hard work!!

I have connected a IR receiver and made it report the received signals to my Domotcz machine.
Works perfecty !!! Different buttons generate different output on my domoticz on my virtual sensor.

Here is the question:

As I have now the output code of my IR remote control learned by my domoticz ir receiver, I would like to reproduce the code to be able to transmit it via an IR led.

I have read how to connect an IR LED to my EASY_ESP and make it a IR transmitter.
But HOW ?? do I sent the command code learned from the above described receiver to the IR led by my Domoticz ?
or
it here an HTTP command I can sent to the EASY_ESP to sent the IR code to the IR_led ?

Any help ?

Many thanks for reading and help!

Frank

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: IR Transmit

#2 Post by Shardan » 16 Dec 2017, 16:54

Hello,

I have such an environment working but it's a bit tricky.

I've used an arduino with an TSOP 4838 IR receiver and the IRRemote V2.1 library together with the IRrecvDumpV2.ino (inlcuded with the library) sketch.
This sketch gives back some data:
- Protocol, NEC, JVC.......
- Data, a hexadecimal number like 1F7BA2
- Length, the number of transmitted bits.

With the actual version 2.23 this protocols can be decoded:
NEC, Sony, RC5, RC6, DISH, SHARP, JVC, SANYO, MITSUBISHI, SAMSUNG, LG, WHYNTER, AIWA_RC_T501, PANASONIC, DENON.
If the sketch says "UNKNOWN" the remote sends a protocol that can't be decoded at this time.

Beware:
Not all of these protocols are supported by ESPEasy!
The supported protocols are NEC, JVC, RC5, RC6, SAMSUNG, SONY and PANASONIC as far as i know.

These data can be used directly with a HTTP command for ESPEasy.
http://<ip of your ESP>/control?command=IRSEND,<protocol>,<data>,<length>

For example one of the code lines for my LED strip dimmer is:
http://192.168.x.y/control?command=IRSEND,NEC,F700FF,32

There is a possibility to send raw codes too - i remember there was a long thread about that here in the forum.
Anyways the way described above worked for me so i can't say much about sending raw code.

A descrition for a small sized IR transceiver can be found on my wiki user page:
https://letscontrolit.com/wiki/index.ph ... ransceiver
This is a bit outdated as i'm working on a new version.

Regards
Shardan
Regards
Shardan

freijn
Normal user
Posts: 29
Joined: 28 Jan 2017, 17:48

Re: IR Transmit

#3 Post by freijn » 16 Dec 2017, 22:17

Many thanks for taking time for such a well explained answer !!

I stumbled on the the last link as well.

I wil try your NEC example , hopefully I do not have to find this link with raw codes......

The target is to drive a chinese led string via IR.

Again , many thanks !!!

Frank

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: IR Transmit

#4 Post by Shardan » 17 Dec 2017, 01:29

Hm... maybe....

If your stripe uses this remote control:
.
LED-Remote_640.jpg
LED-Remote_640.jpg (94.13 KiB) Viewed 3802 times
.
I can give you the codes. I'm using these LED dimmer myself for some purposes.
The code shown in the example was the "brighter" button, top left on the remote.

Regards
Shardan
Regards
Shardan

Post Reply

Who is online

Users browsing this forum: No registered users and 53 guests