Artful Bytes

A blog about building and programming hardware.

NEC Protocol Driver (Infrared remote)

April 05, 2023 1 min read

In this video, I develop a simple driver to decode the signal between an IR remote and my robot. The square-like signal follows the NEC protocol, which I decode by detecting the edges through GPIO interrupts, and measure the time between them using the microcontroller's timer peripheral.