evive can be used for wired communication as well as wireless communication. Wireless communication has more flexibility as compared to wired communication as it can be a mobile.
Bluetooth is a very basic wireless network which can be interfaced using Serial communication. Let us have some fundamental knowledge about Serial communication
Serial Communication transfers one bit at a time so it has some speed of transmission called baud rate which is expressed in bits per second (bps). Widely used bauds are
Serial Communication has two wires named Tx and Rx (Transmitter and Receiver) they are always cross connected (Tx —> Rx and Rx —> Tx)
To set up Bluetooth we have to transmit a set of codes which are known as AT commands.
AT commands for any device can be found in the datasheet of a device.
AT commands are English like words which are most likely in CAPITAL letters and they respond in OK, Error or Answer.
In this example, we are using HC-05 Bluetooth 2.0 module, here we will setup a Bluetooth device by changing its Name, Password, Baudrate.
For this code to work Bluetooth should be in AT mode follow following instructions
You can enter your own AT commands by uploading code given below and setup on Serial Monitor but the instructions will remain same for both of them.