IR Receiver issue

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
Stargrove1
New user
Posts: 5
Joined: 26 Nov 2017, 15:10

IR Receiver issue

#1 Post by Stargrove1 » 13 Jan 2018, 10:27

Hello, I have a problem with the ir receiver TSOP4838, I designed a small PCB to control the multimedia rack in the living room. I used a D1 mini and added a driver for RGB led stripe, an ir transmitter and an ir receiver, in order to keep the pcb simple I used the IO pins close the breakout pins, for the ir receiver I used D0. I have set up everything in the ESP Easy webif, but I didn't receive any logs about ir commands, the osci showed that the receiver was working properly, in order to find the root cause I tried another pin and on pin D6 I can see the logged commands. Is there a restriction about the pins to use or is another setting required? D0 states that the pull up could not be activated, but the signal is ok, no pull up required.

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

Re: IR Receiver issue

#2 Post by Shardan » 13 Jan 2018, 21:03

Hello,

D0/GPIO16 might be a bad idea for this.

The GPIO16 is used for waking up the ESP8266 if you use the deep sleep mode.
In that case GPIO16 has to be connected to RST - it is internally an output of the deep sleep timer in addition to I/O-functions.
On top GPIO16/D0 can not use interrupts due to the use with the DS-Timer.

It has shown that it is better to use GPIO16/D0 as an output if at all.

I'd say try another GPIO pin.

If you're interested you may find a working example of an IR-Transceiver in the Wiki:
https://www.letscontrolit.com/wiki/inde ... /IR-Remote

Regards
Shardan
Regards
Shardan

Stargrove1
New user
Posts: 5
Joined: 26 Nov 2017, 15:10

Re: IR Receiver issue

#3 Post by Stargrove1 » 13 Jan 2018, 21:16

Hi Shardan,

thank you for the feedback, I used a breadboard to check which channels are working, I found that D3 works well. I have reworked the pcb and also added the rc filter for the TSOP4838 since I had some untriggered response codes. Now it works fine.

I have seen the example as well, as mentioned, I also added a driver for RGB strip which already occupy D5-7 and D8 is used to send ir commands.

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

Re: IR Receiver issue

#4 Post by Shardan » 13 Jan 2018, 21:22

Be a bit carefull with placing the RGB LEDs and the TSOP-receiver.

As I've switched my rooms to LED light I get false readings - only in the evening time when the LEDs are on.
It seems that the pulses from LED drivers and even more the PWM from dimming trigger the receiver.

As it is somewhat unlikely that the lights generate the codes you use accidentaly it should not do anything, but it is disturbing...
Anyways i don't see a way out of that.

Regards
Shardan
Regards
Shardan

Stargrove1
New user
Posts: 5
Joined: 26 Nov 2017, 15:10

Re: IR Receiver issue

#5 Post by Stargrove1 » 14 Jan 2018, 09:03

So far it is working quite well, I can control the RGB LEDs, receive and transmit ir commands. Now I will move it to the living room and add some features like activating RGB lights by google home voice commads, activating sorround sound of the audio center.

What helped in my setup against the false commands was to add the rc filter from the TSOP data sheet (0,1µF, 100Ohm) at the power supply.

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

Re: IR Receiver issue

#6 Post by Shardan » 14 Jan 2018, 13:44

I've these filterings on my PCB's.
This is explained int the wiki too, https://www.letscontrolit.com/wiki/inde ... _positives

Anyways: LEDs are pulse driven, even the non-dimmable ones. That fast flicker can do some nasty things to the TSOP.
Regards
Shardan

Who is online

Users browsing this forum: Anthropic Claude Bot [bot] and 9 guests