Figure with bits for IR.

I am learning with IR from Nano...

I am trying to do a project with IR, I wanted to make the unit to learn from the IR then go playback IR out.

I have a program to learn only with Value and Type that's all. (see below program what I did):

#include "IRremote.h"

int receiver = 11;

IRrecv irrecv(receiver);
decode_results results;

void setup()
{
Serial.begin(9600);
Serial.println("IR RECEIVER");
Serial.println("READY");
Serial.println();
irrecv.enableIRIn();
}

void loop()
{
if (irrecv.decode(&results))
{
translateIR();
irrecv.resume();
}
}

void translateIR()
{
switch(results.value)
{
default:
Serial.println(" Received IR Signals ");
Serial.print(" DEC:");
Serial.print(results.value, DEC);
Serial.print(" HEX:");
Serial.print(results.value, HEX);
Serial.print(" OCT:");
Serial.print(results.value, OCT);
Serial.print(" BIN:");
Serial.print(results.value, BIN);
Serial.print(" TYPE:");
Serial.println(results.decode_type);
}
delay(1000);
Serial.println();
Serial.println("READY");
}

It's WORKS perfectly...

The problem is I can't find for the BIT and Freq detecting. Help? THANKS!!

Write the raw values.. There is an example to do that.

I do really need to see any of examples, then I will be good at it.

My goal is when I pressed the remote and the receiver IR to collect a signal, and print out with [Value of key] and [Number Type of brand name] and [Size of Bits] and [Measurement of Frequency].

Measurement of Frequency

To do this you need to have a separate receiver that does not decode the signal (often called a"Learner System"). See AnalysIR for information that may help you.

Thank you, and I do understood about how the IR works. The reason I am asking about the freq because I was trying to make a project as learn IR then Playback IR. The irsend.xxxxx(value, bit) in the programming which is the "bit" is required to figure out by the Frequency.

But if anyone can tell me how to figure out the bits value without manually?

Example:

use RAW IR signals which anything with the Remote, Toys, Candles, Quadchopter, etc....

RECEIVE IR by RAW value + TYPE value + BIT value to [SEND IR] from RAW value + TYPE value + BIT value.

Problem is I can't find how to receive IR with BIT value.

THANKS!