Questions about Mega IO Expansion Shield V2.1

userHead NooTe94 2012-05-14 19:06:37 4418 Views4 Replies
I have this [url=]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 17:15:05 this responds to my questions :)
Thanks Hector
userHeadPic NooTe94
2012-05-15 17: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...
userHeadPic Hector
2012-05-15 15:40:40 Thanks, it wasn't clear to me :p
Serial1 works :)

I saw on [url=]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 ?
userHeadPic NooTe94
2012-05-15 10: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 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

userHeadPic Hector