Serial input basics - PC side - Gobetwino.

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 !

  1. Download the gobetwino.zip and store GOBETWINO directory and contents under ( Local Disk C: )
  2. 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.
  3. In your Arduino load the example sketch below. Close the Arduino software as you may conflict the port ownership.
  4. Open C:\gobetwino\Gobetwino.exe (if you did step 1.)
  5. 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
  6. 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.
  7. 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?

So this forum is labelled "Programming Questions" ...but...I do not see a relevant question?
Im not sure if you can, but can you move it to an appropriate forum section?

Ps991:
So this forum is labelled "Programming Questions" ...but...I do not see a relevant question?

Im not sure if you can, but can you move it to an appropriate forum section?

Thanks - I was just making a complementary post to a similar thread. I am new here but keen to share. Google pointed to Robin2's original post when I typed in my equiry.

how do I get the serial.println() data into the PC in the simplest possible way?

The simplest way is to use the serial monitor to display the data. If you want to save the data to a file or similar, a terminal program might be the answer. if you want the pc to do something based on the data, then you probably need to make a serial program for the pc to do that. There is a discussion section in this forum for interfacing the arduino with a pc.

A very popular program for interfacing with the PC is Processing, but you write code in Java.

You may find this Python - Arduino demo useful. I also wrote a short Python GUI demo.

...R