Introduction: LC-2000(PA)-P2P 2.4GHz RF Arduino Remote Sketch Upload Demo

This document gives an example of how to use LC-2000(PA)-P2P to finish Wireless Upload. The LC-2000-P2P serial module is working under per to per mode, a Pairs of LC-2000-P2P has contained two unis, one is MASTER and another one is SLAVE, it can remote upload sketch for Arduino UNO, with wireless transparent transmission mode.

For more detail about LC-2000(PA)-P2P, please see the datasheet: LC-2000(PA)-P2P 2.4G RF UART Datasheet View this video , please click:

Step 1:

RF-UNO-CORE is a small volume of the UNO, but it integrates a 2.4GHz wireless module, more powerful than the UNO;
CB-LC-2000 is a adapter plate which is in order to use the MASTER module more easier UC-2102 is a cable to connect the CB-LC-2000 and PC

Step 2: Hardware Connection

The LC-2000-MASTER connection with the CB-2102 together, and the UC-2102 and CB-2102 are connected together, Power connection, + 5V connect to VCC-IN, GND connect to GND.

Now, the hardware connection is complete, and then, we can begin to upload demo. First, we analysis following code, I will share the code at the end of the document.

Step 3: Program Analysis

1. The timer library, we only have to load the library functions in order to use the timer.

2. Define the LED pin and timer’s overflow value.

3. Define the variables we used in the code.

4. Timer function, when tick is added to BLINKTIME, we turn the LED state, and Clears tick value.

5. The loop function, it’s very simple, when The timer count full, we change the pin state of the LED pin.

6. Then, we upload and see what will happen, maybe the process of compilation slowly, so please be patient

Step 4: Upload by Wireless Way

6. Then, we upload and see what will happen, maybe the process of compilation slowly, so please be patient.

7. Upload is completed, and we can see the LED starts flashing.

8. We can change this value “BLINKTIME” to change the LED’s flashing time, so change it and you will find how amazing it is.

Step 5: The Code

#include <MsTimer2.h>

#define PIN_LED 5

#define BLINKTIME 200

unsigned int tick; //Timer tick

boolean flag; //Timer flag

boolean state; //led state

void setup() {

// put your setup code here, to run once:

pinMode( PIN_LED, OUTPUT );

digitalWrite( PIN_LED, LOW );

MsTimer2::set(1, Timer);



void Timer() {

if ( ++tick >= BLINKTIME) {

tick = 0;

flag = true;



void loop() {

// put your main code here, to run repeatedly:

if (flag) {

flag = false;

state = !state;

if (state) {

digitalWrite( PIN_LED, HIGH );


else {

digitalWrite( PIN_LED, LOW );




Step 6: There Is the Video

if you want learn more about the LC-2000-series,please visit