DFRobot Expansion I/O Shield V.5 & XBee HC-06 problems..
have A problem with the DFRobot Expansion IO Shield V5.0
Was it discontinued because it did not function?
Here are my products with links
DFRobot Expansion I/O Shield V.5
HC-06 Bluetooth Bee Bluetooth Wireless Module
There does not seem to be much information on how to get into AT mode with this device. I looked at the v7 wiki but not much there either.
My pins are in the default positions. I am not sure where to put them to get the bluetooth in AT mode. Any help would be appreciated.
Also when I run this passthrough code
Code: Select allvoid setup()
{
// Set up both ports at 9600 baud. This value is most important
// for the XBee. Make sure the baud rate matches the config
// setting of your XBee.
XBee.begin(9600);
Serial.begin(9600);
}
void loop()
{
if (Serial.available())
{ // If data comes in from serial monitor, send it out to XBee
XBee.write(Serial.read());
}
if (XBee.available())
{ // If data comes in from XBee, send it out to serial monitor
Serial.write(XBee.read());
}
}
I get gibberish from the serial monitor. This is a copy paste from the monitor
õ¥%åJ^õ¥%åJ€�¨,J€�¨,êþõ¥%åJ€õ¥%åJ€õ¥%åJ€õ¥%åJ€õ¥%åJ€
õ¥%åJ€õ¥%åJ€õ¥%åJ€õ¥%åJ€õ¥%åJ€õ¥%åJ€õ¥%åJ€õ¥%åJ€õ¥%åJ€
õ¥%åJ€õ¥%åJ€÷¥%åJ€õ¥%åJ€õ¥%
I have tried various bits of code to communicate to the Bluetooth module and I get unreadable replies.
I have also tried other serial monitors as well and get the same thing...
My questions are these
How can I get into AT Mode with this setup? I have no switches on my units.
Why am I getting gibberish in the serial monitor? I have set the baud to be 9600 for the monitor
Thanks in advance for any help.
XBee.begin(9600);
Sorry I am not familiar with the library which include "XBee.begin(***);" This bit of code seems dealing with configuring the Xbee module's serial baud rate. But I am not sure, you may better look into its manual book or its library Description, etc to confirm it. Usually, we use Xbee official software "XCTU" to configure the module.
Leff
XBee.begin(9600);
Serial.begin(9600);
Is it something else I am missing?
Is there another place I can do it? catttdaddy2000
No my baud is 9600... I also have NL&CR selected but still get gibberish....
I am using an Arduino UNO. catttdaddy2000
Welcome!
1 You may need the module to enter Xbee's AT mode_Xbee adapter, the expansion shield could not do that job.
2 What's the baud reat setting on your monitor, it might not be 9600 so you got the gibberish. Check it please!
Btw, what's the arduino controler you use? Leonardo? I guess the leonardo or mega because I saw the code below:
if (Serial.available())
{ // If data comes in from serial monitor, send it out to XBee
XBee.write(Serial.read());
}
if (XBee.available())
{ // If data comes in from XBee, send it out to serial monitor
Serial.write(XBee.read());
}