Hi guys,
I'm trying to send data from bluetooth module to my mobile/PC.
I think I have everything I need:
-Arduino Uno
-Accelerometer ADXL345
-hc-05 - bluetooth unit.
I have connected both the units and they are successfully showing the readings in serial monitor.
But i want to send the accelerometer readings from my bluetooth unit to my device(One plus 6.
please help me in that.
Thank you for your help!
In order to keep the hardware serial port (USB) for program upload, debug and program output you will need to put the HC05 on a separate serial port. With an Uno that means a software serial port. There are several software serial libraries. The SoftwareSerial library that comes with the IDE is not the best, but it is, arguably, the easiest to use. Using software serial you would, more or less, send data to the HC05 the same way as you print to serial monitor. There are many ways to get the data from the HC05 to your device. From simple Bluetooth terminals to custom programs written in your favorite language. The software at the other (your device) end is out of the scope of this forum.