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.
0:00 Intro
1:30 New project
4:00 Driver interface (ir_remote.h)
5:55 Timer peripheral
15:27 GPIO interrupt
16:45 NEC protocol
18:22 My first solution
19:00 A simpler solution
25:00 Ring buffer
27:30 Test it
29:09 Handle "held" button
33:19 Move to main project
34:00 Trace button press
37:10 It works!
38:00 Commit
#embeddedsystems #cprogramming #microcontroller
🌍 Related links
github.com/artfulbytes/nsumo_...
techdocs.altium.com/display/F...
🌍 Find me here
GitHub - github.com/artfulbytes
Website - www.artfulbytes.com
👨💻 About me
Hi and welcome. I'm Niklas, an embedded systems engineer from Sweden. On this channel, I make practical videos about embedded systems or, in general terms, about building and programming hardware.
Негізгі бет Ғылым және технология NEC Protocol Driver (Infrared remote) | Embedded System Project Series #20
Пікірлер: 12