The sequence of the process is like this:
Sensor -> Arduino Uno -> PC -> robot arm controller
The connection between Arduino Uno and PC is through serial com. port (eg: COM1)
The connection between PC and robot arm controller is through another serial com. port (eg: COM2)
If I use Hyperterminal to establish the connection between each system, may I know is it possible that I send data between the two connections on a different COM?
For example, the Arduino sends "Move to X" to the Hyperterminal on COM1, on the same computer the Hyperterminal on COM2 reads it and command the robot arm to move to X.
Don't see why not.
I can open two instances of the IDE and communicate with 2 different Arduinos at the same time, so a PC is capable of talking over two COM ports at the same time (Win Vista experience).
Given that if the settings on both Hyperterminal were the same (baud rate, etc.), how can I let the Hyperterminal to know that it should read from the other Hyperterminal/other COM?
Arduino - COM1 (Write) - Hyperterminal1 - Hyperterminal2 - COM2 (Read) - Robot Arm Controller
In the case if I don't use two Hyperterminal connections:
Connect Arduino to COM1, connect COM1 to Hyperterminal. Connect Robot arm controller to COM2. Commands sent from Arduino appears on Hyperterminal.
How can I let COM2 to know to read input from that Hyperterminal? Is there such settings?
Arduino - COM1(Write) - Hyperterminal - COM2(Read) - Robot Arm Controller
You might look into the Processing language. You can communicate with two serial ports and you would have only one PC program to run. It is easy to learn as it is a lot like Arduino.
If I use Hyperterminal to establish the connection between each system, may I know is it possible that I send data between the two connections on a different COM?
Not sure you can set up hyperterminal to function the way you describe. Why not just have the arduino send the arm commands directly to the arm controller?
Yeah zoomkat, I've also thought of that. The purpose I wanted to connect them separately is because I would like to monitor what is going on and it will be easier to debug and possible to use a Bluetooth to send the data instead of wire.
Sensor -> Arduino -> Bluetooth -> PC (COM1) -> PC(COM2) -> robot controller
If I use the method above, my RX and TX pins could be allocated to the Bluetooth. Since Arduino UNO has only a pair of RX and TX, I'll have to leave the Bluetooth out and use the USB A-B cable that was provided when I get the board.
Assume that it is like this:
Sensor -> Arduino -> robot controller
Between Arduino and Robot Controller is RX and TX wires connected to each other.
Can I plug in the USB A-B cable and launch the Serial Monitor from the IDE to monitor what is going on?
Would it affect the connection because it has become a parallel communication where Arduino sends to PC and robot controller at the same time?
I've connected my ssc-32 servo controller to the arduino tx pin (did not need rx) and ground. I could still view the arduino output to the controller on the serial monitor.