Program Arduino Wirelessly Over Bluetooth

by hIOTron IoT in Circuits > Arduino

4 Views, 0 Favorites, 0 Comments

Program Arduino Wirelessly Over Bluetooth

how to Program Arduino Wirelessly over.PNG

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

Supplies

Hardware Components

Arduino UNO

HC-05 Bluetooth Module

Resistor 1k ohm

Resistor 2.21k ohm

Ceramic Disc Capacitor, 0.1 µF

Test Accessory, Power Adapter

Software Components

Aeduino IDE

​About Project

hc05 bluetooth module.jpg
arduino over bluetooth.jpg

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 an 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.

Internet of Things Course Training will help you to build a Customized IoT Solutions

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()); }