Arduino Mega Problem :(

I'm running this simple code

void setup()
{
   Serial.begin(9600);
   Serial1.begin(9600);
   Serial2.begin(9600);
   Serial3.begin(9600);
}
int i;
void loop(void)
{ 
  Serial.print("Serial PC: ");
  Serial.println(i);
  Serial1.print("Serial 1: ");
  Serial1.println(i);
  Serial2.print("Serial 2: ");
  Serial3.println(i);
  Serial3.print("Serial 3: ");
  Serial3.println(i);
  delay(1000);
  i += 1;
}

It will print to the pc but not on serial rx/tx 0 1 2 or 3

I've done a loopback test on my serial connection (Not arduino) at baud 9600 and it works fine
but when i plug it into the arduino it wont work, i've checked and double checked the connections and the arduino is not sending the print/println

I've selected Mega 2560 from the IDE... i have no idea what else the problem can be?!

What is connected to the other serials? And are your grounds connected?



It's connected to an AXE027 cable which has 22k and 10k resisters including ground to the arduino

I dont get it at all, it was working a few days ago..
I also noticed that when i'd send information using the RX/TX Zero connections it would flash RX/TX but now it dont? so wth is this all about.. the board aint even a month old!

Elitism:
I dont get it at all, it was working a few days ago..
I also noticed that when i'd send information using the RX/TX Zero connections it would flash RX/TX but now it dont? so wth is this all about.. the board aint even a month old!

lots of folks having the same problem
try
http://arduino.cc/forum/index.php/topic,83079.0.html

I've been using the same arduino 1.0 since it worked last time?
I can upload sketches without problem too!

It's just the RX/TX pins from 0 to 4 aint sending/receiving at all, but if i connect a common cathode rgb to 3.5volts and red to any pin they do flash when sending information so idk wth is going on?

Do i have to invert the signals or something?

xvjeko:
lots of folks having the same problem
try
http://arduino.cc/forum/index.php/topic,83079.0.html

I don't see how that relates in any way to the issue here.

Elitism:

[quote author=James C4S link=topic=110507.msg830039#msg830039 date=1339996259]
What is connected to the other serials? And are your grounds connected?
It's connected to an AXE027 cable which has 22k and 10k resisters including ground to the arduino

I don't understand what you mean. You have this cable connected to one of the other Serial ports on the MEGA?

I don't understand what you mean. You have this cable connected to one of the other Serial ports on the MEGA?

Just one serial port, i'm getting symbols like this comming through now ????x?,'????

I've tried tieing down the tx of the arduino serial with 20 different types of resisters from the sparkfun resister kit, I'm now assuming the polarity has to be inverted but... i don't know how to do that..

God if i cant get help with this today i'm gonna snap the board in half! n go with mbed instead :astonished:

This is all im getting from the TX0 pin on my terminal

It's ment to be printing "Arduino"

? ??::??????+e?????o*?????j
? ??::??
????+e??{??V??????j
? ??::??
????+e??{??V?
?????j
? ??::??
????+e??{??V?? ??::??????+e??{??V?? ??::??
????+e??{?vV??????j
? ??::??
????+e??{?VV?
???t??
? ??::??
????+e??{?6V??????j
? ??::??
????+e??{?V?
?????j
? ??::??
????+e??~??\o*?????j
? ??::?? ?t??+e??{??Vo*?????j
? ??::??
????+e??v??V?*?????j
? ??::??
????+e??{??V??????j
? ??::??
????+e?????V?
?????j
? ??::??
????+e?????V??????j
? ??::??
?t??+e??z?vV?
?????j
? ??::??
????+e??{?VV??????j
? ??::??
????+e??{?6V?? ??::??????+e??{?V?? ??::?? ????+e??v??Vo
?????j
? ??::??
????+e??z??Vo*?????j
? ??::??
????+e??v??V??????j
? ??::??
????+e??{??V?
?????j
? ??::??
????+e??{??V?? ??::??
????+e??{??V??????j
? ??::??????+e??{?vVo
?????j
? ??::??????+e??{?VV?? ??::??
????+e????6V??????j
? ??::??????+e??{?Vo
?????h
? ??::??
????+e??z??Vo*?????j
? ??::??????+e??{??Vo*?????j
? ??::??????+e??v??Vo*?????j
? ??::??
????+e??{??V??????j
? ??::??
????+e??{??V?? ??::??
????+e?????V?? ??::??
????+e????vV?
?????j
? ??::??
????+e??{?VV?*?????j
? ??::??
?t??+e????6V??????j
? ??::??
????+e????V?
?????j
? ??::??????+e??????o*?????j
? ??::??????+e??z??Vo? ??::??
????+e??zv?V???????
? ??::??
????+e??{v?V?
?????j
? ??::??

Have you verified that the baud settings on all serial devices involved are the same?

kd7eir:
Have you verified that the baud settings on all serial devices involved are the same?

Yep they're all working at 9600Baud

To the mod that movied this topic: It's not a programming question.
Please read through the post, everything is correct yet the device is not responding as proper.
Which is a Arduino Hardware Related Issue!

Does anyone wanna trade something for this board? i've had enough of it and arduino... I'm going to port my applications over to mbed

It's connected to an AXE027 cable which has 22k and 10k resisters including ground to the arduino

It does? It doesn't look like it based on the pictures on the PICAXE site. The board only seems to have two wires coming off of it. How have you determined what its connections are suppose to be? I'm not sure I understand how you are connecting this to the Arduino.

Elitism:
Which is a Arduino Hardware Related Issue!

I don't think you've actually determined that yet.

What have you done to verify your USB-to-serial cable is working correctly? Why does it have to the be the Arduino board?

This is all im getting from the TX0 pin on my terminal

It's ment to be printing "Arduino"

Okay, but that's not what your code shows. So are you now troubleshooting with different code and just expecting us all to know that? Just like your first post forgot to mention this AXE027 cable? What other details are you leaving out?

Why don't you post a clear picture of what you have connected, because I'm still having trouble understanding what it is you are doing.

I did a loopback test on the serial connection of the AXE cable and the data is displayed back to the terminal
(Simple test, Efficient, Works) Serial Cable ruled out.
Here is the connection i have with the arduino to PC USB as virtual comport

This is correct

I'm also using the arduinos comport aswell to debug the commands

Both bauds (USB/AXE027) ARE AT 9600 (SORRY ABOUT THE ONE IN THE PREVIOUS IMAGE)
Transmitting data to arduino from AXE027: Nothing happens
Receiving data from arduino TO AXE027: Garbage "??';?';!???????"

Tried swapping the rx/tx to equal (tx-tx/rx-rx) <-- Wrong (Still tested it anyways) Nothing happens
Serial communication is always (TX-RX = TX-RX) which is shown in the picture.

Here is the test code i'm running, The AXE cable connection is in RX0/TX0

int ledPin = 13; //Has led attached to it

void setup()
{
   Serial.begin(9600); //Opens usb serialport with Serial0
   pinMode(ledPin, OUTPUT); //Opens usb serialport with Serial0
}
void loop(void)
{ 
  while (Serial.available() == 0); //Received Serial String
  
  int val = Serial.read() - '0'; //Fix hex offset to integer
  
  if(val == 1) //Received 1 on arduino
  {
    Serial.println("on"); //Print to terminal
    digitalWrite(ledPin, HIGH);
  }
  else if(val == 0) //Received 0 on arduino
  {
    Serial.println("off"); //Print to terminal
    digitalWrite(ledPin, LOW);
  }
}

I've also replaced the code above with Serial1 RX,TX and placed the AXE cable in the correct pinouts
But aruino never receives commands.

You will get much more help if you drop the "elite" attitude, answer the questions, and provide pictures as requested. But hey, it's up to YOU to provide the needed information, not US to pry it out of you.
You are so POSITIVE that you KNOW what the problem is. IF that were true, you would NOT be having this problem in the first place.

There is no finer source of Arduino help than right here, but you have to meet us at least half way...

Also, why don't you try changing the ports in device manager to something less than 10 as suggested in the AXE027 manual?

kd7eir:
You will get much more help if you drop the "elite" attitude, answer the questions, and provide pictures as requested. But hey, it's up to YOU to provide the needed information, not US to pry it out of you.
You are so POSITIVE that you KNOW what the problem is. IF that were true, you would NOT be having this problem in the first place.

There is no finer source of Arduino help than right here, but you have to meet us at least half way...

Sorry if it seems that way, I've given you all the information you need, such as why would the arduino be TX'in garbage? aint that cause for an npn transister to flop the voltage? or a resister to lower the voltage some? that's one solution but i wanna rule that out because i dont have any npn transistors left so i'll just wait untill i can get further input from more experienced people who might have an understanding of the picaxe 027 serial FTDI connection to an arduino.

The picture i sent you guys was sufficient enough to understand the circuitry.
PC -> SERIAL -> ARDUINO -> USB -> PC
These end up being two comports on my system, I even made an application so i can read from both terminals. I've had enough experience with comports to understand buffers and arrays of buffers so i'm pretty sure it's not my software.

Again i'm not trying to be elite... My name is against elit people if you would have understood the word and there was no reason to flame me for expressing my knowledge on this subject of hardware failure or misunderstood connection variables just because i'm new here.

Again i'm sorry if you feel i'm taking an attitude, I'm seriously not :*

kd7eir:
Also, why don't you try changing the ports in device manager to something less than 10 as suggested in the AXE027 manual?

It was set at COM2 for two days while i was tinkering, i don't think the comport number matters? I might be wrong though.

Elitism:
The picture i sent you guys was sufficient enough to understand the circuitry.

None of your picture links work. It is probably better to click "Additional Options..." in the post editor and attach them.

Elitism:
Again i'm sorry if you feel i'm taking an attitude, I'm seriously not

You are upset because something that seems simple isn't working. The real message here is that this community is here to help. Ranting and raving to us might feel good at the moment, but it scares off people who might have the answer. Nearly all of the people who post here are volunteers...

Another test would be a loopback on the Arduino itself. Connect Serial3 TX to Serial2 RX (or whatever ports makes sense to you). Send characters with Serial3. Send whatever Serial2 receives back to Serial, so you can see it on the PC.

I'll try that now n i'll look into the aditional posting features one moment.