Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

DFRobot I/O Expansion Shield V5 XBee tips?


  • Please log in to reply
6 replies to this topic

#1 Cinelli

Cinelli

    Member

  • Members
  • PipPip
  • 17 posts

Posted 21 July 2011 - 11:12 PM

Having issues with the DFRobot I/O Expansion Shield V5 with RS485 & XBee. (pic attached, link below). Question 1: Does anyone have experience with this or with it and Netduino? Our results have been mixed. To interface with the XBee, we are using Serial.COM1 and it doesn't appear to be getting through. The RS485 is also not working, whereas we have other styles of RS485 shields which work fine. It's not clear what you jump on this, that's not documented though there is a Wiki on the product page with some info at the link below. http://www.dfrobot.c...&product_id=264 Question 2: Has anyone found there to be advantages in setting the XBee baud rate, stop bits and flow control to match the serial communication baud rate etc? Thanks in advance

Attached Files



#2 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 22 July 2011 - 07:30 AM

Question 2:
Has anyone found there to be advantages in setting the XBee baud rate, stop bits and flow control to match the serial communication baud rate etc?

Yes. Actually, it won't work if the settings don't match. My experience with xbees is that they have no baud rate autodetect, so you have to set it manually and on all sides the same.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#3 Cinelli

Cinelli

    Member

  • Members
  • PipPip
  • 17 posts

Posted 22 July 2011 - 06:32 PM

Yes. Actually, it won't work if the settings don't match. My experience with xbees is that they have no baud rate autodetect, so you have to set it manually and on all sides the same.


Thanks, what XBee shield do you like with Netduino?

#4 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 22 July 2011 - 10:00 PM

Thanks, what XBee shield do you like with Netduino?

I currently have this one stacked on my netdubot:
http://www.sparkfun.com/products/9976

But as long as the pins are set out to one of the netduino serial ports, the shield doesn't matter much.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#5 Luca Monaco

Luca Monaco

    New Member

  • Members
  • Pip
  • 3 posts

Posted 28 September 2011 - 03:47 PM

The RS485 is also not working, whereas we have other styles of RS485 shields which work fine. It's not clear what you jump on this


Hello Cinelli.
I bought the DFRobot IO Expansion Shield (v5). I need the rs485 connection.
But I don't know how set the jumper for enabling RS485 and I'dont understand the schema (the picture) on the product wiki page. Can you help me?

#6 Cinelli

Cinelli

    Member

  • Members
  • PipPip
  • 17 posts

Posted 11 June 2012 - 02:28 PM

I am revisiting this RS485/XBee expansion shield. It's the same as this one: http://www.cutedigi....with-rs485.html I still can't get the right jumper settings to make RS485 work. I see per the diagram at pic above that you jump the three pins to activate RS485. It doesn't appear any other jumpers are necessary. Am I wrong? Any insights anyone? Thanks in advance.

#7 Cinelli

Cinelli

    Member

  • Members
  • PipPip
  • 17 posts

Posted 11 June 2012 - 05:48 PM

This is the device Wiki:
http://forums.netdui...h__1#entry15766

The DFRobot Sample Code below references pulling the pins high and low which is lower level and I assume the .Net MF handles that with the com port.

We run the same code with this shield with no problems. Using any of Com1, Com2 or Com3 will not make the DFRobot RS485 work. http://www.cutedigi....or-arduino.html
int ledPin = 13;
int EN = 2;
int val;
void setup() 
{
pinMode(ledPin, OUTPUT);
pinMode(EN, OUTPUT);
Serial.begin(19200);
}
void loop()
{
// receive data
digitalWrite(EN, LOW);//Enable Receiving Data
val = Serial.read();
if (-1 != val) {
if ('A' == val) {
digitalWrite(ledPin, HIGH);
delay(500);
digitalWrite(ledPin, LOW);
delay(500);
}
}
}

Edited by Chris Walker, 11 June 2012 - 06:02 PM.
added [code][/code] tags





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.