IR 5V decoder encoding transmitter & receiver connected to NodeMCU

159 views
Skip to first unread message

Glenn Chapman

unread,
Jun 13, 2018, 2:56:20 AM6/13/18
to SonoffUsers
Hello,

I am looking for assistance please.

I have flashed a NodeMCU ESP8266 (version 5.14.0) with Tasmota and it works just fine.  I have configured to a 18 Generic and chosen TX GPIO1 Serial Out as "08 IRSend" and RX GPIO3 Serial In as "47 IRrecv"


TX to TX, RX to RX Vin to 5V and GND to GND

When I send a command such as IRsend {"Protocol":"NEC","Bits":32,"Data":0xE0E040BF} on console I receive MQT: stat/SonoffTV/RESULT = {"IRSend":"Done"}

However nothing seems to be sent or received through the IR 5V decoder encoding transmitter & receiver.

Can anybody inform me as to what I might be doing wong please?

Thanks in advance
Message has been deleted

Tercio Gaudencio Filho

unread,
Jun 13, 2018, 8:57:56 AM6/13/18
to SonoffUsers
As long as I know, the tasmota is to drive a LED directly, your module may have some kind of modulation.

I did some IR using just an LED and a resistor connected to a GPIO.
--
You received this message because you are subscribed to the Google Groups "SonoffUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
Visit this group at https://groups.google.com/group/sonoffusers.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/742fbe64-9bff-4dfc-b581-343d180b1a32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted
Message has been deleted

Yann Mengin

unread,
Jun 13, 2018, 11:39:08 AM6/13/18
to Tercio Gaudencio Filho, Yann Mengin (Gmail), SonoffUsers
My module seems to work well. I have proper detection when I move in front of the sensor. My problem is that the sensor return “OFF’ status 2 seconds after “ON’. As a consequence the light turns off.

I am trying a turn around solution with automation rules
Thanks 


Tercio Gaudencio Filho

unread,
Jun 13, 2018, 11:48:13 AM6/13/18
to Yann Mengin, SonoffUsers
Yann,

There is 2 options. These modules have 2 pots, for sensitivity and for timing. The second one is responsible for maintaining the output ON, yours must be configured for 2 seconds(All way left).

Also there is a re-trigger jumper, which configures if it will maintain ON after a motion is detected another time.


Adjusting the second pot probably will solve your problem.
--
Atenciosamente,

Tercio Gaudencio Filho
Message has been deleted

Yann Mengin

unread,
Jun 13, 2018, 11:52:01 AM6/13/18
to Tercio Gaudencio Filho, Yann Mengin (Gmail), SonoffUsers
Hi Tercio

I am aware of this but I am not using this motion sensor. Instead I am using the very tiny one that you can buy for a few dollars on line, working in 3.3V. They send their status ON/OFF every 2 seconds and as long as you move in front, they register the ON status but do not send it. The next transmission will be OFF.

I do not want to use the one with the 2 pots because I want to allow the user to tweak the timer through the GUI.

Thanks anyway

Tercio Gaudencio Filho

unread,
Jun 13, 2018, 11:57:47 AM6/13/18
to SonoffUsers
I see, well, in this case, you could delay OFF using rules.
Reply all
Reply to author
Forward
0 new messages