Pages: [1]   Go Down
Author Topic: Trying to communicate serial between Mega and duemilanove  (Read 1410 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey!

I am trying to send send data from my Mega to a Duemilanove.

Both boards are set up on only 300 baud, TX and RX and ground are connected correctly.

A code like Serial1.println("SOUND"); will only result in random (but the correct count) characters on the Duemilanove.

Does the wires need to shielded or something?


 
Logged

Ontario
Offline Offline
God Member
*****
Karma: 25
Posts: 875
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you have your Duemilanove connected to a USB?  The USB connection uses the UART, and there is only one.  Talking simultaneously on the USB and pins 1 & 2 to the same Arduino is not going to work all that well.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 610
Posts: 49033
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Both boards are set up on only 300 baud, TX and RX and ground are connected correctly.
Why so slow? If the boards are hard-wired, you can bump that speed all the way to 115200.

Quote
Does the wires need to shielded or something?
How long are they? What do they run near?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanx for your replies.

Yep indeed. My Duemilanove  is connected over USB. I had to see what was sent:-)
Well! I must try some LED flashing then;-)

PaulS: I only ran at that speed to rule out that it was not a speed issue.




Logged

Pages: [1]   Go Up
Jump to: