@romanF could you please show us code?
Have you enabled KEEP THE SCREEN ON option in project’s settings? If not - could you try with it?
Link on this type of sensor http://www.sciencedirect.com/science/article/pii/0924424792801937.
I using Blynk cloud now not the local server. I am send 10 values per 1 second, the sensor measures the oscillation frequency of 5-12 Hz.The Blynk app some minutes shows values well, then graphics element don’t paint new data, it stops and then paints some data and stops.
My code is simple
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <SimpleTimer.h>
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
#define ESP8266_BAUD 9600
#define EspSerial Serial1
char auth[] = "78b3236e62704b888aadc5180e265bad";
char ssid[] = "Atmega16F";
char pass[] = "";
ESP8266 wifi(&EspSerial);
SimpleTimer timer;
void myTimerEvent()
{
Blynk.virtualWrite(V5,(analogRead(A0)));
}
void setup()
{
analogReference(INTERNAL1V1 );
Serial.begin(9600); // See the connection status in Serial Monitor
EspSerial.begin(ESP8266_BAUD);
Blynk.begin(auth, wifi, ssid, pass);
// Setup a function to be called every second
timer.setInterval(100L, myTimerEvent);
}
void loop()
{
Blynk.run(); // Initiates Blynk
timer.run(); // Initiates SimpleTimer
}
Yes, I set the option KEEP THE SCREEN ON
@romanF maybe this is ESP issue? Could you please add some output on hardware side so we could be sure?
P. S. My Blynk project handles 50 req/sec with no issues.
I think ESP work normally and the blue led blinks.
Can you explain what I must do?
I don’t try to use the local server.
Well, you have to make some serial output in order to say that for sure.
Me too =)
What serial speed chooses for 50 req/sec ? 9600 or higher
Do you do your tests with an ESP and WiFi or Arduino and Ethernet?
For debugging purposes you can add the following as the first line of your sketch but remove as soon as testing is done.
#define BLYNK_DEBUG
With standalone ESP’s a baud of 115200 is fine but generally not as a shield.
You might need to consider a decent ESP (not 01) without Arduino.
How big is each packet that you receive?
Arduino mostly. I have no esp =(.
No ESP’s!!!
My Pro’s arrived today
I connect the Blynk app to Arduino using local server, but the problem with the Blynk app remaining. Send 10 values per 1 sec using esp8266 esp-01
This url for video http://files.d-lan.dp.ua/download?file=0612b83aa5a73ae989429b0543035a4e
@romanF did you try adding debug on hardware side? Some prints? We need to be 100% it is not your hardware problem.
I was not able to reproduce. Does everything works with another widget, like value display?
@romanF ignore my last message. Reproduced. As workaround for now you may use label display, terminal or table widgets.
I used the label, it works well, don’t hang. But I need real-time plotting(. I change time and set up 200 ms, but the situation with graph don’t change.
Thanks but I attempt new version some later because I found another solution.