welcome to Canton-Electronics Store
ARDUINO Sample Code DIY RF Wireless Remote Control with Arduino PT2262 Encoder

ARDUINO Sample Code DIY RF Wireless Remote Control with Arduino PT2262 Encoder

  • Model: CJ018*1+BX003*1
  • Shipping Weight: 0.02Kg
  • 10000 Units in Stock

USD $6.99

  • Product Description
  • Shop Confidence
  • Shipping & Return
  • Customer Reviews
Modules No: RT314;
We provide ARDUINO sample code , please contact after your order at Ebay message . 
arduino core fragment(complete code through ebay message  Request):
//Author: cantone-electonics
//Arduino 1.0
//Arduino uno R3
//Making a wireless remote control with arduino
const int data_out = 2;//encoder DOUT
 //LED pin,When receiving the key from the serial port, LED flash
const int ledPin =  13;    //LED pin
// OSC Resistance is 3.3M
const int Osc_4xCycle = 359; //4 oscillating time periods
const int Osc_12xCycle = 1078;//12 oscillating time periods
unsigned long Temporary[3];//Temporary storage unit
//send:8 Address Bits, 4 Data Bits, Sync bit
void send_data()
void setup() {
  // initialize the LED pin as an output:
  pinMode(ledPin, OUTPUT); 
   // initialize the encoder DOUT pin as an output
  pinMode(data_out, OUTPUT);
void loop()
    //get key from pc serial port
    while (Serial.available() > 0) 
        keydata = Serial.read();
        receive_flag = 1;
    if(receive_flag == 1)//if get key,send key
    receive_flag = 0;
    if((keydata == 'a') || (keydata == 'A'))//trigger A channel relay.
      Temporary[2] = 0xC0;// 0xC0 is A button key
      digitalWrite(ledPin, HIGH);//Turn on led
      send_data();//send code word
       Serial.println(".....trigger A channel relay.....");
    else if((keydata == 'b') || (keydata == 'B'))//trigger B channel relay.
      Temporary[2] = 0x30;// 0x30 is B button key
      digitalWrite(ledPin, HIGH);//Turn on led
      send_data();//send code word
      Serial.println(".....trigger B channel relay.....");
     else if((keydata == 'c') || (keydata == 'C'))//trigger C channel relay.
      Temporary[2] = 0x0C;// 0x0C is C button key
      digitalWrite(ledPin, HIGH);//Turn on led
      send_data();//send code word
      Serial.println(".....trigger C channel relay.....");
     else if((keydata == 'd') || (keydata == 'D'))//trigger D channel relay.
      Temporary[2] = 0x03;// 0x03 is D button key
      digitalWrite(ledPin, HIGH);//Turn on led
      send_data();//send code word
      Serial.println(".....trigger D channel relay.....");
Qty:1 PCS 4channel receiver module
       1 PCS 433M Wireless transmitter module(Does not include Arduino UNO); 


Wireless transmitter module connected with  Arduino uno(replace PT2262 Remote Keyfob
Software control:
How to use:send "a" trigger A channel .

Decoder schematic:



4 channels Receiver Modules ;




Model No.


Operating voltage

5.0VDC ±0.5V

 Working priceple

 Super Heterodyne receiver with decoder , learning type . decoding PT2262, PT2260, PT2240, EV1527 and other learning codeto chip or compatible chips, can learn and store 20 pcs different coded remote control. Intelligently distinguish shock resistance between fixed code and learning code , such as PT2262 and EV1527.

Static current

≤7 mA (DC 5V)

Operating frequency


modulation Mode


Receiving sensitivity

over -102 dBm (50 Ω)


< 5 K bps (at 315 MHz, -95 dBm)

Operating temp.

-10 °C ~ +60 °C
Max rate 1 KHZ
Antenns length
20 cm (315 MHz), 18 cm (433.92 MHz)



Output signal

TTL level , Momentary, Latch, Toggle ,user can set it  by welding, Latch is defult.

Band width

2MHz(315MHz, Sensitivity go down 3dBm test )


A.singnal Non-locking (Momentary)----connect 1  and 2 ;

B.singnal Self-locking (Toggle) ---- connect 2 and 3 ;

C.singnal Inter-locking (Latch) ---- disconnect all  ;

Inter-locking (Latch): 4-way relay each other to switch, when relay A  is working and locked  ,  relay B C D corresponding to switch off; when B is working and locked , corresponding relay A C D swith off ; Only 1 relay is on among 4 relays A B C D;
Non-locking  type (Momentary): Press A and hold it , then A is on.Same as Relay B C D ;
Self-lock type (Toggle): 4 chanels opens and closes independently, 4 chanels can work together ,they don’t affect each other . press A button, A relay of work and locked, press again then  disconnected; Same as B C D .
User guide :
1: Learing ID : Press learning button , LED is on and beginning to learn ;after learning , LED will flash for a while .Then LED will keep being on to learn the next remote. If perss the learned remoter controller , auto-quit learning within 10 seconds;
2: Delete ID : Keep pressing learning button for 5 seconds , LED will be on and enter deleting . LED off means finishing deleting;
3: Antenna with a soft wire or other hard metals (such as whip antenna), try to straighten. Do not go near metal objects;
4: Power supply voltage requires stable and low ripple factor, multi-level filtering (such as adding beads, inductors, capacitors, etc.);
Output mode : 

A.singnal Non-locking (Momentary)----connect 1  and 2 ;

B.singnal Self-locking (Toggle) ---- connect 2 and 3 ;

C.singnal Inter-locking (Latch) ---- disconnect all  ;


Momentary------------Press the Transmitter button A, the receiver relay A is ON, release button A; the receiver relay A is OFF, the same as B/C/D ,Every channel is Independent ;

Toggle---------------Press transmitter button A for 1 time , the receiver relay A is ON, press button A again, the receiver relay A is OFF, the same as B/C/D. Every channel is Independent ;



Press transmitter button A, the receiver relay A is ON, the relay B/C/D is OFF.

Press transmitter button B, the receiver relay B is ON, the relay A/C/D is OFF.

Press transmitter button C, the receiver relay C is ON, the relay A/B/D is OFF

Press transmitter button D, the receiver relay D is ON, the relay A/B/C is OFF.


It also mean .Latched only can keep 1 Channel ON .and it will often have 1Channel is ON.



BX003 2.jpg



Application on Atmega8 AVR microcontrollers :


Item Description 

Technical Data :
     Operating frequency (MHz): 433.92MHz
     Transmit power: more than 10mW;
         Operating Voltage (V):  DC 3-12V ;
          Low transmit of the static power consumption is current consumption : 10 mA ( No transmit No current consumption);
     SAW Frequency stability :±75KHZ;
         Data transfer rate  : 3 kb/s ;
         Operating temperature: -20 ℃ ~ +60 ℃;
        Size : 11x16x5.5MM;
       Type of Output: TTL;
Introduction for Shenzhen Canton-electronics Trading Co.,Ltd :
We specialize in RF Wireless Radio Transmitting Units and Receiving Units, the product include transmitters with case, receivers with relay(s), transmittng modules and receiving modules, are widely applied in RC toy, remote sensing, telemetry, fireworks, industrial control, home&garden application.

Normally shipping is by Airmail from China Post Air Mail or Hong Kong Post Air Mail ,15-60 days shipping time based on different country .
Express is available, shipping time is 2-7 days all over the world, and telephone number is needed. Please contact us first for extra payment .
The Best Prices. By working with Canton-electronics Ltd, you can take advantage of the internet business, cut off the wholesalers cost and other costs, and import your products directly from the manufacturer at incredible prices.
Prompt Delivery. Most units are in stock all the time, standard units will be completed within 1-3 days if they are sold out, it is great help for you if your project must be completed before deadline.
Prompt Service. Mails will be replied within 24 hours We work 6 days  a week.
Return Policy
All mails will be replied to within 24 hours except on weekend and holidays.
Every item is manufactured under Strict Quality-Assurance Guidelines. If you are dissatisfied for any reason, please return the product to us, and we'll refund your money(not  including  shipping fees).
Please ensure that return items are not used.
Return items must be Posted within 7 days of receipt.
Please inform us via email before posting your return package.
We accept PayPal only. 
We only ship item to your PayPal verified address. 
Payment must be received within 3 Days from the date of purchase. 
Please leave note in PayPal when making the payment if you have any special request (colors/size).
Import tax : 
 We will dispatch the item as SAMPLE or GIFT,  label the total amount on the custom declare invoice .
 Import duties, taxes and charges are not included in the item price or shipping charges. These charges are the buyer’s responsibility. Please check with your country’s customs office to determine what these additional costs will be prior to buying.


Online Security
All transactions are secured. The website is provided with an SSL encryption system to protect personal and payment data. We do not sell or ship any items ordered through the Site directly to anyone we know to be under the age of 18. We will not collect and personally identifiable information (e.g. name, address, telephone number and e-mail address), also referred to herein as "personal information", about you unless you provide it to us voluntarily.

Items can be returned for a refund or exchange within 60 days of the date of purchase. But the reason for returns caused by yourself (eg, size, color you choose), cannot be accepted. Special circumstances may require partnership with corporate business partners. For more information, please contact our customer service. We shall ship the items via DHL or USPS Once your order is processed you will receive email notification with shipment tracking number. All delivery standards begin when you receive this email. If order is placed after 3:00 PM CST on Friday or on the weekend, the earliest it will ship is Monday.