TITLE: EMULATOR FOR HT6P20B ENCODER ON ARDUINO BOARD
CREATED BY: AFONSO CELSO TURCATO
E-MAIL: acturcato (at) gmail.com
00 – 10-JAN-2014 – Initial release
01 – 13-JAN-2014 – Pin of RF Transmitter changed from 52 to 53 and others changes
The HT6P20B generates a code 28-bit, 22-bit for ADDRESS, 2-bit for DATA and 4-for “ANTI-CODE” (verification code).
The ADDRES is fixed for a given Encoder (each HT6P20 has a different address).
The DATA changes according to the pressed button.
ANTI-CODE is always the same: “0101″.
The complete code contains four main parts: PILOT, ADDRESS, DATA and ANTI-CODE:
– The PILOT is formed by 23 cycles of “0″ and one cycle of “1″;
– The ADDRESS consists of 22 bits (66 cycles);
– The DATA is formed by 2 bits (6 cycles).
– The ANTI-CODE consists of 4 bits (12 cycles). It is always “0101″.
See more details: DECODER FOR HT6P20B ENCODER ON ARDUINO BOARD
Main idea of this project is make possible, through the Arduino, reproduce the operation of an RF remote with HT6P20B encoder (using Arduino + module RF transmitter 433.92 MHz).
First, we need to set a valid ADDRESS CODE. This code can be achieved by the sketch found in the link: DECODER FOR HT6P20B ENCODER ON ARDUINO BOARD.
To run the sketch, set the ADDRESS CODE on function sendAddressCode() and BUTTONS on function sendDataCode(), both inside function sendAllCodes().
If the first attempt does not work, try changing the value of the lambda variable on Setup() function.
Connection of components: Arduino MEGA 2560 R3 + RF Transmitter Module 433MHz + Push-Button.
Download from GitHub: ACT_HT6P20B_TX.ino
If any questions, please comment on this page.
That’s all folks!