Hi, Guys I was planing on controlling a robot with the arduino Duelimonova through using the API included for that robot and I was wonder does anybody know how to retrive infromation from Arduino. Also what format will it be in.
thank you
Hi, Guys I was planing on controlling a robot with the arduino Duelimonova through using the API included for that robot and I was wonder does anybody know how to retrive infromation from Arduino. Also what format will it be in.
thank you
What kind of robot? What API was provided?
Is the Arduino going to be controlling the robot?
What information do you want/need from the Arduino?
The Arduino communicates with sensors and devices, such as servos, lights, and relays, that are connected to it, as well as communicating with the serial port. Data sent to the serial port is binary. The binary data is interpreted on the receiving end in the same way that the Arduino sent it. Frequently, the data is in character format, but other formats can be used.
Okay, I my question is can I format the data I am sending to the computer in a certain format for example i will have six pairs of button and would like to send an array of maybe 1*6 binary.
Also how can I interact, using C++.
thank you
How you send the data is up to you. What you need to make sure, though, is the the format defined be the sender is understandable and usable by the receiver.
Using C++ on Windows? On Linux? On a Mac?
I am using C++ on windows and I think you misunderstood me my question is exactly that. What kind of data should I send which a computer running Windows XP using c++ can retrieve and use.
And Also what is the Command which should be you used.
Thank you.
The Arduino can write to the serial port. You can write an application using C++ to read from the serial port.
What the Arduino should write to the serial port is up to you.
What the C++ application does with the data it read from the serial port is up to you.
What the C++ application writes to the serial port is up to you.
What the Arduino does with the data that it reads from the serial port is up to you.
If your question is about how to write a C++ application to read from/write to the serial port, that is not a Arduino-specific topic. You'd get better answers on a different forum.
I can tell you, though, to take a look at the SerialPort class, if you are using Visual Studio (or Visual C++ Express, which you can get for free from Micro$oft).
My question is only pertaining to Arduino How do I write to the serial port.
Serial.print, Serial.println, and/or Serial.write. Look at the documentation for the Serial class.