Close
0%
0%

Program Arduino Wirelessly over Bluetooth

In Arduino, we have to use the Bluetooth module to program it wirelessly

Similar projects worth following
The project describes how to program Arduino wirelessly over Bluetooth.

About Project

HC05 Bluetooth Module

HC‐05 module is a Bluetooth Serial Port Protocol module, specifically manufactured for wireless communication between microcontrollers. It offers switching mode between master and slave mode configuration and communicates via Serial Communication at aa9600 baud rate which is easy to interface with controller. HC05 module operates on 3.3 V but we can attach it to 5V supply voltage as the module comes with onboard 5v to 3.3 V regulator.

Before attaching the Arduino to the computer, press the key button, and then attach it to the Arduino computer. Hold the key button till the Bluetooth module LED begins blinking at an interval of 2 seconds.

Use the Adapter or a 9V battery to power the Arduino. And then go to ‘Devices in your system, turn on the Bluetooth and then attach the Bluetooth module to your system.

Then next find the COM port for the HC05 Bluetooth module. You need to go to ‘Device Manager’, and analyze the COM Ports option. It will show two COM ports, one for incoming and the other for outgoing. We require to choose the second COM port number as we are uploading the program.

Then open the Arduino IDE and choose the blink program, choose the right com port and strike the upload button.

  • 1 × Arduino UNO
  • 1 × HC-05 Bluetooth Module
  • 1 × Resistor 1k ohm
  • 1 × Resistor 2.21k ohm
  • 1 × Ceramic Disc Capacitor, 0.1 µF

View all 6 components

  • 1
    Run a Program

    #include
    SoftwareSerial HC05(2,3);
    void setup()
    {
    Serial.begin(9600);
    Serial.println("Enter AT commands:");
    HC05.begin(38400);
    }
    void loop()
    {
    if (HC05.available())
    Serial.write(HC05.read());
    if (Serial.available())
    HC05.write(Serial.read());
    }

View all instructions

Enjoy this project?

Share

Discussions

nodemcu12ecanada wrote 04/30/2021 at 19:44 point

If you want to program wirelessly try a $4 32 bit NodeMCU and program it with Arduino IDE.

It's far more powerful and less expensive than Arduino Uno or HC-05.

You can also create a free high-res colourful web page for an HMI.

For many money saving projects go to: https://sites.google.com/site/nodemcu12e/

WiFi has far more range than Bluetooth. Most of my devices are in the basement. I program them from upstairs in the living room.

Just click on the local IP address of the device in Arduino IDE to upload.

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates