Any thoughts on this?
Comes with RXD and TXD. The wiki doesn’t mention the hardware nor a similar wiring with other hardware.
Any thoughts on this?
Comes with RXD and TXD. The wiki doesn’t mention the hardware nor a similar wiring with other hardware.
Ok, I’m diving into it!
Wiring is robbed from this picture:
Source is this article: Karl's Home Automation Project - Part 4: MQTT Bridge Updated to Use YS-IRTM IR Receiver & Transmitter with NodeMCU - CNX Software
I went with the newest version 0.7 (Releases · 1technophile/OpenMQTTGateway · GitHub)
and edited the config_IR.h to this:
/*-------------------PIN DEFINITIONS----------------------*/
#ifdef ESP8266
#define IR_RECEIVER_PIN 12
#define IR_EMITTER_PIN 14
Wiring is the following:
RXD = D6 (NodeMCU) = GPIO 12
TXD = D5 (NodeMCU) = GPIO 14
When I watch the serial console after flashing and booting it looks like it’s receiving continually something…
.
WiFi ok with manual config credentials
OpenMQTTGateway mac:
XXXXXXXXXXXXXXXXXXXX
OpenMQTTGateway ip:
XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXX
Connecting to MQTT by IP adress
XXXXXXXXXXXXXXXXXXXX
IR_EMITTER_PIN
14
IR_RECEIVER_PIN
12
ZgatewayIR setup done
RF_EMITTER_PIN
3
RF_RECEIVER_PIN
0
ZgatewayRF setup done
ZgatewayBT HM1X setup done
MQTT connection...
Connected to broker
Subscription OK to the subjects
Rcv. IR
108,108,516,104,102,108,314,102,110,104,102,104,102,104,110,208,104,102,104,102,208,106,210,106,204,106,106,106,98,108,104,422,204,106,106,100,316,210,204,106,106,100,106,106,106,106,310,106,98,106,106,106,308,212,210
--no pub. unknown protocol--
Remaining memory
41800
Rcv. IR
114,96,526,104,102,112,314,104,104,104,110,104,102,104,110,208,104,104,104,102,208,106,314,102,314,104,102,106,110,104,208,104,204,102,104,104,110,208,208,102,104,102,104,104,110,102,518,104,102,112,110,622,208
--no pub. unknown protocol--
Remaining memory
41296
Remaining memory
41296
Rcv. IR
110,100,526,102,104,112,314,104,110,104,102,104,102,104,110,208,104,102,104,102,208,104,314,102,314,102,104,108,104,106,212,98,210,106,98,106,106,212,204,106,106,106,98,106,106,106,520,106,106,100,106,626,210
--no pub. unknown protocol--
Remaining memory
40776
Remaining memory
40776
Rcv. IR
108,102,520,106,106,108,316,106,98,106,106,106,98,108,104,212,106,98,106,106,204,106,316,106,310,106,106,100,104,106,210,104,200,110,104,104,110,208,208,102,104,102,104,104,110,102,518,104,102,112,110,622,208
--no pub. unknown protocol--
Remaining memory
41024
Remaining memory
41016
Rcv. IR
114,100,518,104,104,112,314,104,104,102,112,102,104,104,110,208,104,102,104,104,208,104,314,104,314,102,104,104,110,104,208,104,208,104,102,104,110,208,202,104,110,104,102,106,110,104,518,104,102,106,110,622,210
--no pub. unknown protocol--
Remaining memory
40776
Remaining memory
40776
Rcv. IR
110,102,518,106,98,114,316,106,98,106,106,106,98,106,106,210,106,98,106,106,204,108,316,106,310,106,106,100,106,106,210,98,212,106,98,108,104,212,204,106,106,106,98,108,104,106,520,106,106,100,104,626,212
--no pub. unknown protocol--
Remaining memory
40776
Remaining memory
40776
Rcv. IR
108,102,520,106,106,114,314,102,110,104,102,104,102,104,110,208,104,102,104,102,208,104,314,102,314,102,104,112,110,104,208,102,208,104,102,104,110,208,208,102,104,102,104,104,110,104,516,104,102,112,110,622,208
--no pub. unknown protocol--
Remaining memory
40776
Rcv. IR
110,102,518,102,104,112,312,104,102,112,102,104,104,104,110,208,104,102,104,104,208,104,314,104,314,102,104,104,110,104,208,104,208,104,102,104,110,208,202,104,110,104,102,104,108,102,524,104,102,104,110,622,208
--no pub. unknown protocol--
Remaining memory
40776
Remaining memory
40776
Rcv. IR
108,102,520,106,106,108,316,106,98,106,106,106,98,108,104,212,106,98,106,106,204,106,316,106,310,106,106,100,104,106,210,98,210,106,98,108,104,212,204,106,106,106,98,106,106,106,520,104,104,104,110,622,208
--no pub. unknown protocol--
Remaining memory
40776
Remaining memory
40776
Rcv. IR
110,104,518,102,104,112,314,104,110,104,102,104,102,104,110,208,104,102,104,102,208,104,314,102,314,102,104,112,110,104,208,102,208,104,102,104,110,208,208,102,104,102,104,104,110,104,516,104,102,112,110,622,208
--no pub. unknown protocol--
Remaining memory
41024
Remaining memory
40776
Rcv. IR
114,100,516,104,102,112,314,102,110,104,102,104,102,104,110,208,104,102,102,106,204,106,316,106,308,106,106,100,104,106,212,98,210,106,98,106,106,212,204,106,106,106,98,106,106,106,520,106,106,100,106,626,210
--no pub. unknown protocol--
Remaining memory
40776
Remaining memory
40776
Rcv. IR
104,106,520,106,106,114,316,106,98,106,106,106,98,106,106,210,106,98,106,106,204,108,314,102,314,102,104,104,110,102,208,104,208,102,104,104,110,208,208,102,104,102,104,104,110,102,518,102,104,112,110,622,208
--no pub. unknown protocol--
Remaining memory
40776
This happens without doing anything. When I take a remote and hit some buttons it look nothing happens related to that action.
I’m helpful for any ideas and help how to get this running!
Hello,
As @petricam suggested this module is not supported as it is by OMG.
You can remove the led and the receiver and connect it to the board (the emitter with a resistor and the receiver without) or if you don’t want to break your module to find it separately.
Infrared emitter led are quite easy to find on old remote control.
Regards
Sad, I bought this one because it was supposed to work. Anyway I’m looking for solderfree and breadboardfree solution
Does something like this work with openmqttgateway?
Basedon the 38KHz IR Transmitter Sensor
Can be used for remote control
Power Supply : 5V
Interface : Digital
Modulate Frequency : 38Khz
Pin Definitions : (1) Output (2) Vcc (3) GND
Can be compatible with Wrobot Digital 38KHz IR Receiver Sensor
Apply to a variety of platforms including Arduin/51/AVR/ARM
Cable length: Approx.20cPackage Including:
1 Infrared Sensor Receiver Modules
1 Infrared IR Transmitter Sensor Modul
1 cable
I is supposed to work with pajhister solution below not with OpenMQTTGateway
You know, the OMG solution is not so far from the one you propose:
Any comments if the linked two modules do the job with OMG? Question is if I can dispense the extra resistors and just use the modules directly wired to a esp8266 board (wemos d1 mini or nodemcu).
Thanks for the link to prahjister’s solution. I will give a look for the use with the ys-irtm!
The receiver should work as it is.
For the emitter I don’t see if there is a resitor included, if not you need to add one. If you don’t add you risk to burn your LED and your ESP board.
Does it make sense to open an issue on the OMG github repo and ask to support the ys-irtm module? I just gave a short look into prahjister repo and it looks like a old and unmainted fork from OMG?
Did I mentioned that I like maintained software
Yes you can open an issue and ask prahjister if he wants to make a pull request. If he agrees to do it or someone else we will integrate the code, if not we will close the issue.