I have an Arduino Board and I’m doing a project with this at the moment.
I have an input which is plugged to the Arduino Board and when there is a specific value on the input, I just send a message on the monitor and display a message. Not something very hard…
But, I would like to use the message to do another thing and in another program.
I would like to create a program (in C or VB) that would be able to also display a message but without using the Arduino Software. I don’t know how to do that. Maybe I need to focus on RS232 way of communication or with Rx/Tx pins or with the COM3. I don’t know.
If someone has already done this type of program, could you help me in giving me some pieces of informations.
Arduino board’s serial data would go to/from a PC program. The Arduino IDE/development tools are not involved.
if so
Simply exit the IDE or close the serial port from within the IDE.
Then use dumb terminal program like HyperTerm or one of the much better ones available as a free download such as Bray’s Terminal.
That program can open the COM port on which the Audino is located, be that an actual RS232/serial port or be that a USB-to-serial device.
With this done, and working, you can write your own program using the Microsoft Visual Studio Express (Freeware) tools such as C, C++, C#, Visual Basic, etc. Each of these has a way to include a library and open the same COM port and send/receive text or binary byte data.
You can also write in a scripting language like VBS or JavaScript - these languages have a way to use the serial port library/DLL.
I’ve also seen out there script code in VBA you can just get and use, such as scripts in VBA for Excel, to get serial port directly into spreadsheet cells, if it’s comma separated, etc.
I would like to create a program (in C++, C# or VB, I don’t care the software language, it won’t be a problem for me), and this program would be capable to read the data from my Arduino Board from COM3.
I have my Arduino Board which sends data thanks to “Serial.Println()” and I can see them in the Serial Monitor.
But, at the end of my project, I don’t want to be obliged to use the Arduino Software to display the data.
I would like to be capable of reading the data on my own, with another program, and be capable of doing something according to the value of data.
I don’t know what IDE is exactly. I tried to find the software you gave me but I don’t know at all how they work.
Do you have a piece of code to know how program my “software”. A code to read data on COM3. Please.
Click “Serial” on the connection type. Type the COM name of your serial port in the “Serial line” box, and the speed in the speed box. Click Open.
You should now be presented with a black window, which will be a connection to the serial port.
If you want to actually code something, you’ll need to avail yourself of the many serial communications libraries available. Try and google something like “read from serial port c#” or similar.