6DOF shield and bluetooth

Hi,
I have this configuration:
Seeeduino Mega
DFRobot 6dof Shield
Bluetooth bee
I am trying to communicate with my pc via Bluetooth.
I define a bluetooth port via Software serial:
SoftwareSerial BluetoothPort(0, 1 );
then I do the rest. The problem is that communication only works one way: the PC receives data from the Seeeduino via BT, but the Seeeduino can't read data coming from PC.
I used the same configuration with a Seedstudio Xbee shield instead of the 6DOF shield and it works perfectly.
I attach the sketch I am using. Does anybody have any instance of BT working both ways with the 6DOF shield (either on an arduino uno or on a mega)?
thanks in advance
I have this configuration:
Seeeduino Mega
DFRobot 6dof Shield
Bluetooth bee
I am trying to communicate with my pc via Bluetooth.
I define a bluetooth port via Software serial:
SoftwareSerial BluetoothPort(0, 1 );
then I do the rest. The problem is that communication only works one way: the PC receives data from the Seeeduino via BT, but the Seeeduino can't read data coming from PC.
I used the same configuration with a Seedstudio Xbee shield instead of the 6DOF shield and it works perfectly.
I attach the sketch I am using. Does anybody have any instance of BT working both ways with the 6DOF shield (either on an arduino uno or on a mega)?
thanks in advance
2014-02-04 06:14:17 Hi folks,
thanks to grey and all the supporting staff at DFRobot. I have exchanged a couple of PM with José and we have found out that the problem was that I was using the bluetooth bee made by seeedstudio, which is theoretically compatible but in fact is not. Now I have bought DFRobot Bluetooth bee ([url=https://www.dfrobot.com/index.php?route=product/product&product_id=193#.Uu-i6bQSm70]https://www.dfrobot.com/index.php?route=product/product&product_id=193#.Uu-i6bQSm70[/url]) and everything works like a charm. Just 2 things:
1) in order to modify the parameters of the BT bee in AT mode you'll need a USB to serial module (like this [url=https://www.dfrobot.com/index.php?route=product/product&filter_name=xbee%20carrier&product_id=588#.Uu-jlLQSm70]https://www.dfrobot.com/index.php?route=product/product&filter_name=xbee%20carrier&product_id=588#.Uu-jlLQSm70[/url])
2) when you upload your sketch on Arduino, remove the BT bee otherwise you'll get an error.
thanks again and enjoy!
nunzio
thanks to grey and all the supporting staff at DFRobot. I have exchanged a couple of PM with José and we have found out that the problem was that I was using the bluetooth bee made by seeedstudio, which is theoretically compatible but in fact is not. Now I have bought DFRobot Bluetooth bee ([url=https://www.dfrobot.com/index.php?route=product/product&product_id=193#.Uu-i6bQSm70]https://www.dfrobot.com/index.php?route=product/product&product_id=193#.Uu-i6bQSm70[/url]) and everything works like a charm. Just 2 things:
1) in order to modify the parameters of the BT bee in AT mode you'll need a USB to serial module (like this [url=https://www.dfrobot.com/index.php?route=product/product&filter_name=xbee%20carrier&product_id=588#.Uu-jlLQSm70]https://www.dfrobot.com/index.php?route=product/product&filter_name=xbee%20carrier&product_id=588#.Uu-jlLQSm70[/url])
2) when you upload your sketch on Arduino, remove the BT bee otherwise you'll get an error.
thanks again and enjoy!

2014-01-24 19:25:42 Hello nunzio,
Did you turn the switch to "run"? According to the schematic, it only can send the data with the switch is "PROG".
The 6 DOF module can receive the command via bluetooth. But it can'r print it in serial port with sample code.(The sample code hasn't the function to print what it received)
What do you want to do with these hardware?
Grey.CC
Did you turn the switch to "run"? According to the schematic, it only can send the data with the switch is "PROG".
The 6 DOF module can receive the command via bluetooth. But it can'r print it in serial port with sample code.(The sample code hasn't the function to print what it received)
What do you want to do with these hardware?

2014-01-23 02:42:38 Hi Grey,
thanks for replying. I have no particular hardware connection. I have put the 6DOF shield on a seeeduino mega and a bluetooth bee on the 6DOF shield. I have even tried with an arduino uno instead of the seeeduino mega. all the individual parts work fine, so I don't think it's an hardware problem.
My code is a bit complicated but in fact all I would need is a sample of 6DOF shield+bluetooth that works. I have used the wiki sample code, it works fine for acquiring the gyro and accelerations, but has no settings for wireless communications. It only uses the standard serial port. If you have any example of code that works with 6DOF+Bluetooth, even just the serial port settings and the pairing, either on arduino or seeeduino mega, that's all I need. All the rest I can sort myself and I will also put it on the forum for the other users.
best
nunzio
nunzio
thanks for replying. I have no particular hardware connection. I have put the 6DOF shield on a seeeduino mega and a bluetooth bee on the 6DOF shield. I have even tried with an arduino uno instead of the seeeduino mega. all the individual parts work fine, so I don't think it's an hardware problem.
My code is a bit complicated but in fact all I would need is a sample of 6DOF shield+bluetooth that works. I have used the wiki sample code, it works fine for acquiring the gyro and accelerations, but has no settings for wireless communications. It only uses the standard serial port. If you have any example of code that works with 6DOF+Bluetooth, even just the serial port settings and the pairing, either on arduino or seeeduino mega, that's all I need. All the rest I can sort myself and I will also put it on the forum for the other users.
best
nunzio

2014-01-23 00:25:14 Hello Nunzio,
What is your mean of the same configuration? The same code? or the same connection?
Could you attach your hardware connection?
Are you using the wiki sample code?
Could you try this one?
[code]void setup()
{
Serial.begin(9600);
}
void loop()
{
if(Serial.available()>0)
{
char inbyte=Serial.read();
Serial.print(inbyte);
}
}
[/code]
It will print what arduino received.(Don't forget to turn the switch to "run" side.)
Grey.CC
What is your mean of the same configuration? The same code? or the same connection?
Could you attach your hardware connection?
Are you using the wiki sample code?
Could you try this one?
[code]void setup()
{
Serial.begin(9600);
}
void loop()
{
if(Serial.available()>0)
{
char inbyte=Serial.read();
Serial.print(inbyte);
}
}
[/code]
It will print what arduino received.(Don't forget to turn the switch to "run" side.)
