Hello,I have Windows surface RT (Tablet PC) and my idea is to connect Arduino to it via USB, using arduoino outputs control (using relay) various things. So the quoestion is,can I write C++ program which could have control over arduino outputs in real time? (Main goal is to send electronical signals via Arduino outputs to where I want using only my Tablet interface - the costum C++ program) Really hoping to get answer.
You need to write a program on the arduino that reads the USB via the serial port to control the outputs. It will be quick enough - certainly on a relay timescale - to appear to be real time.
You could send "A" to turn on relay 1, "B" to turn it off, "C" to turn on relay 2...
Thanks a lot man,it is the perfect solution! So how I understand, I need to write little program in Arduino to recognise signals from Tablet PC and send the needed singnal further (to the device i connected to Arduino output). And now I can create any C++ program which just sends signals to Arduino and it knows what to do with it!
That is basically it.