![]() Arduino #1 simply sends the commands LEDON and LEDOFF to the Arduino #2. Communication is one way only and there is no error checking. In the first example we get one Arduino to control an LED connected to a second Arduino. A simple way to do this is by using a voltage divider made from 2 resistors I generally use 1 x 1K and 1 x 2K.Īrduino TX (pin 9) to BT module RX pin via a voltage dividerīoth Arduinos have the same connections to the BT modules. However, the Arduino TX pin needs to be converted to 3.3v before connecting to the BT modules RX pin. 5V Arduinos will read 3.3v as HIGH so the BT modules TX pin can be connected directly to the Arduino RX pin. Most HC-05s and HC-06s have 3.3v TX and RX pins. open software serial connection to the Bluetooth module.īTserial.begin(9600) Connecting the Bluetooth Modules This can be changed but make sure you match the baud rate used when opening the software serial connection. The AltSoftSerial library can be downloaded from and it will need to be added before you can compile the example sketches.īoth BT modules are set with a communication baud rate of 9600. To communicate with the BT modules I am using AltSoftSerial which uses pin 8 and pin 9. Having a master and slave setup makes the programming a little easier. This is the one that initiates the connection and in the first example it is the one that sends the commands. I have designated one of the Arduinos as the master device. I am using 5V Arduino Nanos but any kind of 5V AVR based Arduino can be used. The setup process for the slave mode HC-05 is the same as the HC-06 in the previous post. One in master mode the other in slave mode. Before continuing you need to have the Arduinos and BT modules set up as per the previous post. Here we look at using that connection to get Arduinos talking over Bluetooth. You can find it in the Menu easily.In the Connecting 2 Arduinos by Bluetooth using a HC-05 and a HC-06: Pair, Bind, and Link post I explained how to connect a HC-05 to a HC-06 so that when powered they automatically made a connection. > ARDUINO SAMPLE CODE: The Arduino SAMPLE code in C++ is provided in each feature/section of the app so don't have to worry about the code at all. > APP CONFIGURATION: configure your app according to your need i.e send the command which you have coded in arduino device. > REMEMBER/FORGET DEVICE: Set your device "remembered" so the app will quickly connect automatically next time to the same device. ***OTHER FEATURES OF ARDUINO BLUETOOTH CONTROLLER**** ![]() > TIMER is used to set Time duration to ON / OFF the device and show the countdown timer. > VOICE Controller is also available to ease your life. > ON/OFF Buttons are very basic things to use in arduino to test your devices and to make it work perfect. > TERMINAL is used to send any commands using phone keyboard. > DIMMER can be used to high and low the brightness of the leds or the speed of any devices. > REMOTE controller to control cars,vehicles and other related devices. ***TOP FEATURES OF ARDUINO BLUETOOTH CONTROLLER**** You Can use Arduino Bluetooth Controller- All in one for: Once you are connected you will be able to send your own commands to your Arduino board using the keyboard or some fancy buttons Run the app, search for your bluetooth module and connect. ![]() ![]() Let your Android device be a remote control for any micro-controller with a bluetooth module. The Arduino Bluetooth Controller Application make to able to remote control your device with Bluetooth Module and Arduino Board.ĭo you want to control via bluetooth the Arduino project you built? How it is cool to control electrical devices by different ways using the Arduino Bluetooth Controller Application. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |