Mukhtar Hussain in MATLAB Answers
上次活动时间: 2024-4-25

I want to collect the AD8232 ECG sensor data through Arduino and ECG sensor AD8232 then, send that collected ECG data to IOT website ThingSpeak . Can somebody provide me with a proper Arduino code for sending the ECG sensor data to ThingSpeak website !
James Holland in MATLAB Answers
上次活动时间: 2019-10-11

Greetings! My project is to read in data from two arduinos and then separate the data into four matrices. These matrices are comprised of 8 values and are sent to ThingSpeak when filled (to 8). My issue is that I am attempting to send 4 matrices to ThingSpeak via this line : thingSpeakWrite('ChID',{heartRateInputA,temperatureInputA,heartRateInputB,temperatureInputB},'WriteKey','myWriteKey'); When I execute this, the data goes through but only the first column of the 1-D array. How do I send the whole array? Attached below is the rest of my code. %Uses two sets of nested 'if' loops and variables and ThingSpeak channels %to read in and parse data from each controller a = Bluetooth('HC-05',1); b = Bluetooth('IN',1); a.ReadAsyncMode = 'continuous'; b.ReadAsyncMode = 'continuous'; fopen(a); %data collector A fopen(b); %data collector B %A data points heartRateVarA=0; temperatureVarA=0; %B data points heartRateVarB=0; temperatureVarB=0; col = 1; %column counter for matrices heartRateInputA = []; temperatureInputA = []; heartRateInputB = []; temperatureInputB = []; while (a.Status == 'open')&(b.Status=='open') %if data has been sent to thingSpeak, reset the column counter if(col == 15) col=0; end col = col+1; for i=1 : 1 : 2 matchA = fgets(a); matchB = fgets(b); testA = contains(matchA,'Celsius'); testB = contains(matchB,'Celsius'); %Test A parsing if (testA==1) temperatureVarA=matchA; else testA=contains(matchA,'BPM'); if(testA==1) heartRateVarA=matchA; end end %Test B parsing if (testB==1) temperatureVarB=matchB; else testB=contains(matchB,'BPM'); if(testB==1) heartRateVarB=matchB; end end end %Display read and parsed in data fprintf('Device 1 : \n\n');disp(col); fprintf('Heart Rate A : '); disp(heartRateVarA); fprintf('Temperature A : '); disp(temperatureVarA); fprintf('Device 2 : \n\n'); fprintf('Heart Rate B : '); disp(heartRateVarB); fprintf('Temperature B : '); disp(temperatureVarB); %Removes non-numeric characters from data and sends to respective %matrix hInputA = str2double(strrep(heartRateVarA,'BPM: ','')); tInputA = str2double(strrep(temperatureVarA,'Celsius: ','')); hInputB = str2double(strrep(heartRateVarA,'BPM: ','')); tInputB = str2double(strrep(temperatureVarB,'Celsius: ','')); heartRateInputA(1,col) = hInputA; temperatureInputA(1,col) = tInputA; heartRateInputB(1,col) = hInputB; temperatureInputB(1,col) = tInputB; %create arbitrary time stamps of same size as data points to send data to %thingspeak stamps = [datetime('now')-minutes(length(matchA)-1):minutes(1):datetime('now')]'; pause(2); %pauses for 2 seconds to coincide with arduinos if(col==8) col=1; thingSpeakWrite(501358,{heartRateInputA,temperatureInputA,heartRateInputB,temperatureInputB},'WriteKey','JLS6DXUINWFGI6QD'); end end Thanks in advanced.
MathWorks Internet of Things Team in File Exchange
上次活动时间: 2019-3-21

Functions for connectivity from MATLAB to ThingSpeak.com.
Emre Ilgin Tamturk in MATLAB Answers
上次活动时间: 2019-2-13

Hı everyone, I have a project and ı need some help about it This is a biomedical recording and monitoring project I want to record the Temperature and Heart Beat on hand wrist via sensors using MATLAB OR Arduino and ı want to show the values of HeartBeat and Temperature graphically using ThingSpeak Is there anyone who can help me about this project ? I hope you help me Thanks a lot.
120004171 B.Tech ECE- Y J Prashaant in MATLAB Answers
上次活动时间: 2018-10-22

Arduino: 1.8.5 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200" Build options changed, rebuilding all In file included from c:\programdata\matlab\supportpackages\r2018a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\algorithm:60:0, from C:\ProgramData\MATLAB\SupportPackages\R2018a\3P.instrset\arduinoide.instrset\idepkgs\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266/Arduino.h:255, from sketch\thingspeak2.ino.cpp:1: c:\programdata\matlab\supportpackages\r2018a\3p.instrset\arduinoide.instrset\idepkgs\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\utility:68:28: fatal error: bits/c++config.h: No such file or directory #include <bits/c++config.h> ^ compilation terminated. exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module). This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
Oliver Mörth in MATLAB Answers
上次活动时间: 2018-7-25

Hello, I am using a webcam (LifeCam Studio, Microsoft) and a Simulink-model running on a Raspberry Pi model B to count moving objects (similar to the example "Analyzing Traffic Using a Webcam, a Raspberry Pi and ThingSpeak"). By increasing the resolution, I can identify more image errors (parts of the image are mixed up and not in the right position) and the counting doesn't work properly. Does anyone please know why this happens and how to solve this problem?
Hans Scharler in Blogs
上次活动时间: 2018-6-27

The ThingSpeak IoT has been building a new framework to support widgets on channel views. Widgets can be added to the public or private view of a ThingSpeak channel and even be embedded in 3rd-party systems and dashboards. The first widget that we are releasing is the gauge! At the recent Boston Te...
Hans Scharler in Blogs
上次活动时间: 2018-3-30

As most of you know I love building IoT projects. Most of these maker projects use an Arduino, Particle, or Raspberry Pi, like my IR color-changing robot that connects to ThingSpeak and the CheerLights project. I recently became the moderator of the MATLAB Maker Community that is hosted on MATLAB C...
GAURAV DESHMUKH in MATLAB Answers
上次活动时间: 2018-3-26

I want to connect my tiva tm4c 123gh6pm board to thingspeak via wifi. I tried coding in energia but it showed : thingspeak.cpp:6:24: fatal error: ThingSpeak.h: No such file or directory #include <ThingSpeak.h> I want to analyse my sensor data in matlab as I get it in thingspeak. What do I do now to resolve the issue? Please suggest solution for the same. Thanks
Hans Scharler in Blogs
上次活动时间: 2018-2-22

Douglas Mawrey created a Smart Humidity Sensor using ThingSpeak to collect data, MATLAB to analyze the data, and IFTTT to send push notifications for certain conditions. This project uses the outdoor temperature to determine the ideal indoor humidity and inform you about the room's comfort. The ...
mac mcalpine in MATLAB Answers
上次活动时间: 2018-2-21

I am logging voltage on a solar powered IOT device. I would like to calculate the delta V to get an indication of charge rate. The data is typically sent every 30 minutes, however not always. What would be the best way to calculate this and display in a line chart to view? My channel is here and the voltage in field 2: <https://thingspeak.com/channels/175965> and <https://www.hackster.io/macsboost/you-ve-got-mail-2e2d8e>
MathWorks Internet of Things Team in File Exchange
上次活动时间: 2018-1-5

Develop a traffic monitoring algorithm and analyze traffic data sent to ThingSpeak
Hans Scharler in Blogs
上次活动时间: 2017-12-20

ThingSpeak has APIs for collecting data produced by sensors and APIs for reading that data from applications. Think of an IoT project as two parts. One part of the project is where you need to program a thing to send data. And, the second part is where you want to see that data. ThingSpeak sits in t...
Luca De Nardis in MATLAB Answers
上次活动时间: 2017-11-10

I would like to use the functions made available in the ThingSpeak Support toolbox (e.g. the thingSpeakAuthenticate function) to read/write data on a private installation of a ThingSpeak server, rather than the cloud service on ThingSpeak.com, but I could not find a way to point Matlab towards the IP/web address hosting the ThingSpeak server. Is it possible at all?
Ahmer Ahmed in MATLAB Answers
上次活动时间: 2017-11-7

Hi everyone! I have a GUI already created for home automation using Bluetooth of laptop and HC-05 hooked up with arduino on the other side. I was able to do small stuff with simple buttons on GUI and controlling appliances wirelessly. But now I want to shift my project to IoT. I plan to use ESP8266 instead of HC-05 and make it server(or whatever) and make my laptop connected to that ESP8266 and send commands from GUI to ESP8266 from anywhere on Earth. Is it possible? If yes, what are the steps? Explain briefly or refer to any links.
Hans Scharler in Blogs
上次活动时间: 2017-10-27

Naman Chauhan from SRM University created a proof-of-concept project that measures your resting heart rate and sends the data for analysis via a $5 Wi-Fi device. The project is fully documented with the source code on either Hackaday or Hackster. Naman uses an Arduino for processing the heartbeat d...
Apoorv Lokhande in MATLAB Answers
上次活动时间: 2017-10-26

I am trying to count cars on a highway using webcam, raspberry pi & Simulink model for data analysis using thingspeak & later using Amazon AWS. The project link, Makerzone Project. I am facing a problem with the Car Counter block in the Simulink model. I have developed a code performing all the operations for the project but I am unable to complete the simulink model from that code. Can anyone help me in modelling the simulink model?
Hans Scharler in Blogs
上次活动时间: 2017-7-20

Many IoT projects collect data from a sensor and send the data to ThingSpeak at the same time over and over. To continuously collect and send data to the cloud requires the device to be powered and connected all of the time. A battery-powered IoT device like a Particle Photon or Onion Omega2 would r...
Hans Scharler in Blogs
上次活动时间: 2017-5-29

Smoking ribs or a pork shoulder requires lots of patience and practice. When everything works, you get to enjoy an amazing dinner. When things go wrong, you end up with dry, overcooked meat that only your dog may enjoy. Here's what great BBQ looks like from @AndreasHarsch. My process of smoking...
Pavel Roslovets in File Exchange
上次活动时间: 2017-5-12

Standalone Arduino Weather Station that's uploading data directly to ThingSpeak
Hans Scharler in Blogs
上次活动时间: 2017-3-31

April 1st is Arduino Day, no joke! For in person events near you, check out the Arduino Day website. If you have been kicking around an idea about a project to build, this is a great time to try to get it done and share it with others from around the world. We provide some great tools to build proje...
Hans Scharler in Blogs
上次活动时间: 2017-3-25

Anders Sollander, a principal technical consultant at MathWorks, and his team put together a project to determine what demo was the most popular at one of our demo showcases. Anders made an assumption that if your demo was popular, you would have a lot of visitors. If you have a lot of visitors, you...
Hans Scharler in Blogs
上次活动时间: 2017-1-31

Takuji Fukumoto, an Application Engineer at MathWorks, shared a project with me that he created that uses capabilities of MATLAB Mobile™, MATLAB Drive™, MATLAB Online™, and ThingSpeak™. His project uses MATLAB Mobile to send its position and sensor data to ThingSpeak. He then uses MATLAB® to process...
Madhu Govindarajan in File Exchange
上次活动时间: 2016-12-16

Files that were used in the webinar 'Raspberry Pi based security system using MATLAB and Simulink'
MathWorks Internet of Things Team in File Exchange
上次活动时间: 2016-12-8

Analyzing data from an instrumented soda machine connected to cloud server

关于 ThingSpeak

The community for students, researchers, and engineers looking to use MATLAB, Simulink, and ThingSpeak for Internet of Things applications. You can find the latest ThingSpeak news, tutorials to jump-start your next IoT project, and a forum to engage in a discussion on your latest cloud-based project. You can see answers to problems other users have solved and share how you solved a problem.