I am doing a project on stress analysis of a patient using 2 modules.
Module 1 comprises of Arduino Lilypad, Galvanic skin response (GSR) sensor and ESP8266 WiFi module
Module 2 : Arduino Uno , ADS1292R ECG / Respiration shield for Arduino and ESP8266 WiFi module.
Project Idea :
Each module will collect the respective sensor data and update the enabled fields of a channel in an IoT platform 'THINGSPEAK' for every second. This is done using WiFi modules.
ie; field 1 (GSR Value) by module 1 and field 2 (Heart Rate) by module 2.
Matlab Visualization is performed on the data in the fields for finding the stress level of the patient.
I am able to update the data in the respective fields while checking each module.
But for my matlab analysis it is necessary to update both the fields at the same time.
While enabling both the modules for measurement I am not able to update both field1 and field2 simultaneousy. I also have a thingspeak license, hence there will be no 15 sec delay.
For eg : I enabled both the modules and found that at 08:35:12 field1 gets updated with GSR value but field2 was not getting updated at this time. Field2 got updated a few seconds later.
Can somebody please suggest a solution for this problem. How can I update multiple fields of a channel in thingspeak using 2 modules where each module has a sensor , an arduino and an esp8266 module.
Appreciate your help on this.