Give more details about your project
What kind of data do you want to compress (text, sound, images)? And do you want to be able to compress & decompress the data in the microcontroller or only to decompress it (the compression to be done in a PC)?
The choice of the optimal algorithm depends on the answers of the above questions. And note that the fastest algorithms achieve lower compression ratio.
Give more details about your project
What kind of data do you want to compress (text, sound, images)? And do you want to be able to compress & decompress the data in the microcontroller or only to decompress it (the compression to be done in a PC)?
The choice of the optimal algorithm depends on the answers of the above questions. And note that the fastest algorithms achieve lower compression ratio.
The most suitable compression algorithm for you is IMA-ADPCM. It can be easily implemented in a small microcontroller. The IMA-ADPCM algorithm takes 16-bit samples and compress them down to four bits each, that is 4:1 compression ratio.
The compression is lossy and the reconstructed sound is not identical to the original. There are a lot of different audio and speech compression algorithms which achieve better compression and quality, but they require DSP or powerful microcontrollers.