How can I add multiple data from arduino to one field on Thingspeak?

30 次查看(过去 30 天)
I have two seperate temperature sensors connected to arduino and I would like for them to read data on the same field in Thingspeak. For example, have one graph showing two lines on it in different colors, each representing one of the temperature sensor data. Is this possible? If so, how can it be done?
Thank you

回答(2 个)

Christopher Stapels
Have a look at this tutorial: Compare Temperature Data from Three Different Days. It describes one of the template codes availalbe in the MATLAB visualizations app.
  1 个评论
AL-HASAN MANSURI
AL-HASAN MANSURI 2023-2-4
This tutorial says how to compare data of three different days of same sensor. What I want is, How to plot multiple sensor data in the one field chart ?
I have six temperature and humidity sensor, at different location but I want the temp of all sensor on one field chart & humi of all on the other field chart.

请先登录,再进行评论。


Christopher Stapels
编辑:Christopher Stapels 2023-2-4
Field plots are the automatic plots that show unmoderated field data. You cannot do multiple series on a field plot. You can add MATLAB Visualizations to your channel to show multiple series in a single plot using the MATLAB visualizations app.
If you select new in MATLAB visualizations app, there is a code template for plotting two series.
MATLAB documentation will help you plot multiple series on the same plot. See this mafe on multiple plots. Basically, you use the hold on command to keep the previous plot.
Here is the basic plan.
  1. Read each sensor data into variables in your code (MATLAB variables are automatically arrays btw).
  2. Plot the first data set.
  3. use
hold on
4. plot all the rest.
5. enjoy.
  4 个评论
Christopher Stapels
Field plots are the automatic plots that show unmoderated field data. You cannot do multiple series on a field plot. You can add MATLAB Visualizations to your channel to show multiple series in a single plot using the MATLAB visualizations app. See the instructions in my answer above.

请先登录,再进行评论。

社区

更多回答在  ThingSpeak Community

类别

Help CenterFile Exchange 中查找有关 WiFi 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by