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.
- Carte
- Nano 33 BLE · Arduino
- Difficulté
- Difficile
- Thème
- Advanced Peripherals
- Accès
- Offre complète
La tâche
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.
Voici le début de la tâche. Connectez-vous avec l'offre complète pour lire la suite et la résoudre.
Ce que vous obtenez
- Votre firmware est compilé et exécuté sur une carte émulée, puis vérifié par des tests matériels.
- Une explication écrite de la solution.
- Aucune carte de développement ni toolchain locale requise.
Débutant en embarqué ? Commencez par la feuille de route : Apprendre les systèmes embarqués (en anglais)