Professional Documents
Culture Documents
and real time charts in Excel
h Crea sito
« Simple talking robot Home made Vacuum Gripper »
VISITOR MAP
One of the most important things in the robot design is the possibility to check and Large Visitor Map
control the values feeded by the analogic sensors, i.e. accelerometers, gyros, IR
sensors.
In order to view the sensor values you can use the Serial Port that can be displayed in
the Serial Monitor inside the Arduino IDE environment.
But it isn’t possible to show charts or save the data read from the sensors. ARCHIVE
There are several software that allow to show the graphs derived from the sensors data,
and I published in the past a tutorial (here). March 2016
Usually you use Processing or similar language that require always to write some code. October 2014
You have to write code to change the charts or to implement new lines in the graphs.
June 2013
I thought that the ideal situation would be to use a software that everyone knows:
Microsoft Excel. May 2013
December 2012
If it were possible to use Excel to receive the data from the serial port, it would be easy
May 2012
to make very nice and user friendly charts.
I searched in Google and i found a sw that allows easily to view the serial port values in April 2012
Excel. March 2012
The sw is made by a competitor of Arduino, Parallax, the company that sells the BoeBot December 2011
and the Propeller, wich are in direct competition with Arduino. October 2011
The sw is called PLXDAQ and it is a free software. You can download it here. It works September 2011
only in Windows, sorry. August 2011
In practice it is a little sw in VBA that adds some features to Excel to receive and Click to enable Adobe Flash
July 2011
elaborate real time data. If the data are in Excel it is also possible to save them in a file Player
June 2011
and it is possible to use the amazing function library already present in the spreadsheet
software. The documentation about PLXDAQ is complete and clear.
The PLXDAQ takes commands in uppercase and every data row have to end with a
‘carriage return’. The serial port speed required by PLXDAQ is particular, because it
derives from Parallax world. In any case the rate is from 9600 bit/sec to 128.000 bit/sec.
The speed of 128.000 bit/sec works fine in the Arduino!! CATEGORIES
The main commands are: Auduino
LABEL used to define the column headings. The command format is: compound eye
Serial.println (“LABEL, INT_COLUMN”); delta robot
DATE, TIME that allows the serial port to send data to Excel. The first field is always Dongbu Herkulex
TIME, then the fields of interest (val). The command format is: Serial. print (“DATE, Dynamixel
TIME,”); Serial.println (val) GRBL
ROW, SET, k, allows you to define the next line to write. It is useful if you want OpenCv
to plot n data and then go back to first row and cycle. For example, you can plot 1000 robot brush
data on the chart and then start again from the first position, in order to avoid a robot drawing
http://robottini.altervista.org/arduinoandrealtimechartsinexcel 1/45
4/3/2017 Arduino and real time charts in Excel
graph too large. The command format is: Serial.println (ROW, SET, 2) put the cursor Robottini
in the second line next step. Senza categoria
Speech
Here’s an example that shows Excel function sin (x).
Tips
vacuum gripper
ROBOT BLOG
Appiphania
billporter
Gioblu (in Italian)
Patrick Mc Cabe
Makes
Savage electronics (in
spanish)
seriousrobotics
ROBOT SITES
JavaCvPro site
letsmakerobots
Privacy policy
Robotics Portal
societyofrobots
The Arduino code:
TAG
int x = 0;
int row = 0;
Arduino audio chip
PLXDAQ enable a more complex interaction with Excel. It can take the cell values from
Excel, it can read and write check box. You can see the PLXDAW documentation for
other details.
Tags: graphic, plot, Serial Port
http://robottini.altervista.org/arduinoandrealtimechartsinexcel 2/45
4/3/2017 Arduino and real time charts in Excel
This entry was posted on 26 July 2011, 15:39 and is filed under Tips. You can follow any responses to this
entry through RSS 2.0. You can leave a response, or trackback from your own site.
#1 by Shubham Gupta on 24 February 2017 11:18
Hurrah, that’s what I was looking for, what a information! present here at this
website,
thanks admin of this web site.
#2 by S. C. Park on 17 February 2017 09:57
Thank you for your kindness!
I’ve a question.
You said about arduino file.
But I don’t know that what name and where I save the file.
Thanks a lot
Park,
#3 by blessi on 10 February 2017 07:14
How to modify the below code to read data from sensor to excel
#define trigPin1 3
#define echoPin1 2
#define trigPin2 4
#define echoPin2 5
#define trigPin3 7
#define echoPin3 8
long duration, distance, RightSensor,BackSensor,FrontSensor,LeftSensor;
char Right;
void setup()
{
Serial.begin (9600);
pinMode(trigPin1, OUTPUT);
pinMode(echoPin1, INPUT);
pinMode(trigPin2, OUTPUT);
pinMode(echoPin2, INPUT);
pinMode(trigPin3, OUTPUT);
pinMode(echoPin3, INPUT);
}
void loop() {
SonarSensor(trigPin1, echoPin1);
RightSensor = distance;
SonarSensor(trigPin2, echoPin2);
LeftSensor = distance;
SonarSensor(trigPin3, echoPin3);
FrontSensor = distance;
Serial.print(LeftSensor);
Serial.print(““);
Serial.print(FrontSensor);
Serial.print(““);
Serial.println(RightSensor);
}
void SonarSensor(int trigPin,int echoPin)
{
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
http://robottini.altervista.org/arduinoandrealtimechartsinexcel 3/45