Wrong Hz in IRremoteESP8266 - could affect range
Posted: 28 Oct 2017, 09:11
Hello,
I've read several threads about the IR function and even with a transistor in place the range would only be a couple of meters. I had it worse than that and only could get about 50cm. So me and a friend examined the signal with an oscilloscope and saw something quite interesting. The frequency generated by the plugin was around 34 000 Hz and not the desired 38 000 Hz. Changing the following line in IRremote8266.cpp got it very close to 38 000 Hz.
File: IRremoteESP8266.CPP
Line: 490 : halfPeriodicTime = 500/khz; > halfPeriodicTime = 465/khz;
Now, in my case this didn't make much of a difference since I found out I had gotten the wrong Ir-diode for my project but this could have an impact on range depending on the receiver you're having.
This was tested on a NodeMCU V3 and latest ESPEasy dev firmware.
,Olle
I've read several threads about the IR function and even with a transistor in place the range would only be a couple of meters. I had it worse than that and only could get about 50cm. So me and a friend examined the signal with an oscilloscope and saw something quite interesting. The frequency generated by the plugin was around 34 000 Hz and not the desired 38 000 Hz. Changing the following line in IRremote8266.cpp got it very close to 38 000 Hz.
File: IRremoteESP8266.CPP
Line: 490 : halfPeriodicTime = 500/khz; > halfPeriodicTime = 465/khz;
Now, in my case this didn't make much of a difference since I found out I had gotten the wrong Ir-diode for my project but this could have an impact on range depending on the receiver you're having.
This was tested on a NodeMCU V3 and latest ESPEasy dev firmware.
,Olle