Inexpensive infrared (IR) remote controls utilize a 36-40KHz modulated carrier wave at a 940nm wavelength for efficient indoor signal reception. Vishay Semiconductors' TSOP1836 IR demodulator is commonly used for detecting these signals by stripping the carrier frequency and producing an active-low output. The author created a software project to decode NEC protocol IR signals from remotes, which encode 32 bits per command using pulse distance modulation with self-verifying inverted values. Initial decoding involves measuring timed 'mark' and 'space' periods based on a 562.5 microseconds unit. Using the Seeed Xiao nRF52840 board with a 64MHz Cortex-M4 MCU, the author found micros() timing unreliable due to low resolution in interrupt-driven counters and instead relied on hardware cycle counters for improved timing accuracy when capturing codes. This minimalist approach bypasses bulky existing IR libraries to regain IR remote control functionality on a MacBook for media playback.
Source:
#news_en #infraredremote #necprotocol #microcontroller #bitbanksoftware_blogspot_com

How to read codes from (many) IR remote controls with as little code as possible
Background Inexpensive infrared (IR) remote controls have been ubiquitous in our lives for many many years. This is because the technology i...
#news_en #infraredremote #necprotocol #microcontroller #bitbanksoftware_blogspot_com