How wagiminator/ch32v003-ir-remote works
TinyRemote is a five-button, battery-powered CH32V003 infrared remote. A button press selects its configured command; firmware encodes that command using NEC, Samsung, RC-5, or Sony SIRC timings and drives an IR LED, then can return the MCU to standby. Hardware documentation and enclosure files support the physical device. The protocol implementations and button dispatch live in main.c; the excerpts show protocol encoders and key setup, but omit the dispatch and sleep loop, so those links are documented rather than source-verified.
Main entry points: main.c Remote firmware · IR_Remote_schematic.pdf IR LED output · system.h System functions · gpio.h GPIO helpers
Components 16
Buttons and configuration
- Key mappings
software/ir_remote/config.h
Firmware and protocols
- Remote firmware
software/ir_remote/src/main.c - NEC encoder
software/ir_remote/src/main.c - Samsung encoder
software/ir_remote/src/main.c - RC-5 encoder
software/ir_remote/src/main.c - Sony SIRC encoder
software/ir_remote/src/main.c
Remote hardware
- Five buttons
hardware/IR_Remote_schematic.pdf - IR LED output
hardware/IR_Remote_schematic.pdf - Coin-cell supply
hardware/IR_Remote_schematic.pdf - Remote enclosure
3dprint/IR_Remote_case.stl
MCU support
- GPIO helpers
software/ir_remote/src/gpio.h - System startup
software/ir_remote/src/system.c - System functions
software/ir_remote/src/system.h - CH32V003 definitions
software/ir_remote/src/ch32v003.h
Other components
- User
- IR-controlled device
Connections 19
- User → Five buttons: presses
README.md - Five buttons → Remote firmware: trigger
- Key mappings → Remote firmware: configures
README.md - Remote firmware → NEC encoder: dispatches
software/ir_remote/src/main.c - Remote firmware → Samsung encoder: dispatches
software/ir_remote/src/main.c - Remote firmware → RC-5 encoder: dispatches
software/ir_remote/src/main.c - Remote firmware → Sony SIRC encoder: dispatches
software/ir_remote/src/main.c - Remote firmware → GPIO helpers: sets pins
software/ir_remote/src/main.c - Remote firmware → IR LED output: modulates
software/ir_remote/src/main.c - NEC encoder → IR LED output: emits pulses
README.md - Samsung encoder → IR LED output: emits pulses
README.md - RC-5 encoder → IR LED output: emits pulses
README.md - Sony SIRC encoder → IR LED output: emits pulses
README.md - IR LED output → IR-controlled device: sends IR
README.md - Remote firmware → System startup: uses standby
- System startup → System functions: implements
software/ir_remote/src/system.c - System functions → CH32V003 definitions: uses registers
software/ir_remote/src/system.h - GPIO helpers → System functions: uses system definitions
software/ir_remote/src/gpio.h - Coin-cell supply → Remote firmware: powers
README.md