Go Down

Topic: Trying to communicate serial between Mega and duemilanove (Read 1 time) previous topic - next topic

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?



gardner

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.

PaulS

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?

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.





Go Up