![]() ![]() Thank you for going through this tutorial. ![]() Once you are comfortable with it, you can use it to both send and receive data as well. ![]() Bluetooth communication in arduino is simple and very frequently used. I have not tested the range of the HC-05 bluetooth module, so make sure it is well within range of your PC before experimenting with it.Remember to do the disconnection/reconnection while uploading your sketch (refer to step 4). Upload your sketches in the correct procedure as described in step 4.Also remember to choose the correct 'outgoing' COM port of the bluetooth module to view the data on the serial monitor. Multiple thermometers can be connected on the same wire because every one has it's own internal address. The DS18B20 temperature sensor is an electronic thermometer with a high accuracy. The Arduino sketch is written on Arduino IDE. Arduino Software There are two main elements to the Arduino Software, the temperature sensors, and the Bluetooth module. Choose the correct COM ports and boards while uploading your sketches. The Arduino board reads data from the temperature sensor, digitize it and transmit it through the Bluetooth module.The sensor itself is implemented using Arduino. Make sure that the LED on the bluetooth module is continuously blinking, which indicates that it is powered. You run mobile app, connect over Bluetooth and see the screen of Smartphone or tablet to control the temperature. Your bluetooth module may stop working due to a loose connection.To stay on the safe side, you may use a voltage divider circuit (not given in this tutorial, you will have to look it up) or simply connect your HC-05 Vcc to 3.3V and not 5V. Make sure that your bluetooth module is connected properly.Ensure that all your connections are firm and correct.Make sure of the following points to avoid any problems: Yet, you are likely to come across errors or problems during this experiment if you are new to using bluetooth communication with arduino. However, the data transfer may take a little longer, and small delays (few milliseconds) between successive readings is normal and expected. If all goes well, you should be getting the temperature and time data on your serial monitor at time intervals of 2 seconds. To view the data from zero seconds onwards, press the 'reset' button on your arduino board. Once you have done this, you can open the serial monitor for that port and the temperature sensor data should be dislayed along with the time. Once you have taken note of the 'outgoing' COM port, go to your Arduino sketch, click Tools -> Port and select the port which corresponds to the 'outgoing' port you had taken note of. In my experiment, my 'incoming' port was COM4 and my 'outgoing' port was COM5. Under this tab, you will see your HC-05 module connected to some COM ports. To find out, click the Bluetooth icon on the task bar, select 'Open Settings' and click on the 'COM Ports' tab. To see the sensor data on the serial monitor, we need to first find out on which COM port your bluetooth module is connected. This will demonstrate that the Arduino board can remotely gather sensor data and tranfer it to the PC using bluetooth communication without being connected to it by a USB cable. Once your arduino code has been uploaded, you can connect a power source to your arduino board and disconnect the USB cable connecting your arduino board to the PC. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |