PDA

View Full Version : Serial communication with arduino uno


sunil.nair
02-03-2014, 09:13 PM
Hi,

Could you suggest me a way to send a character from vizard to arduino uno through serial communication using pyserial. In arduino i read it by:

void setup() {
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
}
void loop() {
if (Serial.available() > 0) {
Serial.print("I received: ");
}}

sunil.nair
02-03-2014, 09:14 PM
COuld you help me with the forresponding code for vizard? I have installed pywin and pyserial packages.

Jeff
02-05-2014, 03:24 AM
The pySerial (http://kb.worldviz.com/articles/510) article in our knowledge base has some example code that opens a port and writes some data.