NEC IR Remote Decoder
On an Arduino Nano 33 BLE, decode NEC infrared remote frames by measuring edge times yourself: check the inverted bytes, discard broken frames, switch a light and a fan, and handle held-key repeat codes.
- Placa
- Nano 33 BLE · Arduino
- Dificultad
- Difícil
- Tema
- Advanced Peripherals
- Acceso
- Plan completo
La tarea
NEC IR Remote Decoder
A ceiling-fan maker ships a small infrared remote with each fan. The receiver board must decode the remote's NEC frames itself (no library), switch the light and the fan, and handle the remote's "button held" repeat codes for the speed key. Other remotes in the room use the same protocol with other addresses and must be ignored.
Hardware
- Arduino Nano 33 BLE (nRF52840, 3.3 V logic). Serial console on
Serial1(D0/D1), 115200 baud.Serialis USB and is not seen by the tests. - D2: IR receiver module output (demodulated, idle
HIGH,LOWwhile infrared light is received). Use the internal pull-up. - D4: LIGHT relay, D5: FAN relay, D6: SPEED-UP indicator LED (with a series resistor to GND), all
HIGH= on.
Este es el inicio de la tarea. Inicia sesión con el plan completo para leer el resto y resolverla.
Qué incluye
- Tu firmware se compila y ejecuta en una placa emulada y se comprueba con pruebas a nivel de hardware.
- Una explicación escrita de la solución.
- No necesitas placa de desarrollo ni toolchain local.
¿Nuevo en embebidos? Empieza por la hoja de ruta: Cómo aprender sistemas embebidos (en inglés)