Arduino-Wireless Programming

Last revision 2025/12/24

This article explains how to perform wireless programming on Arduino using BLE technology. It provides detailed instructions for configuring devices as CENTRAL and PERIPHERAL, using AT commands, and uploading sketches wirelessly.

Wireless Programming via BLE

In this section, we will learn how to Upload the sketch on air via BLE.

Tools required

1.There are two different roles of BLE devices , CENTRAL and PERIPHERAL. So if we want establish transparent communication, one device should be configured to CENTRAL, while the other should be configured to PERIPHERAL.

2.Turn the switches to "AT"(Before V1.7)/Input "+++" (After 1.8) in the Serial port to enable the AT command mode.

3.Connect them with computer.

4.For the CENTRAL device, sending the following AT command :

Input : AT+SETTING=DEFCENTRAL<CR+LF> Answer(Return):OK
Input : AT+BLUNODEBUG=OFF<CR+LF> Answer(Return):OK

5.For the PERIPHERAL one, sending the following AT command :

Input : AT+SETTING=DEFPERIPHERAL<CR+LF> Answer(Return):OK
Input : AT+BLUNODEBUG=OFF<CR+LF> Answer(Return):OK

6. "AT+BLUNODEBUG=OFF" will make Wireless Programming more stable. However in this mode, you can not monitor the Serial port through USB on PC.

7. Turn the switches to "NORM"(Before V1.7)/ Input "AT+EXIT"(After V1.8) to exit AT communication mode.

8. Unplug the USB connection of the PERIPHERAL one, and use other external power supply like battery.

9. In seconds, the Link LED will be on, which means they have connected.

10. Click Upload, and sketch will be successfully uploaded to the PERIPHERAL device.

NOTE:
You have to choose the board of receiver in the setting "Tools > Board", i.e. if the sender is Bluno and the receiver board is Bluno Mega2560, then you should choose Mega2560.
The wireless programming can be done in bi-way between the CENTRAL and PERIPHERAL BLE devices, but the speed is different, i.e.

  • CENTRAL -> PERIPHERAL 2KB/s
  • PERIPHERAL -> CENTRAL 4KB/s

Was this article helpful?

TOP