hi everyone
I am newest at programming.So I have some problem about programming.
I want to sending or transferring data (x,y,z) from mpu6050 to serial port via bluetooth module. I have 2 parts of arduino, hc-05(I configured it with master and slave mode). How can i do this. Please help me.
(serial port+arduino nano+hc-05 slave+hc-05master+arduino nano+mpu6050)
How can i do this.
You create an instance of SoftwareSerial using the pins that you connect bluetooth device too, and chat away.
What is with people these days? Can't ANYBODY do ANY research anymore? Does EVERYONE expect to be spoon fed?
There may be more than one problem here
In the immortal words of some guru round here, Bluetooth is just serial without wires. In principle, it really is that simple. So, are your Nanos able to comminicate with wires?
IF SO, the code is the same. All you have to do is connect bluetooth in place of the wires.
OR there may be a bluetooth<>bluetooth connection problem, so check
http://www.martyncurrey.com/connecting-2-arduinos-by-bluetooth-using-a-hc-05-and-a-hc-06-pair-bind-and-link/
Note that this is a Bluetooth configuration problem more than an Arduino coding problem.
IF NOT there may be a serial input problem so check
http://forum.arduino.cc/index.php?topic=396450.0
OR you haven't the faintest idea of what you are doing and are trying to run before you can walk. So, for some basic bluetooth background, try
http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf
http://homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino