Close

Hamming 24,16 ECC

A project log for LoFi

LoFi is a very low cost ($5), small, auto-transmitting module. Preassembled and preprogrammed. Simply attach to your appliances or projects!

david-cookDavid Cook 06/21/2014 at 22:590 Comments

LoFi uses Hamming error-correcting codes to detect and correct transmission errors. I've chosen a version that is not the most data efficient, but is a reasonable compromise because:

I was surprised on how poorly the textbook code performed on an Atmel AVR processor. I wrote a new implementation that reduced it to 55 bytes of program space and a faster run time.

The resulting library is available in the links section.

There is more information about Hamming codes and this implementation, if you are interested:

http://www.robotroom.com/Hamming-Error-Correcting-Code-1.html

Discussions