I ask the question - how do I get the serial.println() data into the PC in the simplest possible way?
The answer is work in progress. (I need help to fill in the blanks)
A complementary post to Robin2's post on serial coms.
http://forum.arduino.cc/index.php?topic=288234.0
Gobetwino Quick start -
Read this page to learn more from the author - Gadgets og teknologi | Dansk Tech Blog - Mikmo
Get everything here (including manuals) - http://www.mikmo.dk/gobetwino/gobetwino.zip
What does it do?
Gobetwino links the PORTS (COM & LPT) serial ports like a USB, Bluetooth and the RS232 (9 pin plug on the PC) to a file on the PC.
File names and data collection can be controlled by the external device (Arduino). Awesome!
It can even start Excel and send the sheet data and save the file – all remotely.
Tl;DR – Just get me going !
- Download the gobetwino.zip and store GOBETWINO directory and contents under ( Local Disk C: )
- Find your COM port number on the PC (USB, Bluetooth, RS232) Start / Control Panel / Hardware and sound / Device manager / PORTS (COM & LPT) and locate the serial COM number. Connect your Arduino first.
- In your Arduino load the example sketch below. Close the Arduino software as you may conflict the port ownership.
- Open C:\gobetwino\Gobetwino.exe (if you did step 1.)
- Under settings, serial port select your port, baud etc. The Arduino sketch baud must be the same value here. Default is 9600. - Click update – Exit – close and restart Gobetwino.exe
- Reset the Arduino. ( Just to be sure you have communication.) If you see text on the screen from the Arduino on the Gobetwino page you are good to go – otherwise do 1 to 6 again.
- Open Notepad on the PC and save a new file called c:\gobetwino\testlog.txt and close Notepad.
8a. Click Commands / New command / select LGFIL (log data to file) / Enter LOGTEST (LOGTEST is a made up name, must be capital letters or numbers only) / click [...] the three dots – open c:\gobetwino\testlog.txt / Save / exit
8b. In the Arduino put this in your sketch. (The pipe symbol is on your keyboard shift \ = | and we want to send the number 877)
int value = 877;
char buffer[5];
Serial.print("#S|LOGTEST|[");
Serial.print(itoa((value), buffer, 10));
Serial.println("]#");
Some tips.
You can only send / receive strings or Chars NOT numbers.
I need to add a sketch here - anyone?