Mega 2560 R3 serial communication error?

Hello,

I am very new to using arduinos and I am using it in combination with another PCB. In device manager, the computer can detect the arduino as a USB serial device under Ports but once I put the arduino on the PCB it becomes a hidden device. Am I right to consider this an issue with the driver and that I need to flash the usb-to-serial firmware?

If it works off your board but fails when putting it on your board it is most likely something on your board connecting to the serial input the USB is using. You can cut the trace or remove the two pins and see what happens. If you are using the same port for both it will not work, you will have to change your circuit a bit.

I would think the USB to Serial chip would still show up on the computer, regardless if something was connected to the Rx and Tx pins of the Mega. You may have a power problem that is causing the computer to shut down the USB port. Presumably you are not connecting anything to the ICSP header for the USB to Serial processor.

Thank you all for your replies. Once I combine the arduino with the PCB, is it not supposed to use the same port? Also that is correct, I do not have anything on the PCB connected to the ICSP header. So does that mean I am not supplying enough power? I have also been using an external source of 9V.

Exactly what is the external source of 9V ?
Is it a battery ?

It is just a 9v adapter wall charger.

I would bet you are drawing too much power from the 5V pin supply. Looks like you have 10 stepper drivers and 3 motor drivers.

Does it matter that some stepper drivers are mounted in a different way to the others?

Otherwise, normal troubleshooting applies. Remove everything from the board except the Mega. Does it work? No - something wrong with the PCB. Add modules. Does it work? no - the module you just added causes a problem. and so on....

Hi @waLam2!

If the PCB you use is commercially available could you provide a link to further information?

Hello, it is not commercially available, but I have the schematic if that is helpful.

I think analysing the circuit diagram is the most promising way at the moment ...

If there are no legal issues you might consider to post it.

I am still wondering why some of the stepper modules are mounted the wrong way round.

Hello, I switched it around and that did fix it. Thank you all for your help!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.