• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Arduino Comms

Wp100

Well-Known Member
Thread starter #1
Hi,

Just helping a friend out, not sure if he his doing the right thing with his comms.

He is using a PC program , say Putty, to directly communicate with a Mega2560 but he is using the Megas USB own cable connection for the data link.

Seems it works to some degree, but seem to remember reading that this method can cause problems, correct ?

thanks.
 

be80be

Well-Known Member
#5
some differences , clearly not
There is the Mega2560 has 4 hardware uart's you can use the wrong one thats not hooked to USB.

The Uno only has one.

The Mega can use more then one hardware uart comes in handy you can read on one and send the data to a pc with the one on the usb.
 
Last edited:

MikeMl

Well-Known Member
Most Helpful Member
#7
There is serial text monitor utility, and a serial data plotting (graphing) utilitly built-into the Arduino IDE. I use it all the time for debugging a program.
 

Ian Rogers

User Extraordinaire
Forum Supporter
Most Helpful Member
#8
Okay.... The why's and wherefore's!!

Arduino and Arduino mega reboot on USB so they can move into bootloader... The DTR is pulsed by the Ardino IDE and conected to the reset so the reset is also pulsed..

You need this to happen so you can re-program from the IDE.... If you are using the arduino as a serial device OTHER than the IDE you need to stop the Arduino re-booting EVERY time you use the serial port!! I place a100uf cap in a IDC plug then have a connector on the reset / ground pins... You need to remove this when you need to re-program... pretty simple fix..
 

be80be

Well-Known Member
#9
Are you sure I don't think it care's if you use the serial com it only reboots when the ide toggles the DTR pin.
I've never had a reboot problem.
I have had a programming problem where I needed a cap to help keep the DTR up longer so the ide could see that the arduino was in program mode.
The mega has 4 hardware serial ports the uno has only one people use the wrong port on the mega all the time
as you can see there are 4
Screenshot from 2019-01-06 22-26-30.png

And this little part shows that the serial should work as long as you leave DTR alone
Screenshot from 2019-01-06 22-28-44.png
 
#10
Personally from Mega2560 I am very happy.

If the hardware is supported and the software is ok(this will be your problem) there should be no worries.

Please post your software and if possible hardware setup.
 

Latest threads

EE World Online Articles

Loading

 
Top