Forum >Questions about Mega IO Expansion Shield V2.1
Questions about Mega IO Expansion Shield V2.1

Hi,
I have this [url=http://www.dfrobot.com/wiki/index.php?title=Mega_IO_Expansion_Shield_V2%28SKU:DFR0165%29]shield [/url] but i'm bit lost on XBee(s) and SDCard reader access.
I want to use XBee COM1 (for a XBee bluetooth module) and the SDCard reader but I don't find how to do this :(
I kept TX=0,RX=1 for usual USB connection to Arduino software (so I dont want to use XBee COM0).
I assume XBee COM1 have digital pins, so I use a SoftwareSerial(2, 3). Maybe i'm wrong here ?
I got the LED Link light on but nothing come on SoftwareSerial object :(
In my projet, I have 20 servos (i'ts a biped robot ;)) using dpin 15, 16, 17, 18, 19, 20, 21, 22, 23, 28, 29, 41, 42, 43, 44, 45, 46, 47, 48, 49.
I have this [url=http://www.dfrobot.com/wiki/index.php?title=Mega_IO_Expansion_Shield_V2%28SKU:DFR0165%29]shield [/url] but i'm bit lost on XBee(s) and SDCard reader access.
I want to use XBee COM1 (for a XBee bluetooth module) and the SDCard reader but I don't find how to do this :(
I kept TX=0,RX=1 for usual USB connection to Arduino software (so I dont want to use XBee COM0).
I assume XBee COM1 have digital pins, so I use a SoftwareSerial(2, 3). Maybe i'm wrong here ?
I got the LED Link light on but nothing come on SoftwareSerial object :(
In my projet, I have 20 servos (i'ts a biped robot ;)) using dpin 15, 16, 17, 18, 19, 20, 21, 22, 23, 28, 29, 41, 42, 43, 44, 45, 46, 47, 48, 49.
2012-05-16 01:43:10 If you use the pins for serial communication then dont use them for anything else.
So if you use pins 15,16 for serial com, then dont use those for servo control
If you are not using pins 17,18 for serial com, then you can use them for anything you want...
1 pin 1 use...
Hector
So if you use pins 15,16 for serial com, then dont use those for servo control
If you are not using pins 17,18 for serial com, then you can use them for anything you want...
1 pin 1 use...

2012-05-15 23:40:40 Thanks, it wasn't clear to me :p
Serial1 works :)
I saw on [url=http://arduino.cc/it/Main/ArduinoBoardMega2560]Arduino 2560 reference[/url] than dpin 15, 16, 17, 18, 19 are used for Com port... so must I avoid to use them for my servos ?
NooTe94
Serial1 works :)
I saw on [url=http://arduino.cc/it/Main/ArduinoBoardMega2560]Arduino 2560 reference[/url] than dpin 15, 16, 17, 18, 19 are used for Com port... so must I avoid to use them for my servos ?

2012-05-15 18:24:01 Hi,
Please take a look at the MEGA board, you will see that it has some markings on it. The MEGA board has 4 serial ports
0,1,2,3
0 is used for USB Com; Serial.begin
1: Serial1.begin...etc...
The SD card should be using the ISP port, you might need to modify the sample code provided with the Arduino IDE to make it work with the MEGA ISP configuration.
You do not need to use software serial
Hector
Please take a look at the MEGA board, you will see that it has some markings on it. The MEGA board has 4 serial ports
0,1,2,3
0 is used for USB Com; Serial.begin
1: Serial1.begin...etc...
The SD card should be using the ISP port, you might need to modify the sample code provided with the Arduino IDE to make it work with the MEGA ISP configuration.
You do not need to use software serial
