probonopd / irdb

One of the largest crowd-sourced, manufacturer-independent databases of infrared remote control codes on the web, and aspiring to become the most comprehensive and most accurate one
Other
801 stars 149 forks source link

IR code storage suggestions #10

Closed wormyrocks closed 5 years ago

wormyrocks commented 6 years ago

Hi!

I am starting a project to build the cheapest and most minimal possible Arduino-compatible universal remote. I hope to be able to store up to 24 IR codes internally, with a web app that ties into IRDB to download codes to the device. I'm hoping to use an ATTiny841 with Micronucleus / V-USB for communication.

I'm trying to figure out how little internal memory I can get away with; I'm debating between having the web app compile a hex file with code values stored in PROGMEM and then upload to the device, or to send the code values over serial to an EEPROM.

So I haven't seen this answered in a simple way anywhere else: what is the longest typical IR code that we might see anywhere? For instance, if I put a 2 kB EEPROM on my board, will that be enough to guarantee space for 24 codes?

Thanks! I will keep your team posted as I develop this project. Everything should be open source.

probonopd commented 6 years ago

You can either store the "rendered" form of the codes (on-off-timings) or just the information on how to render the codes plus a renderer. The latter is how commercial universal remotes work, because it is much more efficient for a large number of codes (needs less memory for the codes than storing the rendered timings but needs some memory for the renderer). https://github.com/bengtmartensson/AGirs may be one option. Not sure if it can be made run on an ATTiny841 though.