Hi all
How a GUI interface on pc that controls ARDUINO
board is done ?
How tha bidirectional path PC <> ARDUINO is done
in the software and hardware level ?
Elico
Hi all
How a GUI interface on pc that controls ARDUINO
board is done ?
How tha bidirectional path PC <> ARDUINO is done
in the software and hardware level ?
Elico
How a GUI interface on pc that controls ARDUINO
board is done ?
Lots of ways. Some depend on the operating system of the PC. Some do not. What development tools are you familiar with?
How tha bidirectional path PC <> ARDUINO is done
in the software and hardware level ?
The application on the PC writes to the serial port that the Arduino is connected to. The Arduino reads the serial data, parses it, decides what to do and what response is appropriate. It does what it is supposed to do, and sends the response back to the PC, via the serial port.
Thanks
I am familiar with DELPHI and some WINOWS version of BASIC (NOT VB)
Elico
My "hallo world" app in this area was a vb.net form with just three objects in it: a txtSend textbox, a txtReceived textbox and a btnSend button.
On hitting btnSend the txtSend content was "printed" on the com port. When data was received from the same com port, it was appended to txtReceived.
The Arduino sketch could recognize particular strings ("commands") and respond accordingly, for example by changing the status of a pin or sending back the value of an analog port.
This got me started on the subject.
Once the scaffolding is done, the fun begins
My 2 cents.
I understand that at the PC side the RS232 port is used to send and recive messages , right ?
And at the arduino side what phisical port is used exactly ?
Thanks
Elico
You can use a physical serial port, but normally you would use the virtual serial port provided by USB connection.
elico:
I understand that at the PC side the RS232 port is used to send and recive messages , right ?And at the arduino side what phisical port is used exactly ?
Thanks
Elico
The physical ports are USB ones on both the PC and the Arduino.
At the software level, you use the serial port abstraction provided by the language / environment you're using. In vb.net it's the SerialPort class IIRC, while Arduino provides Serial.