Replacing a camera remote costing less than £5 became a much larger project for Nevyn, who shared OpenIR on Hackaday.io. The work began in 2013 after a Nikon D70 remote stopped working, then expanded toward a programmable infrared controller with several ways to receive commands. Its most useful design choice is about where the work happens: let a PC prepare the configuration, and give the small microcontroller data it can use directly.
That division mattered because the free IAR tools used for the STM8S imposed an 8 KB code limit. Rather than spend that allowance translating user-friendly settings into hardware values, OpenIR moved that translation into a Windows application.
The PC prepares the timing data
OpenIR’s infrared commands consist of alternating periods with the IR signal on and off. The carrier frequency and the timing of those periods are separate settings: one defines the modulation, while the other defines the command sequence.
In the February 15, 2015 configuration update, Nevyn described converting the requested carrier frequency into Timer 1 PWM counter values on the PC. Sending those values, rather than a frequency that the STM8S would then have to translate, reduced the work left to the firmware. It also let the configuration application check whether the requested setting could be represented before sending it.
The Windows program maintained a byte-level representation of the EEPROM alongside controls for editing human-readable settings. An EEPROM dump displayed the stored bytes for debugging. That made the division unusually tangible: the PC dealt with names, settings and validation; the remote received the compact representation it needed.
The progress was incremental. On February 1, 2015, the WinForms application communicated with an STM8S Discovery board over TTL serial and implemented EEPROM reading. By the February 22 pulse-storage update, Nevyn reported that the application could store and retrieve EEPROM contents and described an editor for command pulse sequences.
Even command names have a memory cost
The pulse-storage design reserved eight bytes for each command’s name, followed by a transition count and pairs of bytes holding timer counter values. The STM8S didn’t need the name to transmit a command—it could work from a command number—but the Windows interface needed something more meaningful to show the user.
Keeping the name in the remote’s memory therefore served the configuration interface rather than the transmitter. Nevyn explicitly weighed that convenience against capacity: longer names would leave less room for commands.
The editor represented a sequence as durations, beginning with an on period and alternating off and on thereafter. A graphical waveform accompanied the duration list. This was a move beyond hard-coding one camera command: the timing sequence became editable data rather than a special case buried in firmware.
The hardware progressed further than the connectivity roadmap
A working baseline was already documented in the August 23, 2014 log: Revision A could send one IR sequence when its onboard switch was pressed. The serial connection was routed to FTDI and RedBear BLE board ports, while the broader project goal included PC, Raspberry Pi, Bluetooth and Electric Imp connectivity. Those goals shouldn’t be mistaken for demonstrated end-to-end support for every interface.
The April 5, 2015 Revision B update removed the output AND gate because software now controlled the pulses. It also corrected battery-connection placement, moved the power LED and clarified board markings. On April 28, 2015, Nevyn reported that the new boards had arrived—not that they had completed testing.
The project is tagged as shelved, and those are the latest dated hardware developments in the available excerpts. Nevyn also linked an OpenIR repository for hardware files and source code.
OpenIR’s lasting lesson is the boundary between configuration and execution. A small controller needn’t understand every user-facing setting if a host can turn those settings into usable timing data first. For anyone extending this design, the next useful test would be to load several named sequences, read them back, and check the transmitted timings—testing that boundary rather than merely adding another connection method.
Source: OpenIR - Infrared Remote Control