- Tue Jun 04, 2019 7:53 am
#82634
btidey wrote:You don't say how you have wired it up or what pins you are connecting others sensors to. If they are separate then in principle there should be little effect.
The hat itself uses a mosfet transistor to connect the diodes through 51R resistors to the 3.3V supply. The drop of an ir diode will be about 1.5V so there will be about 35mA LED current which is fairly reasonable. Its a pity they didn't use the 5V supply for the LEDS as that would have been a better option keeping the LED current away from the 3.3V electronics.
It is possible the other sensors are loading the 3.3V supply too much but I don't think that is a likely cause as I'd expect random resets if there is an issue with its stability.
The other possibility is that if you are adding in code in the firmware for other sensors then you could be disturbing the timing of the IR signal generation which is quite critical. Some IR libraries do the timing in-line and if there are other interrupts then that could disturb things. The way to check that would be to just wire in the other sensors but not change the firmware from the version that gives you good results.
thanks for the answer.
All sensors are connected to separate pin except BME280 sensor and OLED display that shares the D1 and D2 IC2 PINs.
I have a relè on D5, two touch button and a PIR on different pins (I don't remember exacly what pin)...
Everything is connected to 5V except BME280 that needs 3.3V and the IR shield that is connected on both 3.3V and 5V.
I don't think that is a problem of firmware since if I put the IR blaster nearer to the receiver, it always works.
So it's not a problem of "sometimes works and sometimes not" it's only a problem that the IR signal is weaker when all the sensors are connected.