Hi,
I am working on making a portable ECG device and was hoping to use BLYNK to display the ECG in the app.
The output voltage of my hardware is around 3v. I am using Nodemcu with ESP8266, pin A0 for ADC conversion.
FYI, the ECG has a frequency of about 1Hz. So I need to get the 10 data points(maximum possible on blink) each second on the graph.
Any idea how what kind of code would I need to use for BLYNK?
No. My hardware works at 1 Hz frequency. Because the heart beats approximately once per second. So for me getting atleast 5 data points each second would be ideal. Would that be doable?
void myTimerEvent()
{
// You can send any value at any time.
// Please don't send more that 10 values per second.
Blynk.virtualWrite(V5, millis() / 1000);
}
So I assume its possible. Can you suggest what change I need to make one value each 6 milisecond.
Be aware that this function and command you referenced is NOT a timer it is a value sent to a display showing total millis() since boot divided by 1000, thus it is part of the 1 second up time display function that is called by a timer… so changing this number will not do what you want.
You need to work with adjusting the value of the timer itself…