Pages: [1]   Go Down
Author Topic: Debugging log  (Read 315 times)
0 Members and 1 Guest are viewing this topic.
Boston
Offline Offline
God Member
*****
Karma: 3
Posts: 575
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
Anyone know an easy way to write to a log file?
I'm using a Deumilanove with a WiShield and trying to figure out why I stop sending tweets.  I'm currently connected via USB to a MAC.
How do I write to a log file, not just print to the serial monitor?

Thanks.
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 618
Posts: 33959
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
How do I write to a log file, not just print to the serial monitor?

With the arduino there is only one form of hardware serial output so if you want another stream you have to do something different.
You can use a Mega as that has four serial ports or you can use the software serial library to give you another serial output. However you then have to connect this serial output back into your computer. You can't do it over the same USB / serial link as you use for the serial monitor. This means using another USB to TTL serial adaptor, or USB to RS232 adaptor and converting the TTL output of the arduino into RS232 voltage levels with something like a MAX202 chip.
Logged

Pages: [1]   Go Up
Jump to: