There are many choices when it comes to serial terminal for pcDuino. A text based one is minicom. In this post, we will introduce one has GUI: gtkTerm.
To install it, we just need to type:
$sudo apt-get install gtkterm
To test the serial port, we use an Arduino Uno with pass through code. Please refer to the post on using Arduino Uno on pcDuino3 on how to set up Arduino Uno with pcDuino3. The pass through code for Arduino Uno can be found below:
#include <SoftwareSerial.h> SoftwareSerial mySerial(10, 11); // RX, TX void setup() { // Open serial communications and wait for port to open: Serial.begin(9600 ); while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only } // set the data rate for the SoftwareSerial port mySerial.begin(9600); } void loop() // run over and over { if (mySerial.available()) Serial.write(mySerial.read()); if (Serial.available()) mySerial.write(Serial.read()); }
The hardware serial port is used by the USB port of the Arduino UNO. We use the software serial port to talk to another PC with a serial terminal running. The convert TTL UART to virtual COM, a serial USB debug cable is used.
Type ‘$sudo gtkterm” to launch the serial terminal:
When we type in the two windows (serial terminal on PC and serial terminal on pcDuino), we can send data back and forward:
Twitter: @pcDuino_NO1
Facebook: https://www.facebook.com/YannyGuoYunyan
Leave a Reply
You must be logged in to post a comment.