Hello,
I read the old posts about using the not working operation to transfer data from one arduino ( use battery) to the other. but I didn't find the solution
the component of the project
1: Uno +MPU6050 + Bluetooth HC-05 + battery 9V
2: Nano + Bluetooth HC-05
the mission is to get the data (Gyro data ) from 1 and transfer it to 2.
it works with attaching both of them to the laptop
It dosen't work if 1 attached to the battery not to the laptop via USB.
CAN ANYONE KINDLY CLARIFY AND SIMPLIFY
A. Why ?
B. does using Serial for Bluetooth needs always the Serial.begin(9600) to get the data from the other
arduino ?
C. do I have to change the bluetooth to ZgBee for example?
D. I tried to play with serial.print code in Master code by changing it to M_BTSerial.write and
M_BTSerial.print . also remove Serial begin(9600) . AND NO RESULT.
the two simple program attached ...
Thanks in advance
Blue_Master_gyro_1.ino (2.04 KB)
Blue_Slave_gyro_1.ino (470 Bytes)
A. probably because the battery has inadequate power. If it is a 9v PP3 battery, almost certainly because it has inadequate power.
B. Unless you have configured them for some rate other than 9600, yes. The baud rate is only a matter between Bluetooth and Arduino, and has nothing to do with the wireless transmission.
C. No
D. No result is no surprise.
Nick_Pyner, Thanks for the answer ,
Then IS there any solution for making it works!?
I have read suggestions to use 3 x AA batteries = 4.5 V and connect to 5V of Arduino.
.
marosaki:
Then IS there any solution for making it works!?
There certainly is, but not with a 9v PP3. Running Arduino off batteries is a black art all of its own, but plenty do it and you will lots of support on this forum. A Uno is not a good place to start, but at least you have it in your hand, although you might be better off with the Nano on a battery instead.
The vital thing to do is come up with decent 5v off-board, thereby avoiding Arduino's regulator. This particulalrly applies to Uno. Consider the 18650 3.7v LiIon. They have a lot of grunt, good life charged on the shelf, and will soon rule the world. The obvious choice is two, with a 5v regulator. I understand people get by with one, using a buck converter to step up.
ieee488:
I have read suggestions to use 3 x AA batteries = 4.5 V and connect to 5V of Arduino.
.
Thanks for reply. It would be heavy for the Purpose of the device. Thanks
Ok, thanks for suggestion and your time , I will work on that
1.''the Nano on a battery instead.''
2.''Consider the 18650 3.7v LiIon. They have a lot of grunt, good life charged on the shelf, and will soon rule the world. The obvious choice is two, with a 5v regulator. ''
Be aware that 2x18650 would weigh about the same as 3xAA. If weight is that serious, you might try 1 plus a converter or perhaps LiPo, which come in a great range of sizes.