0% found this document useful (0 votes)
107 views3 pages

Arduino To Microsoft Excel Communication Using PLX-DAX.: Serial - Begin (9600)

PLX-DAX is a program that enables easy communication between Arduino and Microsoft Excel by establishing a serial port connection. It allows temperature or other sensor data measured by an Arduino to be sent to Excel every few seconds, where the data can be printed to a sheet and graphed. The PLX-DAX panel sets the serial port and baud rate to match the Arduino code. An example code measures temperature and humidity using a DHT11 sensor and sends the results to Excel every 1.5 seconds.

Uploaded by

The New World
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
107 views3 pages

Arduino To Microsoft Excel Communication Using PLX-DAX.: Serial - Begin (9600)

PLX-DAX is a program that enables easy communication between Arduino and Microsoft Excel by establishing a serial port connection. It allows temperature or other sensor data measured by an Arduino to be sent to Excel every few seconds, where the data can be printed to a sheet and graphed. The PLX-DAX panel sets the serial port and baud rate to match the Arduino code. An example code measures temperature and humidity using a DHT11 sensor and sends the results to Excel every 1.5 seconds.

Uploaded by

The New World
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Arduino to Microsoft Excel Communication using PLX-DAX.

PLX DAQ is a program used to establish an easy communication between


Microsoft Excel on a Windows Computer and any device that supports
serial port protocol. It was intentionally written to allow communication
between Arduino and Excel.

For example, measure temperature data with your Arduino, send the
results to Excel every 2 seconds, printed the data on a sheet and draw a
graph with all information. All communication will be done by
Serial.println commands just like the commands you use to send from
Arduino to monitor in your Arduino IDE Serial Monitor.

Figure 2: PLX DAQ panel

a. Port: set to Arduino port (same as in Arduino IDE => Tools => Port,
e.g., 4 for COM4.
b. Baud: set to the baud rate you run your Arduino on (e.g., 9600 if
you are using Serial.begin(9600); in your Arduino code).
c. Connect: connects to your Arduino and starts logging.

2- Write a program to read the temperature and humidity from the sensor
and display the results on the Excel sheet using PLX DAC.
Code

#include <dht.h>
dht DHT;
#define DHT11_PIN 7
void setup(){
Serial.begin(9600);
Serial.println("CLEARDATA");
Serial.println("LABEL,Date,Time,Temp,Hum");
}

void loop()
{
delay(1500); //delay to complete the measurements
DHT.read11(DHT11_PIN); //read from DHT11
float t=DHT.temperature;
float h=DHT.humidity;
Serial.print( (String) "DATA,DATE,TIME,");
Serial.print(t); //print temprature
Serial.print(",");
Serial.println(h); //print humidity
}
Figure 3: The results

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy