Easy IoT General

DFRobot Expansion I/O Shield V.5 & XBee HC-06 problems..

userHead catttdaddy2000 2015-09-15 06:38:07 8603 Views5 Replies

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.

 

2015-09-16 19:24:10
Code: Select all
  
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.

userHeadPic Leff
2015-09-16 10:38:52 Isnt that what this bit of code does??

Code: Select all
  XBee.begin(9600);
  Serial.begin(9600);


Is it something else I am missing?
Is there another place I can do it?
userHeadPic catttdaddy2000
2015-09-15 20:46:49 Thank you. I will try to pick up an adapter.
No my baud is 9600... I also have NL&CR selected but still get gibberish....
I am using an Arduino UNO.
userHeadPic catttdaddy2000
2015-09-15 19:35:33 Oh, forget to say, the reason why we stopped the production of the expansion shield V5 is that it has been updated to V6 and V7. userHeadPic Leff
2015-09-15 19:34:13 Hello,

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:
Code: Select all
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());
  }
userHeadPic Leff